forked from kossnocorp/typesaurus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (35 loc) · 1.06 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
.DEFAULT_GOAL := build
.PHONY: build
BIN = $(shell yarn bin)
test:
${BIN}/firebase emulators:exec --only firestore "${BIN}/jest --env node"
.PHONY: test
test-watch:
${BIN}/firebase emulators:exec --only firestore "${BIN}/jest --env node --watch"
test-setup:
${BIN}/firebase setup:emulators:firestore
test-system: test-system-node test-system-browser
test-system-node:
${BIN}/jest --env node
test-system-node-watch:
${BIN}/jest --env node --watch
test-system-browser:
${BIN}/karma start --single-run
test-system-browser-watch:
${BIN}/karma start
build:
@rm -rf lib
@${BIN}/tsc
@${BIN}/prettier "lib/**/*.[jt]s" --write --loglevel silent
@cp package.json lib
@cp *.md lib
@rsync --archive --prune-empty-dirs --exclude '*.ts' --relative src/./ lib
@${BIN}/tsc --outDir lib/esm --module es2020 --target es2019
@cp src/adaptor/package.esm.json lib/esm/adaptor/package.json
publish: build
cd lib && npm publish --access public
publish-next: build
cd lib && npm publish --access public --tag next
docs:
@${BIN}/typedoc --theme minimal --name Typesaurus
.PHONY: docs