-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from jairodemorais/remove_helpers
helpers removed from Dust core. New npm package created for helpers.
- Loading branch information
Showing
23 changed files
with
1,314 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# | ||
# Run all tests | ||
# | ||
test: | ||
node test/server.js | ||
|
||
# | ||
# Run jasmine-test | ||
# | ||
jasmine: | ||
node test/jasmine-test/server/specRunner.js helpersTests | ||
|
||
# | ||
# Run code coverage and generate report | ||
# | ||
coverage: | ||
cover run test/server.js && cover report && cover report html | ||
|
||
# | ||
# Build the docs | ||
# | ||
docs: | ||
node docs/build.js | ||
|
||
# | ||
# 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]\+'} | ||
HELPERS = dist/dust-helpers-${VERSION}.js | ||
|
||
|
||
define HEADER | ||
// | ||
// Dust-helpers - Addional functionality for dustjs-linkedin package v${VERSION} | ||
// | ||
// Copyright (c) 2012, LinkedIn | ||
// Released under the MIT License. | ||
// | ||
|
||
endef | ||
|
||
export HEADER | ||
|
||
helpers: | ||
@@mkdir -p dist | ||
@@touch ${HELPERS} | ||
@@echo "$$HEADER" > ${HELPERS} | ||
@@cat ${SRC}/dust-helpers.js >> ${HELPERS} | ||
@@echo ${HELPERS} built | ||
|
||
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 |
Oops, something went wrong.