-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 882 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
BUILD_WEBPACK_CMD := cookiecutter --no-input --config-file build_test_config.yml .
BUILD_PATH := './build_test'
examples: clean
@$(BUILD_WEBPACK_CMD)
@cd $(BUILD_PATH) && npm install
testbuild: examples
cd $(BUILD_PATH) && npm test
test:
py.test tests
make testbuild
major:
npm version major
minor:
npm version minor
patch:
npm version patch
changelog.template.ejs:
@echo "### [<%= new Date().toDateString() %>]\n<% commits.forEach(function(commit) { -%>\n* <%= commit.title %>\n<% }) -%>" > changelog.template.ejs
changelog: changelog.template.ejs
@touch CHANGELOG.md
@git-release-notes $$(git describe --abbrev=0)..HEAD $< | cat - CHANGELOG.md >> CHANGELOG.md.new
@mv CHANGELOG.md{.new,}
@rm changelog.template.ejs
@echo "Added changes since $$(git describe --abbrev=0) to CHANGELOG.md"
clean:
@rm -rf $(BUILD_PATH)
.PHONY: changelog examples test clean