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 = \$$ ESC_DOLLAR = \$$
endif 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))" "" ifneq "$(filter $(npgoals),$(MAKECMDGOALS))" ""
.NOTPARALLEL : .NOTPARALLEL :
endif endif
@ -322,3 +322,7 @@ web : index.html distready
update : update :
npm install --save-dev $(shell node tools/unpinned.js) npm install --save-dev $(shell node tools/unpinned.js)
npm shrinkwrap --dev 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( Object.keys(pkg.devDependencies).filter(
name => /^\^/.test(pkg.devDependencies[name]) name => /^\^/.test(pkg.devDependencies[name])
).map( ).map(
name => `${name}@latest` name => `${name}@${process.argv[2] || pkg.devDependencies[name]}`
).join(' ') ).join(' ')
); );