Skip to content

Library generation doesn't generate a library with all expected config files #3

@wgd3

Description

@wgd3

When running the library generator, only 3 files are added:

> nx g @nx-fullstack/harbor-master:lib --name util-routing --baseUrl="/api/v1" --directory="shared" -t type:util,scope:shared --dry-run 

>  NX  Generating @nx-fullstack/harbor-master:library

CREATE libs/shared/util-routing/project.json
CREATE libs/shared/util-routing/src/index.ts
CREATE libs/shared/util-routing/src/lib/routes.ts

Instead, this generator should set up all expected config files as well as:

  • not include a build target
  • include a lint target
  • update nx.json to make it aware of the project
  • updated tsconfig.base.json to reflect the library path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions