light-starter-cli
v2.3.0
Published
A CLI tool to generate an optimized and lightweight Node.js boilerplate for quick project starts
Downloads
6
Readme
light-starter
CLI to create a Node.js boilerplate with Express or Fastify.
Installation
npm install -g light-starter
Usage
light-starter
Follow the prompts to create your Node.js project boilerplate.
Features
- Choose between Express or Fastify as the server framework.
- Automatically installs the latest versions of dependencies.
- Integrates with Husky and lint-staged for pre-commit linting.
Dependencies
- commander - For CLI command line options.
- inquirer - For interactive prompts.
- fs-extra - For file system operations.
- execa - For executing npm commands programmatically.
Scripts
start
: Starts the server usingtsx src/server.ts
.build
: Builds the TypeScript files usingtsup
.start:dev
: Starts the server in watch mode usingtsx watch src/server.ts
.husky:prepare
: Prepares Husky for linting.test
: Runs tests usingvitest
.test:lint
: Runs linting tests.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
MIT