2020-10-05 21:10:16 +00:00
|
|
|
node_modules: yarn.lock
|
|
|
|
@yarn -s --pure-lockfile
|
|
|
|
@touch node_modules
|
|
|
|
|
|
|
|
deps: node_modules
|
|
|
|
|
|
|
|
lint: node_modules
|
2020-03-08 09:23:44 +00:00
|
|
|
yarn -s run eslint --color .
|
2020-08-18 21:06:38 +00:00
|
|
|
|
2020-10-05 21:10:16 +00:00
|
|
|
test: node_modules lint build
|
2020-03-08 09:23:44 +00:00
|
|
|
yarn -s run jest --color
|
2017-12-03 11:15:02 +00:00
|
|
|
|
2020-10-05 21:10:16 +00:00
|
|
|
unittest: node_modules
|
2020-08-18 21:06:38 +00:00
|
|
|
yarn -s run jest --color --watchAll
|
|
|
|
|
2020-10-05 21:10:16 +00:00
|
|
|
build: node_modules
|
2020-10-05 21:26:38 +00:00
|
|
|
yarn -s run ncc build updates.js -q -o .
|
2020-09-18 15:53:31 +00:00
|
|
|
@mv index.js updates
|
2020-03-09 22:57:04 +00:00
|
|
|
|
2020-10-05 21:10:16 +00:00
|
|
|
publish: node_modules
|
2017-12-03 11:15:02 +00:00
|
|
|
git push -u --tags origin master
|
|
|
|
npm publish
|
|
|
|
|
2020-10-05 21:10:16 +00:00
|
|
|
update: node_modules build
|
2020-04-07 15:48:17 +00:00
|
|
|
node updates -cu
|
2020-10-05 21:10:16 +00:00
|
|
|
@touch yarn.lock
|
2020-10-05 21:26:38 +00:00
|
|
|
@$(MAKE) --no-print-directory deps
|
2019-05-06 21:33:15 +00:00
|
|
|
|
2020-10-05 21:10:16 +00:00
|
|
|
patch: node_modules test
|
2020-08-18 21:06:38 +00:00
|
|
|
yarn -s run versions -Cc 'make build' patch
|
2020-08-13 18:37:05 +00:00
|
|
|
@$(MAKE) --no-print-directory publish
|
2017-12-03 11:15:02 +00:00
|
|
|
|
2020-10-05 21:10:16 +00:00
|
|
|
minor: node_modules test
|
2020-08-18 21:06:38 +00:00
|
|
|
yarn -s run versions -Cc 'make build' minor
|
2020-08-13 18:37:05 +00:00
|
|
|
@$(MAKE) --no-print-directory publish
|
2017-12-03 11:15:02 +00:00
|
|
|
|
2020-10-05 21:10:16 +00:00
|
|
|
major: node_modules test
|
2020-08-18 21:06:38 +00:00
|
|
|
yarn -s run versions -Cc 'make build' major
|
2020-08-13 18:37:05 +00:00
|
|
|
@$(MAKE) --no-print-directory publish
|
2019-05-06 21:33:15 +00:00
|
|
|
|
2020-08-18 21:06:38 +00:00
|
|
|
.PHONY: lint test unittest build publish deps update patch minor major
|