forked from act10ns/slack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (38 loc) · 804 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!make
TEST_REGEX ?= *.ts
.DEFAULT_GOAL:=help
all:
npm run all
## install - Install dependencies.
install:
npm install
## format - Code formatter.
format:
npm run format
## lint - Source code linter.
lint:
npm run lint:fix
## test - Run unit tests.
test:
npm test
## test.only - Only run defined unit tests.
test.only:
npm test -- $(TEST_REGEX)
## test.package - Run ncc compiled code.
test.package:
npm run package:test
## build - Build and package.
build:
npm run build && npm run package
## help - Show this help.
help: Makefile
@echo ''
@echo 'Usage:'
@echo ' make [TARGET]'
@echo ''
@echo 'Targets:'
@sed -n 's/^##//p' $<
@echo ''
@echo 'Add project-specific env variables to .env file:'
@echo 'PROJECT=$(PROJECT)'
.PHONY: help format lint test build all