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 modern JavaScript - transpiled down to ES2015

License

Notifications You must be signed in to change notification settings

robin-hartmann/template-node-js-modern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

48 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“„ template-node-js-modern

Project Template for creating Node.js apps with modern JavaScript - transpiled down to ES2015

⭐ Features

  • Code in modern JavaScript
    • Transpiled down to ES2015
  • Run modern JavaScript 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

# remove 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 modern JavaScript code using ts-node
npm run start:js
# or just
npm start

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

# publish the project
# (includes build)
npm publish

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

🧰 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.