forked from ad-si/Transity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
57 lines (39 loc) · 842 Bytes
/
makefile
File metadata and controls
57 lines (39 loc) · 842 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
all: index.js docs
changelog.md: .git
# git config changelog.format '- %s (%h)'
# git changelog
npx conventional-changelog \
--infile $@ \
--same-file \
--output-unreleased
index.js: src
npm run bundle
docs: output
npx parcel build webapp/index.html \
--public-url /transity \
--no-source-maps \
--out-dir $@
docs-dev: output index.js
npx parcel build webapp/index.html \
--no-source-maps \
--out-dir $@
output: src package.json package-lock.json packages.dhall spago.dhall node_modules
npx --no-install spago build
node_modules: package.json package-lock.json
npm install
readme.md:
npx markdown-toc -i $@
.PHONY: test
test: output
npx --no-install spago test
npm run lint-js
.PHONY: clean
clean:
-rm -rf \
.cache \
.parcel-cache \
.spago \
docs \
docs-dev \
node_modules \
output