Make target to generate shrinkwrap file applying prune

It removes dev dependencies from the local node_modules
and avoid getting those into shrinkwrap file.
This commit is contained in:
Raul Ochoa 2017-02-07 20:03:47 +01:00
parent 6ac6574b4c
commit 321157b17b
2 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,7 @@
1. Test (make clean all check), fix if broken before proceeding 1. Test (make clean all check), fix if broken before proceeding
2. Ensure proper version in package.json 2. Ensure proper version in package.json
3. Ensure NEWS section exists for the new version, review it, add release date 3. Ensure NEWS section exists for the new version, review it, add release date
4. Recreate npm-shrinkwrap.json with: `npm install --no-shrinkwrap && npm shrinkwrap` 4. Recreate npm-shrinkwrap.json with: `make shrinkwrap`
5. Commit package.json, npm-shrinwrap.json, NEWS 5. Commit package.json, npm-shrinwrap.json, NEWS
6. git tag -a Major.Minor.Patch # use NEWS section as content 6. git tag -a Major.Minor.Patch # use NEWS section as content
7. Stub NEWS/package for next version 7. Stub NEWS/package for next version

View File

@ -9,6 +9,12 @@ all:
clean: clean:
rm -rf node_modules/ rm -rf node_modules/
shrinkwrap: clean
rm npm-shrinkwrap.json
npm install --no-shrinkwrap --production
npm prune
npm shrinkwrap
distclean: clean distclean: clean
rm config.status* rm config.status*