pl

postinstall-links

Create links to files in dependencies at npm postinstall

Showing:

Popularity

Downloads/wk

4

GitHub Stars

1

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

4

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Deprecated!
Deprecated in favor of [postinstall](https://github.com/kapouer/postinstall)

Readme

postinstall-links

Create links to files in dependencies at npm postinstall

Usage

In package.json:


{
  scripts: {
    "postinstall": "postinstall-links"
  },
  dependencies: {
    "postinstall-links": "^1",
    "jquery": "^3",
    "flickity": "^2"
  },
  links: {
    "jquery/dist/jquery.slim.min.js": "public/",
    "jquery/dist/jquery.js": "public/jquery.dev.js",
    "flickity/dist/*": "public/flickity/"
  }

  • the first component of a link source path is the module name, it is replaced by the resolved path of the module directory.

  • the link source path can end with a (glob-compatible) wildcard, in which case all matched files are symlinked. In this case the destination path must end with a slash.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100