Skip to content

Commit

Permalink
fix(tools): fix workspace-schematic ngxs
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Oct 1, 2018
1 parent 8038909 commit 72151a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions PLAYBOOK.md
Expand Up @@ -385,11 +385,14 @@ ng g component containers/StickyTable --project=experiments --dry-run
ng g component containers/clapButton --project=experiments -s -t --spec=false --dry-run
ng g component containers/knobDemo --project=experiments --dry-run
ng g component containers/ledDemo --project=experiments --dry-run
```

#### Workspace Schematics
```bash
# generate workspace-schematic `ngxs`
ng g workspace-schematic ngxs
# run
npm run workspace-schematic ngxs models/sumo --type=model --project=grid --dry-run
# run workspace-schematic `ngxs`
npm run workspace-schematic ngxs models/sumo -- --type=model --project=grid --dry-run
```

### Install
Expand Down
9 changes: 6 additions & 3 deletions tools/schematics/ngxs/index.ts
Expand Up @@ -2,8 +2,11 @@ import { chain, externalSchematic, Rule } from '@angular-devkit/schematics';

export default function ngxs(schema: any): Rule {
return chain([
externalSchematic('@schematics/angular', 'class', {
name: schema.name,
}),
externalSchematic('@nrwl/schematics', 'class',
schema)
// {
// name: schema.name,
// project: schema.project,
// }),
]);
}

0 comments on commit 72151a8

Please sign in to comment.