-
Notifications
You must be signed in to change notification settings - Fork 104
/
Makefile
47 lines (33 loc) · 1.04 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
BUILD_CMD := ./node_modules/.bin/babel ./src -d ./lib --ignore 'test' --presets latest,stage-0
TEST_CMD := ./node_modules/.bin/ava test/plugin.spec.js
build_es6:
@$(BUILD_CMD)
ci:
@$(BUILD_CMD) --watch
clean:
@rm -rf ./lib
@rm -rf ./test/tmp
build: clean build_es6
lint:
@node_modules/.bin/eslint src
unit_test: build
@$(TEST_CMD)
# This is failing due to mocha version update
integration_test: build
@cd examples && npm install && npm t && npm run webpack
test: lint build unit_test
major:
npm version major
minor:
npm version minor
patch:
npm version patch
changelog.template.ejs:
@echo "## x.x.x\n\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"
.PHONY: clean dev lint examples test major minor patch