Permalink
Browse files

Merge pull request #377 from koenbok/feature/update-makefile

Feature/update makefile
  • Loading branch information...
koenbok committed Jul 27, 2016
2 parents 27d2d35 + 10772be commit 8463a449bca094cb67c7280efce33e912033433c
Showing with 17 additions and 9 deletions.
  1. +15 −7 Makefile
  2. +2 −2 gulpfile.coffee
@@ -2,33 +2,41 @@
BIN = $(CURDIR)/node_modules/.bin
.DEFAULT_GOAL := watch
.PHONY: watch test debug release
default: lazy_bootstrap lazy_build test
# Utilities
bootstrap:
npm install
lazy_bootstrap: ; @test -d ./node_modules || make bootstrap
unbootstrap:
rm -Rf node_modules
clean:
rm -rf build
rm -Rf node_modules
# Building and testing
watch: bootstrap
watch: lazy_bootstrap
$(BIN)/gulp watch
test: bootstrap
$(BIN)/gulp test
debug: bootstrap
build: lazy_bootstrap
$(BIN)/gulp webpack:debug
release: bootstrap
lazy_build: ; @test -f ./build/framer.debug.js || make build
test: lazy_build
$(BIN)/gulp test
release: lazy_bootstrap
$(BIN)/gulp webpack:release
@@ -26,7 +26,7 @@ WEBPACK =
# Gulp tasks
gulp.task "watch", ["webpack:debug"], ->
gulp.watch(["./*.coffee", "framer/**", "test/tests/**", "!Version.coffee"], ["test"])
gulp.watch(["./*.coffee", "framer/**", "test/tests/**", "!Version.coffee"], ["webpack:debug","test"])
gulp.task "test", ["webpack:tests"], ->
return gulp
@@ -91,7 +91,7 @@ gulp.task "webpack:release", ["version"], (callback) ->
webpackDev("webpack:release", config, callback)
gulp.task "webpack:tests", ["webpack:debug"], (callback) ->
gulp.task "webpack:tests", (callback) ->
config = _.extend WEBPACK,
entry: "./test/tests.coffee"

0 comments on commit 8463a44

Please sign in to comment.