@akivajgordon/npg
v0.0.3
Published
Node Project Generator
Downloads
16
Readme
npg - Node Project Generator
Description
npg is a super opinionated CLI that creates a new Node.js TypeScript project with the following setup:
- a git repository with a Node-appropriate .gitignore file
- prettier (without semicolons of course)
- npm scripts, including a
dev
script that reruns the application whenever a change to the source is detected (via nodemon) - (TODO) .env support
- (TODO) CI/CD on GitHub
Usage
Run using npx
:
npx @akivajgordon/npg /path/to/my-new-proj
...or install globally and run:
npm install -g @akivajgordon/npg
npg /path/to/my-new-proj
When creating your project you can add the --express
flag to initialize the project as an express app
Jump into that newly created directory:
cd /path/to/my-new-proj
Now you can start dev mode:
npm run dev
Leave that terminal running and watch as it rebuilds and restarts your program whenever you edit your source code. Now the project is yours, so happy coding!