@jstb/catalyst v1.7.3
@jstb/catalyst
Configurable Component Generator for React
Usage
Installation with NPM
npm install @jstb/catalyst
Add as a script in package.json
"scripts": {
"generate": "catalyst"
},
Run on terminal
npm run generate
Configurations
Customizations can be configured in package.json
in the following format.
"catalystConfig":{
"styling":"scss"
...
},
The options available are
|OPTION|DEFAULT|VALUES|DESCRIPTION|
|------|-------|------|-----------|
|lang| auto detect (looks for tsconfig.json
at the project root) |"js"
, "ts"
|Components in JS or TSX|
|arch|"none"
| "atomic"
, "lego"
or "none"
|It follows Brad Frosts Atomic Design pattern for generating components(Atoms, Molecules Organisms, Templates and Pages). Alternatively, you can generate Lego Design Pattern(Bricks and Sets). You can also chose none, where there will be a flat directory structure|
|skipStories|false
|false
, true
| If you are not using storybooks or don't want the .story.js
or .story.ts
to be created.
|targetBasePath|src/[components/containers]
|any directory path relative to project root|If you want to create the components in a different location in your project. Useful if you're using monorepos|
|styling|css
|css
or scss
or less
|
9 months ago
9 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago