Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

94 lines (78 sloc) 1.65 kB
#
# Run all tests
#
test:
node test/server.js
#
# Run jasmine-test
#
jasmine:
node test/jasmine-test/server/specRunner.js
#
# Run code coverage and generate report
#
coverage:
cover run test/server.js && cover report && cover report html
#
# Run the benchmarks
#
bench:
node benchmark/server.js
#
# Build the docs
#
docs:
node docs/build.js
#
# Build the parser
#
parser:
node src/build.js
#
# Build dust.js
#
SRC = lib
VERSION = ${shell cat package.json | grep version | grep -o '[0-9]\.[0-9]\.[0-9]\+'}
CORE = dist/dust-core-${VERSION}.js
CORE_MIN = dist/dust-core-${VERSION}.min.js
FULL = dist/dust-full-${VERSION}.js
FULL_MIN = dist/dust-full-${VERSION}.min.js
define HEADER
//
// Dust - Asynchronous Templating v${VERSION}
// http://akdubya.github.com/dustjs
//
// Copyright (c) 2010, Aleksander Williams
// Released under the MIT License.
//
endef
export HEADER
#TODO: REMOVE THE HELPERS IN THE NEXT RELEASE
dust:
@@mkdir -p dist
@@touch ${CORE}
@@echo "$$HEADER" > ${CORE}
@@cat ${SRC}/dust.js\
${SRC}/dust-helpers.js >> ${CORE}
@@echo ${CORE} built
@@touch ${FULL}
@@echo "$$HEADER" > ${FULL}
@@cat ${SRC}/dust.js\
${SRC}/dust-helpers.js\
${SRC}/compiler.js\
${SRC}/parser.js >> ${FULL}
@@echo ${FULL} built
min: dust
@@echo minifying...
@@echo "$$HEADER" > ${CORE_MIN}
@@echo "$$HEADER" > ${FULL_MIN}
node utils/minifier ${CORE} ${CORE_MIN}
node utils/minifier ${FULL} ${FULL_MIN}
clean:
git rm dist/*
release: clean docs min
git add dist/*
git commit -a -m "release v${VERSION}"
git tag -a -m "version v${VERSION}" v${VERSION}
npm publish
.PHONY: test docs bench parser
Jump to Line
Something went wrong with that request. Please try again.