-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
- in monorepo setup, when
--projectis provided, schematics should derivesourceRootandprojectTypefromangular.jsonfor that project.
ng g @ngxs/schematics:store --name=store/auth --spec --project=auth -dshould generate:
CREATE libs/auth/src/libs/store/auth/auth.actions.ts
CREATE libs/auth/src/libs/store/auth/auth.state.spec.ts
CREATE libs/auth/src/libs/store/auth/auth.state.ts
Workaround
ng g @ngxs/schematics:store --name=store/auth --spec --project=auth --sourceRoot=libs/auth/src/libs -d- when
--nameconsistspath, it should not add extra path prefix. i.e.,store/auth/auth.actions.ts -> store/auth.actions.ts
ng g @ngxs/schematics:store --name=store/auth --spec --project=auth -dshould generate
CREATE libs/auth/src/libs/store/auth.actions.ts
CREATE libs/auth/src/libs/store/auth.state.spec.ts
CREATE libs/auth/src/libs/store/auth.state.ts
- when
--nameis not provided, first arg should be treated as--name
ng g @ngxs/schematics:store store/auth --spec --project=auth -d
--spec=trueshould be default. if users don't need spec , they can provide--spec=false
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels