File size: 921 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Generator

Generate a sub-package under the Calypso monorepo. See [Working with the Monorepo](https://github.com/Automattic/wp-calypso/blob/trunk/docs/monorepo.md#L1) for more details.

## Usage

Use the following command to run the calypso-package-generator.

```
yarn run generate
```

Now we have 2 generators as below, and the calypso-package-generator will ask you to choose.

- component: Add a new library of React components designed for use in Automattic products.
- library: Add a new library of js designed for use in Automattic products.

### Example

```bash
? [PLOP] Please choose a generator. (Use arrow keys)
❯ component - Add a new library of React components designed for use in Automattic products.
  library - Add a new library of js designed for use in Automattic products.

? What should the package be called? ()

? Type a short description ()

? Do you want to publish this package? (Y/n)
```