-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
55 lines (42 loc) · 1.04 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
SERIALNO ?= 405419896
CARD ?= 65538
DOOR ?= 3
DEVICEIP ?= 192.168.1.125
DATETIME = $(shell date "+%Y-%m-%d %H:%M:%S")
LISTEN ?= 192.168.1.100:60001
DEBUG ?= --debug
.PHONY: build
.PHONY: test
update:
npm update
npm i --lockfile-version 1 --package-lock-only
# npm audit fix
update-release:
npm update
npm i --lockfile-version 1 --package-lock-only
# npm audit fix
build:
npx eslint --fix nodes/**/*.js
debug: build
npx eslint --fix test/**/*.js
npm run test
test:
npx eslint --fix test/**/*.js
npm test
node-red-dev validate
integration-tests: build
node-red ./integration-tests/integration-tests.json
build-all: build test
release: build-all
npm pack
publish: release
echo "Releasing version $(VERSION)"
gh release create "$(VERSION)" *.tgz --draft --latest --title "$(VERSION)" --notes-file release-notes.md
publish-npm: release
echo "Publishing version $(VERSION) to npm"
npm --dry-run publish
npm publish
examples: build
node-red ./examples/examples.json
dashboard: build
node-red ./examples/dashboard.json