0.0.1-alpha.0 • Published 12 months ago

@jojoxd/barrels-nx v0.0.1-alpha.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
12 months ago

@jojoxd/barrels-nx

Run @jojoxd/barrels using NX.

yarn install -D @jojoxd/barrels @jojoxd/barrels-nx

Generators

@jojoxd/barrels:configuration

Configure @jojoxd/barrels for a project, including barrels target

nx generate @jojoxd/barrels:configuration <project>

Or use it in your own generator:

// generator.ts
import { configurationGenerator, ConfigurationGeneratorSchema } from "@jojoxd/barrels-nx";
import { Schema } from "./schema";

export default async function(tree: Tree, schema: Schema & ConfigurationGeneratorSchema): Promise<void>
{
    await configurationGenerator(tree, schema);
}

Executors

@jojoxd/barrels:generate

Execute barrels

{
  "targets": {
    "barrels": {
      "executor": "@jojoxd/barrels:generate",
      
      "options": {
        "TODO": "Options reference"
      }
    }
  }
}