Scaffolding
Generate Angular Artifacts
Generate Artifacts
Add
--dry-runor-doption to following commands to see which artifacts will be created, without actually creating them.
generate domain modules
# generate domain. optional flags: --platform <web/mobile/desktop/node> --app <appName> --lazy <true/false>
# defaults platform=web, app=defaultProject, lazy=true
nx g @xmlking/nxp-ddd:domain home
nx g @xmlking/nxp-ddd:domain dashboard
nx g @xmlking/nxp-ddd:domain admingenerate feature modules for each domain
# generate feature module. optional flags: --platform <web/mobile/desktop/node> --lazy --entity <entity>
# defaults platform=web, lazy=true, entity= no entity created
nx g @xmlking/nxp-ddd:feature blog --domain home
nx g @xmlking/nxp-ddd:feature landing --domain home
nx g @xmlking/nxp-ddd:feature account --domain dashboard --entity accountgenerate Lazy-loaded Feature Modules
with angular schematics (a.k.a. @nrwl/angular which is default in
angular.json)
generate shared neutral libs
with no-framework (a.k.a. @nrwl/workspace schematics)
generate shared angular libs
with angular schematics (a.k.a. @nrwl/angular which is default in
angular.json)
Workspace Schematics
Last updated
Was this helpful?