0.0.3 • Published 6 years ago

cache-deps v0.0.3

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

NPM version NPM Downloads Build Status Coverage Status License Donate

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.1
npm-cache-add --help

npm-cache-add package-lock.json

Bower

⚠️ Only tested with version 1.8.4
bower-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

MIT

Require other licesing options? Open an issue.

Copyright (c) 2018 Faleij faleij@gmail.com

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago