-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (26 loc) · 915 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
.PHONY: help clean clean-deep version publish
help:
@echo ======================================================================================
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
@echo ======================================================================================
clean: ## remove generated files
find . -name 'dist' | xargs rm -rf
find . -name 'esm' | xargs rm -rf
clean-deep: ## remove generated files & node_modules
make clean
rm -rf .yarn
find . -name 'node_modules' | xargs rm -rf
publish: ## publish to npm
@npm run publish-all
version: ## update version
@yarn update-version
update: ## update dependencies
@yarn upgrade --latest
outdated: ## outdated dependencies
@yarn outdated
cloc: ## Count lines of code
@cloc \
--fullpath \
--not-match-d=packages/.*/node-modules \
--not-match-d=packages/.*/dist \
packages