node-project-add
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

node-project-add

Add eslint, prettier, husky or typescript support to your existing NodeJS or React project.

Add typescript support to your project

npx node-project-add typescript

Add eslint+prettier+husky+lint-staged support

npx node-project-add eslint

Example: Creating a typescript node project from scratch:

mkdir test-app-typescript
cd test-app-typescript
npm init -y
npx node-project-add typescript
npx node-project-add eslint

Congratulations, you now have a typescript node project with full linter and autofix fully configured! Directory build contains the transpiled javascript build, src directory contains the source. File src/index.ts is the entry file of your app.

CLI DOCS

oclif Version Downloads/week License

Usage

$ npm install -g node-project-add
$ node-project-add COMMAND
running command...
$ node-project-add (-v|--version|version)
node-project-add/0.0.4 darwin-x64 node-v12.16.1
$ node-project-add --help [COMMAND]
USAGE
  $ node-project-add COMMAND
...

Commands

node-project-add eslint

Add a proper eslint+prettier configuration for your typescript project

USAGE
  $ node-project-add eslint

EXAMPLE
  $ node-project-add eslint
  eslint config added

See code: src/commands/eslint.ts

node-project-add help [COMMAND]

display help for node-project-add

USAGE
  $ node-project-add help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

node-project-add typescript

Add a typescript configuration for a node project

USAGE
  $ node-project-add typescript

EXAMPLE
  $ node-project-add typescript

See code: src/commands/typescript.ts

Readme

Keywords

Package Sidebar

Install

npm i node-project-add

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

31.3 kB

Total Files

34

Last publish

Collaborators

  • ikatun