1 | # @lendi/generator-create-lui-component
|
2 |
|
3 | A generator for creating a LUI component in LUI repo.
|
4 |
|
5 | ## Installation
|
6 |
|
7 | ```sh
|
8 | yarn global add yo @lendi/generator-create-lui-component@latest
|
9 | ```
|
10 |
|
11 | > You need to have `nodejs` and `yarn` installed first.
|
12 |
|
13 | ## Usage
|
14 |
|
15 | ๐โโ๏ธ Run the generator:
|
16 |
|
17 | ```bash
|
18 | yo @lendi/create-lui-component [directory]
|
19 | ```
|
20 |
|
21 | > If you would like the files to be created in a different directory to your current working directory then you can specify the directory as an argument.
|
22 |
|
23 | ๐ฌ Answer the questions:
|
24 |
|
25 | ```
|
26 |
|
27 | _-----_ โญโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
|
28 | | | โ Welcome to the โ
|
29 | |--(o)--| โ create-lui-component โ
|
30 | `---------ยด โ generator! โ
|
31 | ( _ยดU`_ ) โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
|
32 | /___A___\ /
|
33 | | ~ |
|
34 | __'.___.'__
|
35 | ยด ` |ยฐ ยด Y `
|
36 |
|
37 | ? Package name: (e.g. text-input) text-input
|
38 |
|
39 | ```
|
40 |
|
41 | โฒ Wait for the files to be created and the dependencies to be installed.
|
42 |
|
43 | ๐ DONE!
|