-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 904 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
help: Makefile
@awk -F':.*?##' '/^[a-z0-9\\%!:-]+:.*##/{gsub("%","*",$$1);gsub("\\\\",":*",$$1);printf "\033[36m%8s\033[0m %s\n",$$1,$$2}' $<
ci: src deps ## Run CI scripts
@npm run pretest
@JS_DOM=1 npm run test:ssr
@HAPPY_DOM=1 npm run test:ssr
@npm run test:ssr
ifeq ($(UNIT),)
@npm run test:e2e
@touch src/lib/*.js
@npm run test:ci
endif
ifneq ($(CI),)
@npm run codecov
endif
dev: src deps ## Start dev tasks
@npm run dev & npm run serve
e2e: src deps ## Run E2E tests locally
@npm run test:run -- tests/e2e/cases
test: src deps ## Start dev+testing flow
@npm run watch
check: src deps ## Run coverage checks locally
@LCOV_OUTPUT=html npm run test:ci
release: deps
ifneq ($(CI),)
@echo '//registry.npmjs.org/:_authToken=$(NODE_AUTH_TOKEN)' > .npmrc
@npm version $(USE_RELEASE_VERSION)
endif
deps: package*.json
@(((ls node_modules | grep .) > /dev/null 2>&1) || npm i) || true