forked from puttu/django-quill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (25 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
UNIT_TESTS = $(shell find ./quill/static/quill/js/test -name "*.js")
JS_FILES = $(shell find ./quill/static -name "*.js" -not -path "./quill/static/quill/js/test/*.js" -not -path "./quill/static/quill/js/build/*")
PY_FILES = $(shell find ./quill -name "*.py")
test:
flake8 --ignore=E501 $(PY_FILES)
./node_modules/.bin/jshint $(JS_FILES) $(UNIT_TESTS)
ifeq ($(CI),true)
./node_modules/.bin/browserify -t coverify $(UNIT_TESTS) | ./node_modules/.bin/testling
else
./node_modules/.bin/browserify -t coverify $(UNIT_TESTS) | ./node_modules/.bin/testling | ./node_modules/.bin/faucet
endif
docs:
rm -rf out
jsdoc quill/static/quill/js/ README.md
coverage:
./node_modules/.bin/browserify -t coverify $(UNIT_TESTS) | ./node_modules/.bin/testling | ./node_modules/.bin/coverify
css:
cp node_modules/quill/dist/*.css quill/static/quill/css/vendor/
js:
rm -f quill/static/quill/js/build/quill-django.js
rm -f quill/static/quill/js/build/quill-django.min.js
./node_modules/.bin/browserify $(JS_FILES) -o quill/static/quill/js/build/quill-django.js
./node_modules/.bin/uglifyjs quill/static/quill/js/build/quill-django.js > quill/static/quill/js/build/quill-django.min.js
watch:
./node_modules/.bin/watchify $(JS_FILES) -o quill/static/quill/js/build/quill-django.min.js