-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (43 loc) · 1.62 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
.PHONY: \
build build-prod build-for-electron \
serve serve-de \
test test-firefox test-safari testserver
NICE = nice -n 19
NG = node ./node_modules/@angular/cli/bin/ng
WEBPACK = node ./node_modules/webpack/bin/webpack.js
XLIFFMERGE = node ./node_modules/ngx-i18nsupport/dist/xliffmerge/xliffmerge
test: build-workers
$(NG) test --sourcemaps=false --single-run
test-chromium: build-workers
$(NG) test --sourcemaps=false --single-run --browsers Chromium
test-edge: build-workers
$(NG) test --sourcemaps=false --single-run --browsers Edge
test-firefox: build-workers
$(NG) test --sourcemaps=false --single-run --browsers Firefox
test-safari: build-workers
$(NG) test --sourcemaps=false --single-run --browsers Safari
testserver: build-workers
$(NICE) $(NG) test --poll 10000
serve: build-workers
$(NICE) $(NG) serve --poll 10000
serve-de: build-workers
$(NICE) $(NG) serve --poll 10000 --aot --i18nFile=src/locale/messages.de.xlf --locale=de
build: build-workers
$(NG) build
build-prod: build-workers
$(NG) build --prod
build-for-electron: build-workers
$(NG) build --prod --base-href html
deploy: build-prod
rsync -a --delete dist/ [email protected]:chat-web
scp deployment/.htaccess [email protected]:chat-web
update-translations:
$(NG) xi18n --output-path=src/locale --out-file=messages-source.xlf
$(XLIFFMERGE) --profile src/locale/xliffmerge.profile.json
./workers/cryptoworker.js: ./workers/cryptoworker.ts \
./workers/tsconfig.json \
cryptoworker.webpack.conf.js \
yarn.lock
$(WEBPACK) --config cryptoworker.webpack.conf.js
build-workers: \
./workers/cryptoworker.js