{
  "name": "template",
  "version": "0.1.0",
  "description": "A template for web projects.",
  "author": "Markus Wüstenberg",
  "license": "MIT",
  "scripts": {
    "build": "npm run clean && npm run copy-static && browserify -t [ babelify ] source/app.js -o build/app.js",
    "clean": "mkdir -p build && rm -rf build/*",
    "copy-static": "cp static/* build/",
    "lint": "eslint source tests",
    "start": "static build",
    "test": "browserify -t [ babelify ] tests/app.js | node | faucet",
    "watch": "npm run clean && npm run copy-static && watchify -v -d -t [ babelify ] source/app.js -o build/app.js"
  },
  "dependencies": {
    "react": "^0.14.7",
    "react-dom": "^0.14.7"
  },
  "devDependencies": {
    "babel-preset-es2015": "latest",
    "babel-preset-react": "latest",
    "babel-preset-stage-2": "latest",
    "babelify": "latest",
    "browserify": "latest",
    "eslint": "latest",
    "eslint-plugin-react": "latest",
    "faucet": "latest",
    "node-static": "latest",
    "tape": "latest",
    "watchify": "latest"
  }
}

{
  "name": "template",
  "version": "0.1.0",
  "description": "A template for web projects.",
  "author": "Markus Wüstenberg",
  "license": "MIT",
  "scripts": {
    "build": "npm run clean && npm run copy-static && NODE_ENV=production browserify -t [ babelify ] source/app.js | uglifyjs - -m -c -o build/app.js",
    "clean": "mkdir -p build && rm -rf build/*",
    "copy-static": "cp static/* build/",
    "lint": "eslint source tests",
    "start": "static build",
    "test": "browserify -t [ babelify ] tests/app.js | node | faucet",
    "watch": "npm run clean && npm run copy-static && watchify -v -d -t [ babelify ] source/app.js -o build/app.js"
  },
  "dependencies": {
    "react": "^0.14.7",
    "react-dom": "^0.14.7"
  },
  "devDependencies": {
    "babel-preset-es2015": "latest",
    "babel-preset-react": "latest",
    "babel-preset-stage-2": "latest",
    "babelify": "latest",
    "browserify": "latest",
    "eslint": "latest",
    "eslint-plugin-react": "latest",
    "faucet": "latest",
    "node-static": "latest",
    "tape": "latest",
    "uglify-js": "latest",
    "watchify": "latest"
  }
}

Use uglify-js for production builds
Use uglify-js for production builds
