- 17 Jul 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Parse and validate your modules
- Updated on 17 Jul 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Modules need to be valid before they can be made available on our Dashboard.
The parse command validates your modules for the following:
Module contains:
preview.png
meta.json
file with aroot
property.
The
screen
modulesroot
must:start with
/screens
have no dependencies
have a
package.json
file with aname
that starts with@screens/
contain a default export in the
index.js
file
Run the following command to validate your modules:
cb parse --source modules --verbose
Arguments
Required value:
|
If any validation fails, we log the failure reason so that you can fix any issues and run the command again.
For example:
~/crowdbotics@modules $ cb parse --source modules
> Parsing modules...
✅ azure-infra
✅ basiq-payments
❌ django-push-notifications => module preview image missing
❌ django-social-auth => module preview image missing
✅ screen-login
✅ terms-and-conditions
> Total of modules: 6