@akivajgordon/npg
v0.1.2
Published
Node Project Generator
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
devscript 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-projFull usage:
Usage: npg [options] <project-path>
npg - node project generator
Arguments:
project-path path to the project to be generated
Options:
--express generate sample express file as main source
-h, --help display help for commandJump into that newly created directory:
cd /path/to/my-new-projNow you can start dev mode:
npm run devLeave 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!
