-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 1.03 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
.EXPORT_ALL_VARIABLES:
.PHONY: help dev build test test-unit test-integration release release-npm
help: #: show this help menu
@grep "#:" Makefile* | grep -v "@grep" | sed "s/\([A-Za-z_ -]*\):.*#\(.*\)/$$(tput setaf 3)\1$$(tput sgr0)\2/g"
dev: #: watch the source files and rebuild when they change
@sass index.scss:_build/index.css --embed-source-map --watch
build: #: build the final output file
@sass index.scss:_build/index.min.css --style=compressed
test: test-unit test-integration #: run testing suite
test-unit: #: run the unit tests
@sass test/test-helper.scss
test-integration: #: run the integration tests
@cd test && sh ./test-integration.sh
release: build #: create a new tagged release
@git tag v$(version)
release-npm: #: create an npm release
@git archive \
--format tar.gz \
--prefix ssbuild/ \
--add-file _build/index.min.css \
--add-file _build/index.min.css.map \
--add-file publish/npm/package.json \
v$(version) > _build/ssbuild-$(version).tar.gz
@npm publish ./_build/ssbuild-$(version).tar.gz --dry-run