-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 809 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 809 Bytes
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
# target: help, Display callable targets.
help:
egrep "^# target:" [Mm]akefile
# target: setup, Do a full setup (currently an alias for git-setup).
setup: git-setup
# target: clean, Cleans the NPM cache.
clean:
npm cache clean
# target: install, Installs all Node.js dependencies.
install:
npm install
# target: test, Runs all tests.
test:
npm test
# target: lint, Lints every JavaScript file in the project that is staged to be comitted.
lint:
./scripts/lint-staged.sh
# target: lint-all, Lints every JavaScript file in the project.
lint-all:
./scripts/lint-all.sh
# target: commit-test, Runs all tests and lints every JavaScript file in the project that is staged to be comitted..
commit-test: test lint
# target: git-setup, Sets up git hooks.
git-setup:
./scripts/git-setup.sh
.PHONY: test