Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Proper prod/dev dependencies #2

Open
antho1404 opened this issue Oct 14, 2018 · 2 comments
Open

Proper prod/dev dependencies #2

antho1404 opened this issue Oct 14, 2018 · 2 comments

Comments

@antho1404
Copy link
Member

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

  • ts-node
  • types/node
  • typescript
    Better to install them with a --save-dev
@NicolasMahe
Copy link
Member

NicolasMahe commented Oct 15, 2018

I chose to not build and run the ts but directly run it. See the package.json:

"start": "ts-node src/index.ts",

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

@antho1404
Copy link
Member Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants