diff --git a/Makefile b/Makefile index 567d8227..2870c93f 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,11 @@ docs: build-docs # Rules for build and publish -build: +compile: + @echo "[Compiling source]" + babel src --out-dir lib + +build: compile @echo "[Building dists]" @./node_modules/.bin/webpack --config webpack.dist.config.js @@ -120,5 +124,8 @@ publish-docs: deps-docs build-docs publish-all: publish publish-docs -clean: +clean-sources: + @rm -rf lib/* dist/* _book + +clean: clean-sources @rm -rf .version .branch ./coverage/* diff --git a/package.json b/package.json index 14a5a43b..61216af9 100644 --- a/package.json +++ b/package.json @@ -16,12 +16,8 @@ }, "scripts": { "start": "./node_modules/.bin/webpack-dev-server --inline --host 127.0.0.1 --content-base examples/", - "test": "cross-env BABEL_ENV=commonjs NODE_ENV=test karma start", - "lint": "eslint lib/", - "clean": "rimraf lib es", - "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib", - "build:es": "cross-env BABEL_ENV=es babel src --out-dir es", - "build": "npm run clean && npm run build:commonjs && npm run build:es" + "test": "cross-env NODE_ENV=test karma start", + "lint": "eslint lib/" }, "authors": [ "Ryan Florence"