forked from LinkedInAttic/dustjs-filters-secure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (37 loc) · 1016 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
44
45
46
47
48
49
50
#
# Run unit tests with jasmine-node and venus
#
test-venus:
node_modules/venus/bin/venus run -n -t test/specs
test-jasmine:
node test/server/specRunner.js
test-verbose:
node test/server/specRunner.js --color --verbose
#
# Build dust.js
#
VERSION = ${shell cat package.json | grep version | grep -o '[0-9]\.[0-9]\.[0-9]\+'}
SRC = lib
VERSION = ${shell cat package.json | grep version | grep -o '[0-9]\.[0-9]\.[0-9]\+'}
FILTERS = dist/dust-filters-secure-${VERSION}.js
define HEADER
//
// Dust-filters-secure - Additional functionality for dustjs-linkedin package v${VERSION}
//
// Copyright (c) 2012, LinkedIn
// Released under the MIT License.
//
endef
export HEADER
filters-secure:
@@mkdir -p dist
@@touch ${FILTERS}
@@echo "$$HEADER" > ${FILTERS}
@@cat ${SRC}/dust-filters-secure.js >> ${FILTERS}
@@echo ${FILTERS} built
release: clean min
git add dist/*
git commit -a -m "release v${VERSION}"
git tag -a -m "version v${VERSION}" v${VERSION}
npm publish
.PHONY: test-jasmine bench parser