Skip to content

Commit

Permalink
Fixes + use make
Browse files Browse the repository at this point in the history
  • Loading branch information
liamness committed Feb 23, 2016
1 parent 1cb568f commit 757cb65
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
build:
# start build tasks
eslint src/js/** &
postcss -c config/postcss.json &
webpack --config config/webpack.config.js

server:
# start watch tasks
esw src/js/** --watch &
postcss -c config/postcss.dev.json -m --watch &
webpack --config config/webpack.dev.config.js --watch &

# open browser with live reload
browser-sync start --server public --files 'public/*.css, public/*.html, public/*.js'
6 changes: 0 additions & 6 deletions bin/build.sh

This file was deleted.

9 changes: 0 additions & 9 deletions bin/server.sh

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"babel-core": "^6.5.2",
"babel-loader": "^6.2.3",
"babel-preset-es2015-webpack": "^6.3.14",
"browser-sync": "^2.11.1",
"cssnano": "^3.5.2",
"eslint": "^2.2.0",
"eslint-watch": "^2.1.8",
Expand All @@ -23,7 +24,7 @@
"webpack": "^2.0.7-beta"
},
"scripts": {
"server": "./bin/server.sh",
"build": "./bin/build.sh"
"build": "make build",
"server": "make server"
}
}

0 comments on commit 757cb65

Please sign in to comment.