-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (30 loc) · 895 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
39
40
41
42
43
VERSION = $(shell cat package.json | sed -n 's/.*"version": "\([^"]*\)",/\1/p')
SHELL = /usr/bin/env bash
default: install
.PHONY: default test install tag
version:
@echo $(VERSION)
install:
npm install
jspm install
build_node:
#cd less-bundle && jspm build less ../src/less.node.js --node --minify
jspm build lessjs src/less.node.js --node --minify
build_browser:
#cd less-bundle && jspm build less/dist/less.js ../src/less.browser.js --minify
jspm build lessjs/dist/less.js src/less.browser.js --minify
build: build_node build_browser
test:
./node_modules/.bin/mocha
update_version:
@echo "Current version is " ${VERSION}
@echo "Next version is " $(v)
sed -i s/'"$(VERSION)"'/'"$(v)"'/ package.json
tag_and_push:
git add --all
git commit -a -m "Tag v $(v) $(m)"
git tag v$(v)
git push
git push --tags
npm publish
tag: update_version tag_and_push