0.0.5-beta • Published 9 months ago

@dcat23/nx-feature v0.0.5-beta

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

Feature

Nx generators to create components, hooks and apis in a NextJs application

Installation

npx nx add @dcat23/nx-feature

Usage

Components

Create a react component

npx nx generate @dcat23/nx-feature:component [name] [feature?] [options,...]

or

npx nx g component [name] [feature?] [options,...]

Options

--name          The name of the component                       [ string  ]
--directory     Where to create the component.                  [ string  ]
--feature       The package name to store the component to.     [ string  ]
--skipExport    Will skip adding file to the relative index.ts  [ boolean ]

API

Create a react API

npx nx generate @dcat23/nx-feature:api [name] [feature?] [options,...]

or

npx nx g api [name] [feature?] [options,...]

Options

--name          The name of the component                             [ string  ]
--directory     Where to create the component.                        [ string  ]
--feature       The package name to store the component to.           [ string  ]
--skipExport    Will skip adding file to the relative index.ts        [ boolean ]
--hook          Will create the associated hook in the same directory [ boolean ]

Hooks

Create a react hook component

npx nx generate @dcat23/nx-feature:hook [name] [feature?] [options,...]

or

npx nx g hook [name] [feature?] [options,...]

Options

--name          The name of the component                       [ string  ]
--directory     Where to create the component.                  [ string  ]
--feature       The package name to store the component to.     [ string  ]
--skipExport    Will skip adding file to the relative index.ts  [ boolean ]
--mutation      Will create the hook with a Mutation method     [ boolean ]
--query         Will create the hook with a Query method        [ boolean ]

Building

Run nx build feature to build the library.

Running unit tests

Run nx test feature to execute the unit tests via Jest.

0.0.5-beta

9 months ago

0.0.4-beta-sunday

9 months ago

0.0.3-dev-thurs

9 months ago

0.0.3-dev-wed

9 months ago

0.0.3-fix-store

9 months ago

0.0.3-dev-tuesday

9 months ago

0.0.3-dev-many

9 months ago

0.0.2-dev3

10 months ago

0.0.2-dev2

10 months ago

0.0.2-dev1

10 months ago

0.0.2-dev-dev

10 months ago

0.0.2-dev

10 months ago

0.0.1-dev

10 months ago

0.0.1

10 months ago