-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
39 lines (29 loc) · 839 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
38
39
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
install: ## Install Dependencies
@pnpm i
watch: ## Build for Dev environment and Watch files
@pnpm watch
lint: ## Lint all files
@pnpm lint
tests: ## Run all tests (unit + e2e)
@make test-unit
@make test-e2e
test-unit: ## Run unit tests (JEST)
@pnpm test
test-e2e: ## Run e2e tests (Cypress CLI)
@pnpm test-e2e
test-e2e-gui: ## Run e2e tests (Cypress GUI)
@pnpm test-e2e-gui
types-test: ## Build and generate a version to test for types
@rm -f typeahead-standalone-*.tgz
@make prod
@pnpm copy-dts-declarations
@pnpm pack
prod: ## Build for Production environment
@pnpm prod
publish: ## Publish to NPM
@make prod
@pnpm copy-dts-declarations
@make tests
@pnpm publish