-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
51 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
MOCHA:= ./node_modules/.bin/mocha
ISTANBUL:= ./node_modules/.bin/nyc
TYPEDOC:= ./node_modules/.bin/typedoc
TSC:= ./node_modules/.bin/tsc
SETMEUP:= ./node_modules/.bin/setmeup
# Clean compiled resources and dependencies
clean:
rm -rf ./lib
rm -rf ./node_modules
rm -f package-lock.json
# Generate TypeScript docs
docs:
rm -rf ./docs/assets
rm -rf ./docs/classes
rm -rf ./docs/interfaces
rm -rf ./docs/modules
$(TYPEDOC) --disableOutputCheck
# Compile TypeScript to JS
build:
$(TSC)
# Update dependencies and set new version
update:
-ncu -u -x axios,chai,chalk,flatbush
-ncu -u --target minor
npm version $(shell date '+%y.%-V%u.1%H%M') --force --allow-same-version --no-git-tag-version
npm install
$(TSC)
# Dry run (check if startup() is completing).
dry-run:
$(TSC)
node dry-run.js
# Run basic tests.
test:
$(TSC)
@NODE_ENV=test $(MOCHA) --trace-warnings --exit -u tdd -R spec
# Encrypt settings.
encrypt:
$(SETMEUP) encrypt ./settings.secret.json
# Decrypt settings.
decrypt:
$(SETMEUP) decrypt ./settings.secret.json
.PHONY: docs test