-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 829 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (28 loc) · 829 Bytes
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
32
33
34
35
36
37
38
39
40
.PHONY: default build test serve serve-all format check-format lint bundle rollup git-hash clean
default: build
clean:
rm -rf ./dist/
rm -f git.json
build: rollup git-hash
npx grunt build
git-hash:
./git-hash.sh
bundle: git-hash
npx grunt concat:pzpr
rollup: bundle
mkdir -p ./dist/js/
cp ./node_modules/pzpr-canvas/dist/candle.js ./dist/js/candle.js
npx rollup -c ./rollup.config.js
test: bundle
npx grunt build:variety
npx mocha -r esm -r pzpr-canvas -r source-map-support/register -R progress --recursive test
lint:
npx eslint --quiet src src-ui test sample
serve:
cd dist && python3 -m http.server -b localhost
serve-all:
cd dist && python3 -m http.server
format:
npx prettier --write "{src,src-ui,test}/**/*.{js,json,css}"
check-format:
npx prettier --check "{src,src-ui,test}/**/*.{js,json,css}"