Skip to content

Commit e7eb48d

Browse files
committed
add make clean
1 parent c3acf04 commit e7eb48d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11

22

3+
.PHONY: clean
4+
clean:
5+
rm -rf dist
6+
rm -rf coverage
7+
rm -rf examples/*.js
8+
find . -name "*.tsbuildinfo" -delete
9+
310
.PHONY: deps
411
deps:
512
npm i
613

714
.PHONY: build
8-
build: deps
15+
build: clean deps
916
npm run build
1017

1118
.PHONY: test
@@ -15,6 +22,10 @@ test: build
1522
.PHONY: prettier
1623
prettier:
1724
npm run prettier
25+
26+
.PHONY: prettier-check
27+
prettier-check:
28+
npx prettier --config .prettierrc 'src/**/*.ts' --check
1829

1930
.PHONY: publish
2031
publish: test

0 commit comments

Comments
 (0)