From c73785bb93eb309a5695d6984cb9ce25c452a009 Mon Sep 17 00:00:00 2001 From: Arnaud Didry Date: Wed, 20 Sep 2017 11:43:20 +0200 Subject: [PATCH] Add clean and install steps before building See #1057 --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 88348e1e..d502239c 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,10 @@ run: example_install ## run the example example_install: example/package.json @cd example && npm install -build: ## compile ES6 files to JS +clean: + @rm -rf lib + +build: clean ## compile ES6 files to JS @NODE_ENV=production ./node_modules/.bin/babel ./src -d lib --ignore '*.spec.js' watch: ## continuously compile ES6 files to JS