contacts/Makefile

47 lines
514 B
Makefile
Raw Normal View History

all: dev-setup lint build-js-production test
2015-10-26 10:29:01 +00:00
# Dev env management
dev-setup: clean clean-dev npm-init
2015-10-26 10:29:01 +00:00
npm-init:
npm install
2015-10-26 10:29:01 +00:00
npm-update:
npm update
# Building
build-js:
npm run dev
build-js-production:
npm run build
watch-js:
npm run watch
# Testing
test:
npm run test
test-watch:
npm run test:watch
2015-10-26 10:29:01 +00:00
test-coverage:
npm run test:coverage
2015-10-26 10:29:01 +00:00
# Linting
lint:
npm run lint
lint-fix:
npm run lint:fix
# Cleaning
clean:
rm -f js/contacts.js
rm -f js/contacts.js.map
clean-dev:
rm -rf node_modules