From 316102ab14e872a75f46ac1ddbb97a6a986f13c6 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Sun, 4 Jan 2015 23:53:28 +0800 Subject: [PATCH] Make build target the default target The top target is implicitly the default target, having this as *clean* is rather unothodox, usually it would be the executable or library target. --- Makefile | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 797d3f41a6..ee5cbe0098 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,22 @@ export NODE_ENV = test .PHONY: clean test test-cov test-clean lint test-travis test-spec test-browser publish bench build +build: + mkdir -p dist + + node bin/cache-templates + + node $(BROWSERIFY_CMD) -e lib/6to5/polyfill.js >dist/polyfill.js + node $(UGLIFY_CMD) dist/polyfill.js >dist/polyfill.min.js + + node $(BROWSERIFY_CMD) lib/6to5/browser.js -s to5 >dist/6to5.js + node $(UGLIFY_CMD) dist/6to5.js >dist/6to5.min.js + + node bin/6to5-runtime >dist/runtime.js + node $(UGLIFY_CMD) dist/runtime.js >dist/runtime.min.js + + rm -rf templates.json + clean: rm -rf coverage templates.json test/tmp dist @@ -45,22 +61,6 @@ test-browser: test -n "`which open`" && open test/browser.html -build: - mkdir -p dist - - node bin/cache-templates - - node $(BROWSERIFY_CMD) -e lib/6to5/polyfill.js >dist/polyfill.js - node $(UGLIFY_CMD) dist/polyfill.js >dist/polyfill.min.js - - node $(BROWSERIFY_CMD) lib/6to5/browser.js -s to5 >dist/6to5.js - node $(UGLIFY_CMD) dist/6to5.js >dist/6to5.min.js - - node bin/6to5-runtime >dist/runtime.js - node $(UGLIFY_CMD) dist/runtime.js >dist/runtime.min.js - - rm -rf templates.json - publish: git pull --rebase