marcus-s
8/12/2016 - 5:43 PM

example package.json

example package.json

{
  "name": "todo",
  "version": "1.0.0",
  "description": "foobar",
  "main": "index.js",
  "scripts": {
    // npm run server requires webpack-dev-server.
    // not suer about content base could be something else
    "server": "./node_modules/.bin/webpack-dev-server --inline --hot --content-base src",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Marcus Shepherd",
  "license": "ISC",
  "devDependencies": {
    "babel-core": "^6.13.2",
    "babel-loader": "^6.2.4",
    "babel-preset-es2015": "^6.13.2",
    "webpack": "^1.13.1",
    "webpack-dev-server": "^1.14.1"
  },
  "dependencies": {
    "babel-preset-react": "^6.11.1",
    "react": "^15.3.0",
    "react-dom": "^15.3.0"
  }
}