0.3.99 • Published 6 years ago

postinstall-links v0.3.99

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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.

0.3.99

6 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago