2018-07-10 16:40:59 +00:00
|
|
|
all: dev-setup lint build-js-production test
|
2015-10-26 10:29:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
# Dev env management
|
|
|
|
dev-setup: clean clean-dev npm-init
|
2015-10-26 10:29:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
npm-init:
|
|
|
|
npm install
|
2015-10-26 10:29:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
npm-update:
|
|
|
|
npm update
|
2016-03-26 21:26:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
# Building
|
|
|
|
build-js:
|
|
|
|
npm run dev
|
2016-03-26 21:26:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
build-js-production:
|
|
|
|
npm run build
|
2016-03-26 21:26:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
watch-js:
|
|
|
|
npm run watch
|
2017-10-03 20:15:26 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
# Testing
|
|
|
|
test:
|
|
|
|
npm run test
|
2016-03-26 21:26:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
test-watch:
|
|
|
|
npm run test:watch
|
2015-10-26 10:29:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
test-coverage:
|
|
|
|
npm run test:coverage
|
2015-10-26 10:29:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
# Linting
|
|
|
|
lint:
|
|
|
|
npm run lint
|
2016-03-26 21:26:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
lint-fix:
|
|
|
|
npm run lint:fix
|
2016-03-26 21:26:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
# Cleaning
|
|
|
|
clean:
|
|
|
|
rm -f js/contacts.js
|
|
|
|
rm -f js/contacts.js.map
|
2016-03-26 21:26:01 +00:00
|
|
|
|
2018-07-10 16:40:59 +00:00
|
|
|
clean-dev:
|
|
|
|
rm -rf node_modules
|
2016-03-29 13:18:23 +00:00
|
|
|
|