Adds webpack-dev-server, updates build instructions

This commit is contained in:
Kareem Grant
2016-01-28 08:41:18 -05:00
parent 598948adbb
commit fc22b657bd
3 changed files with 10 additions and 6 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
/node_modules
/dist

View File

@@ -13,5 +13,6 @@ Building
To build:
- `npm install`
- `npm install webpack -g`
- `webpack`
- `npm start`
- navigate to localhost:8080

View File

@@ -4,7 +4,7 @@
"description": "Example Reach applicaiton using ag-Grid.",
"main": "dist/ag-grid-react-example.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "webpack-dev-server --progress --colors --hot --inline"
},
"repository": {
"type": "git",
@@ -23,12 +23,13 @@
},
"homepage": "http://www.ag-grid.com/",
"devDependencies": {
"webpack": "1.12.11",
"babel-loader": "6.2.1",
"babel-preset-es2015": "6.3.13",
"babel-preset-react": "6.3.13",
"css-loader": "0.23.1",
"style-loader": "0.13.0",
"babel-loader": "6.2.1",
"babel-preset-react": "6.3.13",
"babel-preset-es2015": "6.3.13"
"webpack": "1.12.11",
"webpack-dev-server": "^1.14.1"
},
"dependencies": {
"react": "0.14.6",