{
  "name": "orchard-sample-react-app",
  "version": "1.0.0",
  "description": "A sample react application",
  "main": "main.js",
  "scripts": {
    "start": "npm run watch-build",
    "watch-build": "./node_modules/.bin/nodemon -e js,json --watch ./components/ --exec 'npm run' build",
    "build": "npm run bundle && npm run bundle-into-src",
    "deploy": "npm run clean-deploy && npm run bundle && npm run version-assets && npm run deploy-to-s3",
    "clean-deploy": "npm run clean-unversioned-assets && npm run clean-versioned-assets",
    "bundle": "mkdir -p ./public/js/ && ./node_modules/browserify/bin/cmd.js -t [ babelify --presets [ react ] ] ./components/main.js -o > ./public/js/bundle.js",
    "bundle-into-src": "./node_modules/browserify/bin/cmd.js -t [ babelify --presets [ react ] ] ./components/main.js -o > ./src/bundle.js",
    "clean-versioned-assets": "rm -rf ./public/assets",
    "clean-unversioned-assets": "rm -rf ./public/js/",
    "version-assets": "VERSIONED_ASSET_PATH=./public/assets/$DEPLOY_TIMESTAMP && mkdir -p $VERSIONED_ASSET_PATH && mkdir $VERSIONED_ASSET_PATH/js && cp public/js/*.js* $VERSIONED_ASSET_PATH/js/",
    "deploy-to-s3": "npm run upload-assets-to-s3 && npm run write-asset-manifest && npm run upload-asset-manifest-to-s3",
    "upload-assets-to-s3": "aws s3 cp ./public/assets/$DEPLOY_TIMESTAMP/* s3://$S3_BUCKET/$S3_KEY/$DEPLOY_TIMESTAMP/ --recursive",
    "write-asset-manifest": "echo 'https://$CDN_URL/$S3_KEY/$DEPLOY_TIMESTAMP/' > ./public/assets/manifest.txt",
    "upload-asset-manifest-to-s3": "aws s3 cp ./public/assets/manifest.txt s3://$S3_BUCKET/$S3_KEY/manifest.txt"
  },
  "author": "Jess Chung",
  "dependencies": {
    "babel-preset-react": "^6.5.0",
    "babelify": "^7.2.0",
    "browserify": "^13.0.0",
    "jquery": "^2.2.1",
    "nodemon": "^1.7.1",
    "react": "^0.14.7",
    "react-dom": "^0.14.7"
  }
}
