Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. "scripts": {
  2. "_comment_" : "clean our build folder and all logs",
  3. "clean": "rimraf ./build/* && rimraf ./logs/*",
  4. "_comment_" : "lint all source code",
  5. "lint": "tslint -c tslint.json 'src/**/*.ts'",
  6. "_comment_" : "build will clean, lint then will call webpack with watch enabled to check and transpile",
  7. "build": "yarn clean && yarn lint && webpack --watch",
  8. "_comment_" : "start the build in development mode",
  9. "start:dev": "NODE_ENV=development yarn build",
  10. "_comment_" : "will be called by webpack when build is done to run pm2 with our development config",
  11. "run:dev": "pm2 start ./config/pm2/pm2-dev-process.config.js",
  12. "_comment_" : "start the build in production mode",
  13. "start:prod": "NODE_ENV=production yarn build",
  14. "_comment_" : "will be called by webpack when build is done to run pm2 with our development config",
  15. "run:prod": "pm2 start ./config/pm2/pm2-prod-process.config.js",
  16. "_comment_" : "pm2 monitor feature, helps track your processes, logs, memory usage, ...",
  17. "monitor": "pm2 monit",
  18. "_comment_" : "will display the last 2000 lines of the logs",
  19. "logs": "pm2 logs api-rest --lines 2000",
  20. "_comment_" : "stop will delete pm2 processes and clean everything",
  21. "stop": "pm2 delete api-rest && yarn clean"
  22. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement