Separate tasks for updates that shouldn't/should break things.

This commit is contained in:
ccd0 2016-04-17 12:22:37 -07:00
parent 93b45c8bba
commit 221b071ff7
2 changed files with 6 additions and 2 deletions

View File

@ -14,7 +14,7 @@ else
ESC_DOLLAR = \$$
endif
npgoals := clean cleanrel cleanweb cleanfull withtests tag $(foreach i,1 2 3 4,bump$(i)) beta stable web update
npgoals := clean cleanrel cleanweb cleanfull withtests tag $(foreach i,1 2 3 4,bump$(i)) beta stable web update updatehard
ifneq "$(filter $(npgoals),$(MAKECMDGOALS))" ""
.NOTPARALLEL :
endif
@ -322,3 +322,7 @@ web : index.html distready
update :
npm install --save-dev $(shell node tools/unpinned.js)
npm shrinkwrap --dev
updatehard :
npm install --save-dev $(shell node tools/unpinned.js latest)
npm shrinkwrap --dev

View File

@ -6,6 +6,6 @@ console.log(
Object.keys(pkg.devDependencies).filter(
name => /^\^/.test(pkg.devDependencies[name])
).map(
name => `${name}@latest`
name => `${name}@${process.argv[2] || pkg.devDependencies[name]}`
).join(' ')
);