Skip to content

Commit f019683

Browse files
committed
Add convenience shortcut for upgrading NPM dependencies
1 parent 6bec828 commit f019683

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ cleanup:
2020
serve:
2121
python -m SimpleHTTPServer
2222

23+
upgrade-npm-dependencies:
24+
@npm install
25+
@./node_modules/.bin/npm-check-updates --upgrade
26+
@$(MAKE) test
27+
@git add ./package.json
28+
@git commit -m'Upgrade NPM dependencies'
29+
@git pull && git push
30+
2331
test-cleanup:
2432
node bin/phpjs.js --action cleanup --name array_change_key_case
2533
node bin/phpjs.js --action cleanup --name echo
@@ -76,4 +84,4 @@ site-preview:
7684
bundle exec rake preview ; \
7785
cd ..
7886

79-
.PHONY: setup test cleanup npm publish build hook site%
87+
.PHONY: setup test cleanup npm publish build hook site site-clean site-preview upgrade-npm-dependencies

0 commit comments

Comments
 (0)