node-project-add
Add eslint, prettier, husky or typescript support to your existing NodeJS or React project.
Last updated 2 months ago by ikatun .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-project-add 
SYNC missed versions from official npm registry.

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.3 darwin-x64 node-v12.13.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

Current Tags

  • 0.0.3                                ...           latest (2 months ago)

3 Versions

  • 0.0.3                                ...           2 months ago
  • 0.0.2                                ...           2 months ago
  • 0.0.1                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |