5.0.0 • Published 3 months ago

@gb-nx/workspace v5.0.0

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

@gb-nx/workspace

This library was generated with Nx.

CI npm version

Nx Plugin for workspace utilities in your Nx workspace

Features

Here is a list of some of the coolest features of the plugin:

  • ✅ You work with the routes and components and the plugin manages boilerplate
  • ✅ Building, testing, linting your projects

Prerequisite

If you have not already, create an Nx workspace with the following:

# npm
npx create-nx-workspace@latest

# yarn
yarn create nx-workspace@latest

Getting Started

Then you need to install the plugin in order to work with applications later on.

Installing Plugin

# npm
npm install @gb-nx/workspace --save-dev

# yarn
yarn add @gb-nx/workspace --dev

Add a module

nx g @nx/node:application payroll

nx g @gb-nx/workspace:module employee --kind class --project payroll

See nx g @gb-nx/workspace --help for all options

OPTIONDESCRIPTION
--nameThe name of the module.
--projectThe project to target.
--skipFormatSkip formatting files.
--pascalCaseFilesUse Pascal case for class type module file names.
--directoryThe directory to create the module, relative to your project source.
--kindThe kind of module. class for a class or values for a general module to export expressions or functions etc
--skipTestsDo not create "spec.ts" test files for the new module.

Add junit reporter to a @nx/jest project

nx g @gb-nx/workspace:junit <project> [options]

ArgumentsDescription
<project>The project to add junit to.
OptionsDefaultDescription
--tags-Tags to use for linting (comma-delimited).
--reporterVersion^16.0.0The version of junit-reporter to use.
--skipFormatfalseSkip formatting files.

Migrations

This plugin supports Nx migrations and provides necessary version and code updates. So instead of bumping plugin version manually in package.json it's recommended to run nx migrate @gb-nx/workspace command, that includes bumping the version of the @gb-nx/workspace plugin, related dependencies and running code migrations.

@gb-nx/workspace & Nx Compatibility Chart

@gb-nx/workspace versionNx version
^5.0.0>=17.0.0
^4.0.0^17.0.0
^3.0.0^16.0.0
<3.0.0^15.0.0

License

MIT

5.0.0

3 months ago

5.0.0-alpha.0

3 months ago

0.0.0-e.0

4 months ago

4.1.1

4 months ago

4.1.0

4 months ago

4.1.0-alpha.1

4 months ago

4.1.0-alpha.3

4 months ago

4.1.0-alpha.2

4 months ago

4.0.1

5 months ago

4.0.0

5 months ago

3.2.0-alpha.1

8 months ago

3.2.0-alpha.3

8 months ago

3.2.0

8 months ago

3.1.1

9 months ago

3.1.0

9 months ago

2.2.0

1 year ago

2.1.1

1 year ago

2.5.0

1 year ago

2.4.1

1 year ago

2.4.0

1 year ago

2.5.0-1

1 year ago

2.5.0-0

1 year ago

2.5.0-3

1 year ago

2.5.0-2

1 year ago

3.0.0

1 year ago

3.0.0-0

1 year ago

2.1.0

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.3.0

1 year ago

1.3.0-alpha.0

1 year ago

1.3.0-alpha.2

1 year ago

1.3.0-alpha.1

1 year ago

1.2.0-alpha.2

2 years ago

1.2.0-alpha.3

2 years ago

1.2.0-alpha.0

2 years ago

1.2.0-alpha.1

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago