updates/Makefile

34 lines
455 B
Makefile
Raw Normal View History

2018-10-15 04:56:58 +00:00
.PHONY: test
2017-12-03 11:15:02 +00:00
test:
2018-07-10 15:33:08 +00:00
npx eslint --color --quiet *.js
node --trace-deprecation --throw-deprecation test.js
2017-12-03 11:15:02 +00:00
2018-10-15 04:56:58 +00:00
.PHONY: publish
2017-12-03 11:15:02 +00:00
publish:
git push -u --tags origin master
npm publish
2018-10-15 04:56:58 +00:00
.PHONY: update
2017-12-03 11:15:02 +00:00
update:
2018-07-10 15:33:08 +00:00
node updates.js -u
2017-12-03 11:15:02 +00:00
rm -rf node_modules
2019-05-02 06:30:51 +00:00
npm i
2017-12-03 11:15:02 +00:00
2018-10-15 04:56:58 +00:00
.PHONY: patch
patch:
$(MAKE) test
npx ver patch
$(MAKE) publish
2017-12-03 11:15:02 +00:00
2018-10-15 04:56:58 +00:00
.PHONY: minor
minor:
$(MAKE) test
npx ver minor
$(MAKE) publish
2017-12-03 11:15:02 +00:00
2018-10-15 04:56:58 +00:00
.PHONY: major
major:
$(MAKE) test
npx ver major
$(MAKE) publish