2019-09-10 10:30:42 +02:00
|
|
|
.PHONY: all install-js watch-js build-js publish-beta lint-js test-js create-messages update-messages clean
|
2019-08-28 16:47:00 +02:00
|
|
|
|
|
|
|
all:
|
2019-09-10 10:30:42 +02:00
|
|
|
@echo "make install-js"
|
|
|
|
@echo " Install dependencies"
|
|
|
|
@echo "make watch-js"
|
|
|
|
@echo " Compile JS in watch mode."
|
|
|
|
@echo "make build-js"
|
|
|
|
@echo " Compile JS."
|
|
|
|
@echo "make publish-beta"
|
|
|
|
@echo " Publish package with 'beta' tag"
|
|
|
|
@echo "make lint-js"
|
|
|
|
@echo " Run linter"
|
|
|
|
@echo "make test-js"
|
|
|
|
@echo " Run tests"
|
2019-08-28 16:47:00 +02:00
|
|
|
@echo "make create-messages"
|
|
|
|
@echo " Create locale messages (.pot)."
|
|
|
|
@echo "make update-messages"
|
|
|
|
@echo " Update locale messages from .pot file."
|
|
|
|
@echo "make clean"
|
|
|
|
@echo " Remove python artifacts and virtualenv."
|
|
|
|
|
2019-09-10 10:30:42 +02:00
|
|
|
install-js: package.json
|
|
|
|
npm install --save-dev
|
|
|
|
|
|
|
|
watch-js:
|
|
|
|
npm run watch
|
|
|
|
build-js:
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
publish-beta:
|
|
|
|
npm publish --tag beta
|
|
|
|
|
2019-09-25 13:56:08 +02:00
|
|
|
lint:
|
2019-09-10 10:30:42 +02:00
|
|
|
npm run lint
|
|
|
|
|
2019-09-25 13:56:08 +02:00
|
|
|
test:
|
2019-09-10 10:30:42 +02:00
|
|
|
npm test
|
|
|
|
|
2019-08-28 16:47:00 +02:00
|
|
|
create-messages:
|
|
|
|
pybabel extract -F babel.cfg -o ./translations/forisjs.pot .
|
|
|
|
update-messages:
|
|
|
|
pybabel update -i translations/forisjs.pot -d translations
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf node_modules dist
|