mesg-foundation / template-service-typescript

Service template for Typescript
0 stars 0 forks source link

Proper prod/dev dependencies #2

Open antho1404 opened 6 years ago

antho1404 commented 6 years ago

The following packages don't need to be installed for production and are only useful for development

NicolasMahe commented 6 years ago

I chose to not build and run the ts but directly run it. See the package.json: https://github.com/mesg-foundation/template-service-typescript/blob/367231573e41982a08b6861a07125522ab3979e1/template/package.json#L17

Do you think it's better to build the ts in the dockerfile and then run it?

antho1404 commented 6 years ago

ts-node is ok for dev and testing, I’m not sure it’s really reliable enough for production. Usually typescript is to compile it and then you run the js version.

Dockerfile can copy the sources, build and run the compiled node script.