cache-deps
v0.0.3
Published
Globally cache depedencies from package-lock.json or bower.json for faster installs.
Downloads
3
Readme
Cache Deps
Globally cache dependencies from a package-lock.json or a bower.json for faster installs.
Why?
I wanted NPM and Bower dependencies cached in a base docker image for faster builds of child images but there were no built in commands for populating the cache of either NPM or Bower, this is the tool to provide that functionality.
Install
npm i cache-deps -g
Usage
NPM
⚠️ Only tested with version 6.4.1npm-cache-add --help
npm-cache-add package-lock.json
Bower
⚠️ Only tested with version 1.8.4bower-cache-add --help
bower-cache-add bower.json
API
None as of now, it's on the TODO list.
Developer
Install
git clone https://github.com/Faleij/cache-deps.git
cd cache-deps
npm install
npm link # optional, enables "npm-cache-add" and "bower-cache-add" globally
Build
Build Once:npm run build
Rebuild on file changes:npm run build -- --watch
Look at typescript compiler options for more options
Styleguide
Airbnbs styleguide is used.
Tslint ensures compliance.
License
Require other licesing options? Open an issue.
Copyright (c) 2018 Faleij [email protected]