Skip to content

About

npm install with wercker cache support

Resources

Stars

0 stars

Watchers

2 watching

Forks

 
 

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

npm-install step

Executes the npm install command with leveraging the wercker cache mechanism to improve installation time (optional).

If npm install fails, it will be retried three times before failing, and optionally the cache will be cleared in between.

Options

  • clear-cache-on-failed (optional, default: true) If npm fails, clear the cache before trying again.
  • use-cache (optional, default: true) Use the npm cache.
  • options (optional) Allow for passing arbitrary arguments to npm.
  • pre-command (optional) Command that runs before npm install. E.g. env NODE_ENV=development will run env NODE_ENV=development npm install.

Example

build:
    steps:
        - npm-install

License

The MIT License (MIT)

Changelog

1.2.0

  • Add pre-command

1.1.4

  • Ensure cache get's stored

1.1.1

  • Add debug messages

1.1.0

  • Add clear-cache-on-failed, use-cache options.

1.0.0

  • Add retry on error

0.9.3

  • Fix wrong directory cache created

0.9.2

  • Initial release

About

npm install with wercker cache support

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages