Repository navigation
Expand file tree
/
Copy pathmakefile
More file actions
64 lines (44 loc) · 1.28 KB
/
Copy pathmakefile
File metadata and controls
64 lines (44 loc) · 1.28 KB
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
.PHONY: help
help: makefile
@tail -n +4 makefile | grep ".PHONY"
.PHONY: format
format:
elmfmt -i src/ tests/
.PHONY: test
test:
elm-test-rs
.PHONY: build
build: test docs.json public/index.html
.PHONY: dev
dev:
@echo -e "Go to http://localhost:8000/src/Website.elm to see the app\n\n"
elm reactor
docs.json: src elm.json node_modules
elm make --docs=$@
public/index.html: src elm.json node_modules
elm make src/Website.elm --output=$@
node_modules: package.json package-lock.json
if test ! -d $@; \
then npm install; \
fi
.PHONY: deploy
deploy: build
@echo "1. Open https://app.netlify.com/sites/vectual/deploys"
@echo "2. Drag & drop the ./public directory"
.PHONY: release
release:
@echo '1. Bump the version with `elm bump`'
@echo '2. `git add --interactive && git commit -m "Bump version"`'
@echo '3. `git tag -a x.y.z -m x.y.z`'
@echo '4. `git push --follow-tags`'
@echo '5. Run `elm publish`'
@echo '6. Run `git cliff` to generate changelog entries for the new version'
@echo '7. Merge `_todo_changelog.md` into `changelog.md`'
@echo '8. Create a new GitHub release at https://github.com/ad-si/Vectual/releases/new'
@echo '9. Announce the release on relevant channels'
.PHONY: clean
clean:
rm -f docs.json
rm -rf elm-stuff
rm -rf node_modules
rm -rf public