Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

πŸ“„ Project Template for creating Node.js apps with TypeScript

License

Notifications You must be signed in to change notification settings

robin-hartmann/template-node-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

70 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“„ template-node-ts

Project Template for creating Node.js apps with TypeScript

⭐ Features

  • Code in TypeScript
  • Run TypeScript code using ts-node
  • Built-in tasks using npm scripts
  • Integration with Visual Studio Code
    • Settings
    • Tasks
    • Debuging
    • Extensions
      • Automatic code checking with ESLint
      • Automatic code formatting and fixing with Prettier

πŸ› οΈ Development

These instructions will get you a copy of this project up and running on your local machine for development and testing purposes.

πŸ“‹ Prerequisites

  • Node.js - JavaScript run-time environment
    • After installing it, use npm i in the project's root folder to install all dependencies

Visual Studio Code Extensions

This project is intended to be used with Visual Studio Code and the following extensions are recommended:

  • ESLint - Integrates ESLint JavaScript into VS Code
  • Prettier - Code formatter using prettier

πŸš€ Getting Started

This project uses npm scripts for running tasks:

# lint the project using eslint
npm run lint

# removes the generated folder
npm run clean

# build the project
# (includes clean and lint)
npm run build

# build the project without linting
# (includes clean)
npm run build-only

# run TypeScript code using ts-node
npm run start:ts
# or just
npm start

# run generated JavaScript code using node
# (does NOT include build)
npm run start:js

# publish the project
# (includes build)
npm publish

VS Code tasks are also included for lint, build, build-only, start:ts and start:js.

🧰 Built With

πŸ“š Resources

πŸ›οΈ Libraries

  • TypeScript - A typed superset of JavaScript that compiles to plain JavaScript
  • ESLint - Find and fix problems in your JavaScript code
  • ts-node - TypeScript execution and REPL for node.js

πŸ‘¨β€πŸ’» Authors

πŸ“ƒ License

This project is licensed under the MIT License - see the LICENSE file for details.