ngx-bind-io-cli
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

ngx-bind-io-cli

Tools for check Angular7+ components for use ngx-bind-io directives

oclif Version CircleCI Appveyor CI Codecov Downloads/week License

Example use ngx-bind-io directives

Without auto binding inputs and outputs

<component-name
    (start)="onStart()"
    [isLoading]="isLoading$ | async"
    [propA]="propA"
    [propB]="propB">
</component-name>

With auto binding inputs and outputs

<component-name
    [bindIO]>
</component-name>

Usage

Simple

$ npx ngx-bind-io-cli ./src

With detect all component and ignore count of inputs or outputs

$ npx ngx-bind-io-cli ./src --maxInputs=0 --maxOutputs=0

With correct work with tspaths

$ npx ngx-bind-io-cli ./src --maxInputs=0 --maxOutputs=0 --tsconfig=./src/tsconfig.app.json

Commands

ngx-bind-io-cli [PATH]

USAGE
  $ ngx-bind-io-cli [PATH]

OPTIONS
  -c, --tsconfig=tsconfig  Please set if you use tspaths for correct scan
                           base components

  -f, --fix=(used|all)     Auto initialized all not initialized inputs

  -h, --help               show CLI help

  -i, --info               Show inputs and outputs used in components

  -q, --quoteDouble        Double quote type used for string literals

  -v, --version            show CLI version

  --ignores=ignores        Ignored files and paths

  --maxInputs=maxInputs    [default: 3] Max count of inputs for detect need
                           use NgxBindIO directives

  --maxOutputs=maxOutputs  [default: 3] Max count of outputs for detect need
                           use NgxBindIO directives

  --verbose                Show all detail informations for inputs and
                           outputs used in components

Dependents (0)

Package Sidebar

Install

npm i ngx-bind-io-cli

Weekly Downloads

1

Version

0.3.2

License

MIT

Unpacked Size

32.3 kB

Total Files

12

Last publish

Collaborators

  • endykaufman