metachris / metachris.com-comments

Comments for metachris.com
https://www.metachris.com
0 stars 0 forks source link

Starting a TypeScript Project in 2021 #5

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Starting a TypeScript Project in 2021 · Chris Hager

This is a guide for starting a TypeScript project in 2021 with modern tooling.

TypeScript 4 Optionally esbuild to bundle for browsers (and Node.js) Linting with typescript-eslint (tslint is deprecated) Testing with Jest (and ts-jest) Publishing a package to npm Continuous integration (GitHub Actions / GitLab CI) Automatic API documentation with TypeDoc

https://www.metachris.com/2021/04/starting-a-typescript-project-in-2021/

sachinjoseph commented 3 years ago

Great post! :-) You might also want to take a look at TSDoc and Rush Stack. :-)

(I work with the team that maintains these projects.)

soyuka commented 3 years ago

You talk about fetch, WebSocket, Buffer but don't mention the underrated EventSource.

chrish-21 commented 3 years ago

Thanks for the post!

Your blog post lint script still uses tslint, whereas the repository correctly uses eslint.

Post: "lint": "tslint -c tslint.json 'src/**/*.ts'",

Repository: "lint": "eslint src/ --ext .js,.jsx,.ts,.tsx",

metachris commented 3 years ago

Thanks, fixed the linting, updated to the same as in the repo (using eslint)

Youmoo commented 3 years ago

Very thorough and practical . Can I translate this article to Chinese? Thanks.

metachris commented 3 years ago

Feel free to translate! And please post a link.

bespired commented 3 years ago

v1.9.2 " It’s still somewhat new and experimental though."
This is what is wrong with the coders of the internet today.

AviCraimer commented 3 years ago

Could you elaborate on how to set up Jest to work with esbuild? I've been having some trouble with that.