Install with npm:
npm install --save @mgadev/macpaw-ui
or with yarn:
yarn add @mgadev/macpaw-ui
And import stylesheets manually:
import '@mgadev/macpaw-ui/lib/ui.css';
- Add Component's JSX and styles to src/%ComponentName% directory
- Import Component's JS, styles to ui.js and ui.scss correspondingly
- Add document page in
/pages/%component-name%.mdx
- All common icons should have size 24x24px and dynamic (not hard-coded)
fill
attribute (so it can be changed / overridden later is CSS or React component) - Add new SVG file icon to
src/Icons/svg/%name%_icon.svg
- Run
yarn icons
CLI command
- Node 20+
- npm 7+ (lock file v2)
Our library release process is designed to ensure quality, consistency, and proper versioning. The process is broken down into multiple stages to ensure every change is tracked, reviewed, and integrated appropriately. We use changesets for version and release management.
Whenever you introduce a new change, run the command:
You have to do this at least once per branch with some changes.
- The CLI will prompt you with questions regarding your changes. You'll need to specify the nature and level of the changes (options: patch, minor, major).
- After completing the CLI prompts, commit the changes with a commit message similar to
chore: update changesets
.
npm run changes:add
npm run changes:version
git add . && git commit -m "chore: update changesets"
git push
Generate and upload tag release
npm run changes:release
git push --tags
Publish
npm run changes:publish
- run
yarn build
- serve
out
directory as public