-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (39 loc) · 1.42 KB
/
Copy pathMakefile
File metadata and controls
53 lines (39 loc) · 1.42 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY: help list lint test release rebuild-icons docs coverage
help:
@echo "lint - check style with eslint"
@echo "test - run tests headless"
@echo "release - package and upload a release on npm"
@echo "rebuild-icons - turn input PNG into icons"
@echo "bump-and-push - run tests, lint, bump patch, push to git, and release on npm"
lint:
./node_modules/.bin/eslint lib spec/lib spec/endtoend
clean-build:
rm -fr dist/
test:
npm run test-headless
coverage:
./node_modules/.bin/nyc npm run test-headless
test-watch-e2e:
find lib/ spec/ -name \*.js | entr -r npm run test-headless
test-watch:
find lib/ spec/ -name \*.js | entr -r npm run test
rebuild-icons:
./node_modules/.bin/electron-icon-maker --input=./static/src/large_logo.png --output=./build/
bump-and-push: test lint
bumpversion patch
git push
git push --tags
make release
docs:
node docs/buildsite.js
#docs:
# cat docs/src/header.html docs/src/index.html docs/src/footer.html > docs/index.html
# cat docs/src/header.html docs/src/tutorial.html docs/src/footer.html > docs/tutorial.html
# cat docs/src/header.html docs/src/downloads.html docs/src/footer.html > docs/downloads.html
# cat docs/src/header.html docs/src/contact.html docs/src/footer.html > docs/contact.html
release:
npm publish
build-linux:
./node_modules/.bin/electron-builder --linux --x64 --publish onTagOrDraft
build-macos:
./node_modules/.bin/electron-builder --macos --publish onTagOrDraft