From 321157b17bdb7621cae3f822f1ca10239fa42c9d Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 7 Feb 2017 20:03:47 +0100 Subject: [PATCH] Make target to generate shrinkwrap file applying prune It removes dev dependencies from the local node_modules and avoid getting those into shrinkwrap file. --- HOWTO_RELEASE | 2 +- Makefile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/HOWTO_RELEASE b/HOWTO_RELEASE index 75f7814e..b4a1c53d 100644 --- a/HOWTO_RELEASE +++ b/HOWTO_RELEASE @@ -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. Stub NEWS/package for next version diff --git a/Makefile b/Makefile index 1913b9e8..5929e084 100644 --- a/Makefile +++ b/Makefile @@ -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*