Giter Site home page Giter Site logo

robin-hartmann / template-node-ts Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 285 KB

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

License: MIT License

JavaScript 79.15% TypeScript 20.85%
typescript eslint vscode template template-project windows linux macos nodejs cli-app

template-node-ts's Introduction

๐Ÿ“„ 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.

template-node-ts's People

Contributors

dependabot[bot] avatar robin-hartmann avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.