-
Notifications
You must be signed in to change notification settings - Fork 376
/
Copy pathMakefile
75 lines (61 loc) · 1.39 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.PHONY: setup lint test ci clean start stop restart bundlesize bundle size ncu
setup:
node packages/xmpp.js/script.js
npm install
cd packages/xmpp.js/ && npm run prepublish
make bundle
lint:
npx eslint --cache .
test:
cd packages/xmpp.js/ && npm run prepublish
npm install
make bundle
npx jest
make lint
make bundlesize
ci:
npm install
make unit
make lint
make restart
npx lerna run prepublish
make bundle
make e2e
make bundlesize
unit:
npm run test
e2e:
$(warning e2e tests require prosody-trunk and luarocks)
cd server && prosodyctl --config prosody.cfg.lua install mod_sasl2 > /dev/null
cd server && prosodyctl --config prosody.cfg.lua install mod_sasl2_bind2 > /dev/null
cd server && prosodyctl --config prosody.cfg.lua install mod_sasl2_sm > /dev/null
cd server && prosodyctl --config prosody.cfg.lua install mod_sasl2_fast > /dev/null
npm run e2e
clean:
make stop
rm -f server/localhost.key
rm -f server/localhost.crt
rm -f server/prosody.err
rm -f server/prosody.log
rm -f server/prosody.pid
rm -rf server/modules
rm -rf server/.cache
npx lerna clean --yes
rm -rf node_modules/
rm -f packages/*/dist/*.js
rm -f lerna-debug.log
start:
./server/ctl.js start
stop:
./server/ctl.js stop
restart:
./server/ctl.js restart
bundlesize:
node test/bundlesize.js
bundle:
npx rollup -c rollup.config.js
size:
make bundle
make bundlesize
ncu:
ncu && npx lerna exec ncu