4.7.1 • Published 18 days ago

@bryanbuchs/generator-component v4.7.1

Weekly downloads
-
License
-
Repository
github
Last release
18 days ago

generator-component

Generates a component directory for use with Storybook + Twig/Drupal

Requirements

Requires Yeoman

npm install -g yo

Install

npm i -g @bryanbuchs/generator-component

Or, to simplify the yo command to component:

npm i -g generator-component@npm:@bryanbuchs/generator-component

Run

Run the generator from the theme directory, files will be scaffolded into components/{component-name}:

yo component and follow the prompts.

Output

Running the generator will create a directory with a series of boilerplate files:

  1. components/{component-name}/{component-name}.less
  2. components/{component-name}/{component-name}.library.js
  3. components/{component-name}/{component-name}.stories.js
  4. components/{component-name}/{component-name}.twig
  5. components/{component-name}/{component-name}.behavior.js (optional)
  6. components/{component-name}/{component-name}.yml
4.7.1

18 days ago

4.7.0

19 days ago

4.6.1

22 days ago

4.5.0

2 months ago

4.6.0

2 months ago

4.4.5

4 months ago

4.4.1

5 months ago

4.4.0

5 months ago

4.3.1

5 months ago

4.3.0

5 months ago

4.4.4

5 months ago

4.2.4

7 months ago

4.2.3

7 months ago

4.2.2

7 months ago

4.2.1

7 months ago