-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (35 loc) · 1.19 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
.PHONY: build
build:
@yarn tsc -p ./packages/eslint-config-assignar-base/tsconfig.json
@yarn tsc -p ./packages/eslint-config-assignar-graphql/tsconfig.json
@yarn tsc -p ./packages/eslint-config-assignar-node/tsconfig.json
@yarn tsc -p ./packages/eslint-config-assignar-react/tsconfig.json
lint:
@yarn lint
.PHONY: show-unused
show-unused:
@echo base...
@npx eslint-find-rules ./packages/eslint-config-assignar-base/dist/index.js --unused
@echo Done
@echo graphql...
# no core as the graphql package is intended to be standalone
@npx eslint-find-rules ./packages/eslint-config-assignar-graphql/dist/index.js --unused --no-core
@echo Done
@echo node...
@npx eslint-find-rules ./packages/eslint-config-assignar-node/dist/index.js --unused
@echo Done
@echo react...
@npx eslint-find-rules ./packages/eslint-config-assignar-react/dist/index.js --unused
@echo Done
.PHONY: ci
ci:
# build first because the lint is based off this package!
@make build
# make sure there are no lint errors
@make lint
# make sure there are no unused rules in any package
# show-unused
@make show-unused
.PHONY: regenerate-types
regenerate-types:
@yarn ts-node -P ./scripts/tsconfig.json --files ./scripts/generateTypes.ts