#How we deploy Node JS apps with TS

3 messages · Page 1 of 1 (latest)

high elbow
#

For client side apps, we transpile ts and then minified file to save bandwidth.

How we deploy node js app in production?

"scripts": {
    "test": "jest --watchAll --no-cache",
    "start": "ts-node-dev --poll src/index.ts",
    "test:ci": "jest"
  },

or

"scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "tsc && node ./dist/index.js",
    "dev": "ts-node-dev src/index.ts"
  },

What is standard to run node js apps? Is it not required to minified JS files on server?

carmine atlas
#

so really the main difference between ts-node and tsc + regular node is startup time, i think