0.3.1 • Published 9 months ago

node-ts-starter-cli v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

NPM package CI GitHub issues GitHub license

Node TS Starter CLI

Since I make a lot of projects, I created this Node TS Starter CLI to easily create a new Node project with TypeScript.

Getting started

To get started with the Node TS Starter CLI, simply run the following command in your command line interface:

npx node-ts-starter-cli create your-project-name -M

The command will generate your project in the ./your-project-name/ folder.

For an example of a generated project you can look at the example.

Features

  • Strict TypeScript configuration
  • Compiled and bundled with esbuild
  • Commitizen (-c)
  • ESLint (-l)
  • Prettier (-p)
  • Docker support (-d)
  • Github Action CI (-g)
  • Separate Dev/Prod config files (-e)

Analyzing your bundle

With esbuild we can generate a meta.json file using the npm run build:meta or npm run build:meta:prod commands, which we can then can be uploaded to Bundle Buddy to perform a detailed bundle analasys.

The Node TS Starter CLI offers additional options such as --minimal and --maximal for a minimal or maximal project setup, as well as options for linting, Docker support, and config per environment. You can find a full list of options by running node-ts-starter-cli create --help.

node-ts-starter-cli create <name> [args]

Creates a new project.

Positionals:
  name  Project and folder name             [string] [required] [default: "node-typescript-starter"]

Creation options
  -m, --minimal        Project setup without any features and minimal code.                [boolean]
  -M, --maximal        Project setup with all features.                                    [boolean]
  -d, --docker         Adds support for Docker.                                            [boolean]
  -g, --github-action  Adds Github Action CI.                                              [boolean]
  -l, --eslint         Adds linting configuration.                                         [boolean]
  -e, --environments   Adds support for config per environment.                            [boolean]
  -c, --commitizen     Adds commitizen for clean commits.                                  [boolean]
  -p, --prettier       Adds prettier configuration.                                        [boolean]

Options:
      --version  Show version number                                                       [boolean]
      --help     Show help                                                                 [boolean]

Support

If you have any issues or questions, please feel free to open a GitHub issue.

0.3.0

9 months ago

0.3.1

9 months ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.1.0

1 year ago

0.1.0-dev.4

1 year ago

0.1.0-dev.3

1 year ago

0.1.0-dev.2

1 year ago

0.1.0-dev.1

1 year ago

0.1.0-dev.0

1 year ago

0.0.3

1 year ago

0.0.3-dev.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.1-dev.2

1 year ago

0.0.1-dev.1

1 year ago

0.0.1-dev.0

1 year ago