package.json 952 B

1234567891011121314151617181920212223242526272829303132
  1. {
  2. "name": "tutorial",
  3. "version": "1.0.0",
  4. "description": "",
  5. "main": "index.js",
  6. "scripts": {
  7. "start": "if-env NODE_ENV=production && npm run start:prod || npm run start:dev",
  8. "start:dev": "webpack-dev-server --inline --content-base public/ --history-api-fallback",
  9. "start:prod": "npm run build && node server.bundle.js",
  10. "build:client": "webpack",
  11. "build:server": "webpack --config webpack.server.config.js",
  12. "build": "npm run build:client && npm run build:server"
  13. },
  14. "author": "",
  15. "license": "ISC",
  16. "dependencies": {
  17. "compression": "^1.6.1",
  18. "if-env": "^1.0.0",
  19. "react": "^0.14.7",
  20. "react-dom": "^0.14.7",
  21. "react-router": "^2.0.0"
  22. },
  23. "devDependencies": {
  24. "babel-core": "^6.5.1",
  25. "babel-loader": "^6.2.2",
  26. "babel-preset-es2015": "^6.5.0",
  27. "babel-preset-react": "^6.5.0",
  28. "http-server": "^0.8.5",
  29. "webpack": "^1.12.13",
  30. "webpack-dev-server": "^1.14.1"
  31. }
  32. }