- @superdispatch/ui - UI components
- @superdispatch/dates - Date and Time components
- @superdispatch/phones - Phone Number components
- @superdispatch/forms - UI, Date, Time and Phone Number component adapters to work with forms
- Open an NPM account if you don't have one
- Ask frontend chapter lead to give access to Superdispatch organization in NPM
- Enable 2FA for your NPM account
- Run
npm login
from your terminal and login into your account - Run
yarn release
- Make sure the tag is created on Github and packages published into NPM
- Update all usages of packages in product repositories.
In our project, we use Plop, a micro-generator framework that helps developers to generate boilerplate code snippets. Plop is flexible and simple to use, and it works by using "generators" configured in a plopfile.js.
To generate component use command:
yarn run generate
- Plop will ask you what type of component you'd like to generate
- Next, Plop will ask you for the name of your component.
- Plop will generate all Boilerplate files for you
- Open up the new files and you'll see that they're pre-populated with the code needed to get started on your new component, story, and tests.
- From here, you can start developing your component, adding new states and props to the Storybook story, and writing tests.
If error points at @superdispatch/...
package, open respective package directory and run yarn tsc
command.
- Run logged
tsc
command. - Try solution of error described above (tsc error: Output file ...).