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 d359ea7fa6
commit caba79b5e2
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
2. Ensure proper version in package.json
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
6. git tag -a Major.Minor.Patch # use NEWS section as content
7. Announce on cartodb@googlegroups.com

View File

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