@plonegovbr/volto-brwidgets
v1.0.0-alpha.3
Published
Packages implementing widgets used in Brazil for Volto projects
Maintainers
Readme
Brazilian Widgets for Volto (@plonegovbr/volto-brwidgets) 🚀
Package implementing Volto widgets for fields provided by the plonegovbr.brfields Plone package.
Features ✨
This package provides widgets for the following Dexterity fields:
- CEP 🏠
- CNPJ 🏢
- CPF 🆔
- Estados 📍
- Telefone 📞
Installation 🛠️
To install this package, select the method appropriate for your Volto version.
Volto 18 and Later
- Add
@plonegovbr/volto-brwidgetsto yourpackage.jsondependencies:
"dependencies": {
"@plonegovbr/volto-brwidgets": "*"
}- Register the add-on in your
volto.config.js:
const addons = ['@plonegovbr/volto-brwidgets'];- Install dependencies:
make installTesting Installation 🧪
Run Volto and visit http://localhost:3000. Log in and verify the new widgets.
Development 💻
Development is managed using pnpm workspaces, mrs-developer, and other Volto core improvements. This add-on is compatible only with pnpm and Volto 18+.
Prerequisites 🔧
Makefile Commands 🚀
Run make help to list available commands:
help Show this help message
install Install the add-on in a development environment
start Start Volto with hot-reloading
build Build a production bundle
i18n Sync internationalization messages
ci-i18n Check if i18n is up to date
format Format the codebase
lint Lint the codebase
release Release the add-on on npmjs.org
release-dry-run Perform a dry-run of the release
backend-docker-start Start a Docker-based Plone backend
storybook-start Start Storybook on port 6006
storybook-build Build Storybook
acceptance-frontend-dev-start Start acceptance frontend in dev mode
acceptance-frontend-prod-start Start acceptance frontend in production mode
acceptance-backend-start Start backend acceptance server
ci-acceptance-test Run Cypress tests in CIDevelopment Environment Setup ⚙️
Install package requirements:
make installStart Development 🚀
- Start the backend:
make backend-docker-start- In a separate terminal, start the frontend:
make startCode Quality ✨
Lint Code 🧹
Run ESLint, Prettier, and Stylelint in analyze mode:
make lintFormat Code 🖌️
Run linters in fix mode:
make formatInternationalization 🌍
Extract messages for translation:
make i18nRunning Unit Tests 🧪
Execute unit tests:
make testLicense 📜
This project is licensed under the MIT License.
Credits & Acknowledgements 🙏
This package is developed and maintained by the PloneGov-BR community ❤️.
