-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (41 loc) · 797 Bytes
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Project
#
package-lock.json: package.json
npm install
touch $@
node_modules: package-lock.json
npm install
touch $@
build: node_modules
#
# Testing
#
test: test-unit
test-debug: test-unit-debug
test-unit: build
LOG_LEVEL=normal npx mocha ./tests/unit
test-unit-debug: build
LOG_LEVEL=trace npx mocha ./tests/unit
#
# Repository
#
clean-remove-chaff:
@find . -name '*~' -exec rm {} \;
clean-files: clean-remove-chaff
git clean -nd
clean-files-force: clean-remove-chaff
git clean -fd
clean-files-all: clean-remove-chaff
git clean -ndx
clean-files-all-force: clean-remove-chaff
git clean -fdx
#
# NPM
#
preview-package: clean-files test
npm pack --dry-run .
create-package: clean-files test
npm pack .
publish-package: clean-files test
npm publish --access public .