1.0.0 • Published 5 years ago
ci-once v1.0.0
npm-ci-once
Restore node_modules only if package-lock.json has changed before previous restoration.
Use with npx
npx ci-onceInstall from npm
npm install -g npm-ci-onceAnd then use:
npm-ci-onceMechanism
See the tiny implementation: src/main.js.
- Restoration: To restore, this script spawns a default shell to execute
npm ci. - Skipping unnecessary restoration: After restoration, this script writes SHA-256 hash value of
package-lock.jsonto a file undernode_modules. This scripts also checks if the hash value has changed or not.
1.0.0
5 years ago