Sha256: bd5baeebfd5680c9ea9d733d6a6c858b920a13073682c05a1d5d83e1a871be15

Contents?: true

Size: 1.23 KB

Versions: 36

Compression:

Stored size: 1.23 KB

Contents

REPO = git@github.com:twitter/hogan.js.git
BUILD := build
VERSION = ${shell node -e 'var s = JSON.parse(require("fs").readFileSync("package.json").toString()).version; console.log(s.substring(0, s.indexOf("-")));'}

#
# Run command line tests
#
test:
	@ node test/index.js

#
# Run Mustache spec tests
#
spec:
	@ node test/spec.js

#
# Run benchmark
#
benchmark:
	@ node benchmark/console/index.js

clean:
	@ rm -rf dist/*
#
# Make a new version of Hogan from the current dev version.
#
release: clean
	@ echo "Creating a new version of Hogan."
	@ mkdir -p dist/nodejs
	@ cp -R lib dist/nodejs/lib
	@ node tools/release.js
	@ mkdir -p web/builds/$(VERSION)
	@ cp dist/*.* web/builds/$(VERSION)/.
#
# Make the gh-pages website
#
# This target builds the hogan.js github website using hogan.js.
#
# cd into build/gh-pages to check in the new site.
#
GH_PAGES = $(BUILD)/gh-pages
web: | pages
	@cp -R web/* $(GH_PAGES)
	@@ node tools/web_templates.js
	@echo
	@echo "Website built in $(GH_PAGES)."

#
# Checkout the gh-pages branch.
#
pages: | $(BUILD)
	@if [ ! -d "$(GH_PAGES)" ]; then \
	git clone -b gh-pages $(REPO) $(GH_PAGES); \
	rm -rf $(GH_PAGES)/*; \
	fi;
	@mkdir -p $(GH_PAGES)/images

$(BUILD):
	mkdir -p $(BUILD)

.PHONY: test spec benchmark web release

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
sass-twitter-bootstrap-0.1.0 docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.8 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.7.9 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.7.8 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.7.7 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.7.6 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.7.5 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.7.4 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.7.3 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.7.2 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.7.1 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.7 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.6 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.5 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.4 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.3 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.2 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.1 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.1.rc7 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile
bootstrapped-rails-2.0.1.rc6 vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile