forked from sverweij/dependency-cruiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
107 lines (79 loc) · 2.14 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.SUFFIXES: .js .css .html
GIT=git
GIT_CURRENT_BRANCH=$(shell utl/get_current_git_branch.sh)
GIT_DEPLOY_FROM_BRANCH=master
NPM=npm
NODE=node
MAKEDEPEND=node_modules/.bin/js-makedepend --exclude "node_modules|fixtures|extractor-fixtures" --system cjs
.PHONY: help dev-build install check fullcheck mostlyclean clean lint cover prerequisites static-analysis test update-dependencies run-update-dependencies depend
help:
@echo
@echo " -------------------------------------------------------- "
@echo "| More information and other targets: open the Makefile |"
@echo " -------------------------------------------------------- "
@echo
# production rules
# "phony" targets
prerequisites:
$(NPM) install
dev-build: bin/dependency-cruise $(ALL_SRC)
lint:
$(NPM) run lint
cover: dev-build
$(NPM) run cover
bump-patch:
$(NPM) version patch
bump-minor:
$(NPM) version minor
bump-major:
$(NPM) version major
tag:
$(GIT) tag -a v`utl/getver` -m "v`utl/getver`"
$(GIT) push --tags
publish:
$(GIT) push
$(GIT) push --tags
$(NPM) publish
profile:
$(NODE) --prof src/cli.js -f - test
@echo "output will be in a file called 'isolate-xxxx-v8.log'"
@echo "- translate to readable output with:"
@echo " node --prof-process isolate-xxxx-v8.log | more"
test: dev-build
$(NPM) run test
nsp:
$(NPM) run nsp
outdated:
$(NPM) outdated
update-dependencies: run-update-dependencies dev-build test
$(GIT) diff package.json
run-update-dependencies:
$(NPM) run npm-check-updates
$(NPM) install
check: lint test
./bin/dependency-cruise --version # if that runs the cli script works
fullcheck: check outdated nsp
depend:
$(MAKEDEPEND) src/cli.js
$(MAKEDEPEND) --append --flat-define ALL_SRC src/cli.js
$(MAKEDEPEND) --append test
# DO NOT DELETE THIS LINE -- js-makedepend depends on it.
# cjs dependencies
src/cli.js: \
package.json
# cjs dependencies
ALL_SRC=src/cli.js \
package.json
# cjs dependencies
test/extractor-composite.spec.js: \
src/extractor-composite.js
src/extractor-composite.js: \
src/extractor.js \
src/utl.js
src/extractor.js: \
src/resolver.js \
src/utl.js
src/resolver.js: \
src/utl.js
test/extractor.spec.js: \
src/extractor.js