forked from lettertwo/appcache-webpack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 767 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
test:
@mocha --compilers js:babel/register --reporter min 'test/**/*test*.js'
dev:
@mocha --compilers js:babel/register --reporter min --watch 'test/**/*test*.js'
lint:
@eslint ./src ./test
changelog.template.ejs:
@echo "## x.x.x\n\n<% commits.forEach(function(commit) { -%>\n* <%= commit.title %>\n<% }) -%>" > changelog.template.ejs
changelog: changelog.template.ejs
@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"
build:
@babel --stage=0 src --out-dir lib
major:
@mversion major
minor:
@mversion minor
patch:
@mversion patch
.PHONY: dev test lint build major minor patch