Have ideas to improve npm?Join in the discussion! »

ng-stories-schematics

1.0.0 • Public • Published

ng stories schematics

This angular schematics generate an storybook file. Following the next folder structure.

src/                         project source code
|- app/                      app components
|  |- button/                button component example
|  |- button.component.*     
|  |- button.stories.ts      <-- story generated
|  +- ...                    

Installation

npm install --save-dev ng-stories-schematics

Usage

Add path and file name on one line

ng g ng-stories-schematics:empty path/name

Add path and file name using arguments

ng g ng-stories-schematics:empty --path path_to_file --name file_name

Advice

If you use vscode I recommend to use vscode-angular-schematics to easily create stories file.

Config

Add to settings.json config file this.

"ngschematics.schematics": [
  "ng-stories-schematics"
],

Install

npm i ng-stories-schematics

DownloadsWeekly Downloads

8

Version

1.0.0

License

MIT

Unpacked Size

17.4 kB

Total Files

17

Last publish

Collaborators

  • avatar