generated from jasonsturges/typescript-npm-package
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
51 lines (40 loc) · 1.28 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
# Common makefile commands & variables between projects
include .make/common.mk
## Not defined? Use default repo name which is the application
ifeq ($(REPO_NAME),)
REPO_NAME="spv-wallet-js-client"
endif
## Not defined? Use default repo owner
ifeq ($(REPO_OWNER),)
REPO_OWNER="bitcoin-sv"
endif
.PHONY: audit
audit: ## Checks for vulnerabilities in dependencies
@yarn audit
.PHONY: clean
clean: ## Remove previous builds and any test cache data
@if [ -d $(DISTRIBUTIONS_DIR) ]; then rm -r $(DISTRIBUTIONS_DIR); fi
@if [ -d node_modules ]; then rm -r node_modules; fi
.PHONY: install
install: ## Installs the dependencies for the package
@yarn install
.PHONY: install-all-contributors
install-all-contributors: ## Installs all contributors locally
@echo "installing all-contributors cli tool..."
@yarn global add all-contributors-cli
.PHONY: outdated
outdated: ## Checks for outdated packages via npm
@yarn outdated
.PHONY: publish
publish: ## Will publish the version to npm
@npm run deploy
.PHONY: release
release:: ## Run after releasing - deploy to npm
@$(MAKE) publish
.PHONY: test
test: ## Will run unit tests
@yarn run test
.PHONY: update-contributors
update-contributors: ## Regenerates the contributors html/list
@echo "generating contributor html..."
@all-contributors generate