Skip to content

Commit

Permalink
[fixed] added rules to compile on Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Jun 16, 2017
1 parent e921de8 commit 2f0a1a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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/*
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2f0a1a9

Please sign in to comment.