Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rlancer/npm-install-me-maybe
Only install your node modules if they've changed, designed for CICD systems
https://github.com/rlancer/npm-install-me-maybe
Last synced: about 2 months ago
JSON representation
Only install your node modules if they've changed, designed for CICD systems
- Host: GitHub
- URL: https://github.com/rlancer/npm-install-me-maybe
- Owner: rlancer
- Created: 2019-02-01T20:34:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-12T20:48:49.000Z (over 5 years ago)
- Last Synced: 2024-11-13T18:12:30.612Z (about 2 months ago)
- Language: TypeScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Idempotent NPM Installs
====================[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/install-me-maybe.svg)](https://npmjs.org/package/install-me-maybe)
[![Downloads/week](https://img.shields.io/npm/dw/install-me-maybe.svg)](https://npmjs.org/package/install-me-maybe)
[![License](https://img.shields.io/npm/l/install-me-maybe.svg)](https://github.com/rlancer/npm-install-me-maybe/blob/master/package.json)**Works with Yarn or NPM!**
Designed for CI / CD systems. Run `install-me-maybe` as many times as you'd like, it will only run `npm install` or `yarn` when the lock file changed.
## How it works
Creates a hash of your package-lock.json or yarn.lock and writes that hash to a file called .installmemaybe
On the next call to install-me-maybe the contents of the hash file are compared with the new hash, only then will an install be triggered.
Installs your NPM modules only if they are out of date, designed for CI / CD systems