From 632bbe68d912d3122799357fd3741c908b7bb987 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 27 Oct 2016 07:11:39 +0100 Subject: [PATCH] Added Makefile --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..57c29178 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +.PHONY: clean + +BOWER="node_modules/.bin/bower" +GULP="node_modules/.bin/gulp" +SCULPIN="vendor/bin/sculpin" + +init: build watch + +build: + composer install \ + && yarn \ + && $(BOWER) install \ + && $(GULP) build + +clean: + rm -rf node_modules/ output_*/ vendor/ + +generate: + $(SCULPIN) generate --clean --no-interaction + +gulp: + $(GULP) watch + +serve: + $(SCULPIN) generate --server --clean --no-interaction + +watch: + $(SCULPIN) generate --server --watch --clean --no-interaction