-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
65 lines (50 loc) · 1.45 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
60
61
62
63
64
65
.PHONY: help
help: ## Show this help.
@egrep '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-22s\033[0m %s\n", $$1, $$2}'
.PHONY: install
install: ## Install dependencies
npm install
.PHONY: test
test: ## Run tests for both library and demo application
npm run test
.PHONY: test-lib
test-lib: ## Run tests for library
npm run test-lib
.PHONY: test-lib-ci
test-lib-ci: ## Run tests for library (CI)
npm run test-lib-ci
.PHONY: test-demo
test-demo: ## Run tests for demo application
npm run test-demo
.PHONY: test-demo-ci
test-demo-ci: ## Run tests for demo application (CI)
npm run test-demo-ci
.PHONY: lint
lint: ## Lint both library and demo application
npm run lint
.PHONY: lint-lib
lint-lib: ## Lint library
npm run lint-lib
.PHONY: lint-demo
lint-demo: ## Lint demo application
npm run lint-demo
.PHONY: build-lib
build-lib: ## Build library
npm run build-lib
.PHONY: build-lib-schematics
build-lib-schematics: ## Build library schematics
npm run build-lib-schematics
.PHONY: build-demo
build-demo: ## Build demo application
npm run build-demo
.PHONY: publish-lib
publish-lib: ## Publish library to npm
npm run build-lib-prod
npm run build-lib-schematics
cd dist/ng-google-sheets-db && npm publish
.PHONY: serve-demo
serve-demo: ## Run demo application locally
npm run serve-demo
.PHONY: deploy-demo
deploy-demo: ## Deploy demo application to GitHub Pages
npm run deploy-demo