kimamula / ngx-schematics-for-storybook Goto Github PK
View Code? Open in Web Editor NEWAngular schematics which automatically adds new components created with `ng generate component` to the Storybook.
License: MIT License
Angular schematics which automatically adds new components created with `ng generate component` to the Storybook.
License: MIT License
I followed your steps to install, but it seems I'm doing something wrong. Can you review the steps?
npm install ngx-schematics-for-storybook @storybook/cli --save-dev
npx getstorybook
Note the space, needs amends in README.md
ng config cli.defaultCollection ngx-schematics-for-storybook
update angular.json
"schematics": {
"ngx-schematics-for-storybook:component": {
"style": "scss"
}
},
โ ng g c foo
An unhandled exception occurred: Cannot find module '@schematics/angular/utility/project'
Require stack:
- /node_modules/ngx-schematics-for-storybook/src/component/index.js
- /node_modules/@angular-devkit/schematics/tools/export-ref.js
- /node_modules/@angular-devkit/schematics/tools/index.js
- /node_modules/@angular/cli/utilities/json-schema.js
- /node_modules/@angular/cli/models/command-runner.js
- /node_modules/@angular/cli/lib/cli/index.js
- /.nvm/versions/node/v13.7.0/lib/node_modules/@angular/cli/lib/init.js
- /.nvm/versions/node/v13.7.0/lib/node_modules/@angular/cli/bin/ng
See "/private/var/folders/9f/71m_x5w96vbdsk4fmfb9h68r0000gp/T/ng-DcsEED/angular-errors.log" for further details.
npm i @schematics/angular
Also looked at NativeScript/nativescript-schematics#241
npm i @nativescript/angular
npm i @nativescript/schematics
after
npm i -g @nativescript/schematics
it says
More than one module matches. Use skip-import option to skip importing the component into the closest module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.