@universal-tennis/ui-shared v0.1.98
UI-Shared
This repo was created to help organize components across the UT ecosystem; following specific design rules:
Stack:
- React (18.2.0)
- TypeScript
- MUI
- Styled-Components (as part of MUI)
To install:
npm install @universal-tennis/ui-shared
or
yarn add @universal-tennis/ui-shared
Design rules
Components following material and atomic design rules;
- Standard naming components; with primary/secondary/etc variations. Keeping variations minimal and purposeful.
Example:
<Button type="primary" />
<Button type="secondary" />
Buttons should be uniform across the platforms with minimal variants, not multiple buttons created for each pages.
Bitbucket CICD flow Publishing the Repo
- Pull the latest from master -> make changes to a PR back into master.
First when creating a new component, make sure to add it to the
components.jsx
file. - In the
package.json
file, make sure to pump to the next minor version. - After merging back into master, tag the commit with the same
package.json
version number. This will then trigger a NPM package build with the version listed in thepackage.json
; make sure the release tags are the same for consistency.
It can now be accessed in another repo like this:
import {Button} from "@universal-tennis/ui-shared";
Manually Publishing the Repo (Should be done via CICD flow)
- First when creating a new component, make sure to add it to the
components.jsx
file. - Then Run
yarn run publish:npm
to build a optimized build for all the components, this is configured for TS. - In the
package.json
file, make sure to pump to the next minor version. - Finally
yarn run publish-package
to deploy this version to NPM.
It can now be accessed in another repo like this:
import {Button} from "@universal-tennis/ui-shared";
Development on Local
- Create a new branch and make changes: (for this example "sample-link-branch")
- Push changes to the branch / test before with storybook.
- Run
npm install https://kyle-universaltennis@bitbucket.org/universaltennis/ui-shared.git#sample-linked-branch
from the other repo to view these updates. In this url (https://@bitbucket.org//#) - You can now see the changes from your npm branch in a different repo.
you'll now see in your package.json:
"@universal-tennis/ui-shared": "git+https://kyle-universaltennis@bitbucket.org/universaltennis/ui-shared.git#sample-linked-branch"
Available Scripts
npm start
using npm 16.14.0
Runs the storybook app in localhost. Open http://localhost:6006 to view storybook in your browser. The page will reload when you make changes. You may also see any lint errors in the console.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
7 months ago
6 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
12 months ago
12 months ago
12 months ago
11 months ago
11 months ago
7 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago