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