Generator
Generate a sub-package under the Calypso monorepo. See Working with the Monorepo 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
? [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)