NodeJS + Typescript
Different of basic kit, this repository is more complete, includes Sucrase compiler, ESLint and Prettier.
What is
Clean and initial template to use NodeJS with Typescript, Sucrase compiler + ESLint + Prettier
How use
- Clone this repository and run
npm install
oryarn install
in project folder - Write your code in
src/server.ts
- Run
npm run dev
oryarn dev
to start Sucrase compiler and Nodemon- nodemon will be started after compile success
The entry file is
server.js
Feel free to to customize and collaborate sending a pull request! ๐
Build command
- Run
yarn build
ornpm run build
Configure VSCode
In User Settings (settings.json
) add:
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "typescript",
"autoFix": true
},
{
"language": "typescriptreact",
"autoFix": true
}
]