Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

scripts for the backend

"scripts": {
  "build": "rimraf dist && tsc",
  "preserve": "npm run build",
  "serve": "cross-env NODE_ENV=development concurrently "tsc --watch" "nodemon -q dist/index.js"",
  "prestart": "npm run build",
  "start": "cross-env NODE_ENV=production node dist/index.js",
  "test": "echo "Error: no test specified" && exit 1"
},
Source by ultimatecourses.com #
 
PREVIOUS NEXT
Tagged: #scripts #backend
ADD COMMENT
Topic
Name
6+7 =