1.5.0 • Published 5 months ago

@jstb/catalyst v1.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@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":{
  "lang":"ts"
  ...
},

The options available are |OPTION|DEFAULT|VALUES|DESCRIPTION| |------|-------|------|-----------| |lang|"js"|"js", "ts"|Components in JS or TSX| |arch|"atomic"| "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.| |styling|css|css or scss or less|

1.5.0

5 months ago

1.4.1

6 months ago

1.4.0

6 months ago

1.3.0

6 months ago

1.2.4-beta.1

9 months ago

1.2.4-beta.0

9 months ago

1.2.3

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.1.0

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

10 months ago