818
Du
dustymarkdown / files
dustymarkdown / node_modules / dust / Makefile
1.3 KB
1# 2# Run all tests 3# 4test: 5 node test/server.js 6 7# 8# Run the benchmarks 9# 10bench: 11 node benchmark/server.js 12 13# 14# Build the docs 15# 16docs: 17 node docs/build.js 18 19# 20# Build the parser 21# 22parser: 23 node src/build.js 24 25# 26# Build dust.js 27# 28 29SRC = lib 30VERSION = ${shell cat package.json | grep version | grep -o '[0-9]\.[0-9]\.[0-9]\+'} 31CORE = dist/dust-core-${VERSION}.js 32CORE_MIN = dist/dust-core-${VERSION}.min.js 33FULL = dist/dust-full-${VERSION}.js 34FULL_MIN = dist/dust-full-${VERSION}.min.js 35 36define HEADER 37// 38// Dust - Asynchronous Templating v${VERSION} 39// http://akdubya.github.com/dustjs 40// 41// Copyright (c) 2010, Aleksander Williams 42// Released under the MIT License. 43// 44 45endef 46 47export HEADER 48 49dust: 50 @@mkdir -p dist 51 @@touch ${CORE} 52 @@echo "$$HEADER" > ${CORE} 53 @@cat ${SRC}/dust.js >> ${CORE} 54 @@echo ${CORE} built 55 @@touch ${FULL} 56 @@echo "$$HEADER" > ${FULL} 57 @@cat ${SRC}/dust.js\ 58 ${SRC}/compiler.js\ 59 ${SRC}/parser.js >> ${FULL} 60 @@echo ${FULL} built 61 62min: dust 63 @@echo minifying... 64 @@echo "$$HEADER" > ${CORE_MIN} 65 @@echo "$$HEADER" > ${FULL_MIN} 66 @@minmin ${CORE} >> ${CORE_MIN} 67 @@minmin ${FULL} >> ${FULL_MIN} 68 69clean: 70 git rm dist/* 71 72release: clean docs min 73 git add dist/* 74 git commit -a -m "release v${VERSION}" 75 git tag -a -m "version v${VERSION}" v${VERSION} 76 npm publish 77 78.PHONY: test docs bench parser