cache-deps
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i cache-deps

Weekly Downloads

4

Version

0.0.3

License

MIT

Unpacked Size

52.7 kB

Total Files

17

Last publish

Collaborators

  • faleij