-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (25 loc) · 882 Bytes
/
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
export
.PHONY: develop formatting install start build prettier test coverage lint tsc gzip
develop:
@yarn develop
formatting:
@yarn prettier --trailing-comma=es5 --single-quote=true --semi=true --print-width=120 --arrow-parens=always --write \"{./,./mock-api/**,./src/**}/*.{d.ts,js}\"
@yarn prettier --write \"{./,./mock-api/**,./src/**}/*.{md,scss,json,yml}\"
install:
@yarn install --frozen-lockfile
start: ## start application in development mode
@yarn start
build: ## build production version of the application
@yarn build
prettier: ## fix es-lint and prettier
@yarn lint:fix
test: ## execute test in watch mode
@yarn test:no-watch
coverage: ## build test coverage
@yarn test -- --coverage
lint:
@yarn lint
tsc:
@yarn tsc
gzip: ## prepares gziped files for nginx gzip_static
find build -type f -exec test ! -e {}.gz \; -print0 | xargs -r -0 gzip -k -9