0.1.98 • Published 6 months ago

@universal-tennis/ui-shared v0.1.98

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
6 months ago

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;

  1. 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

  1. 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.
  2. In the package.json file, make sure to pump to the next minor version.
  3. 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 the package.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)

  1. First when creating a new component, make sure to add it to the components.jsx file.
  2. Then Run yarn run publish:npm to build a optimized build for all the components, this is configured for TS.
  3. In the package.json file, make sure to pump to the next minor version.
  4. 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

  1. Create a new branch and make changes: (for this example "sample-link-branch")
  2. Push changes to the branch / test before with storybook.
  3. 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//#)
  4. 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.

0.1.52

2 years ago

0.1.53

2 years ago

0.1.54

2 years ago

0.1.55

2 years ago

0.1.56

2 years ago

0.1.57

2 years ago

0.1.58

2 years ago

0.1.59

2 years ago

0.1.50

2 years ago

0.1.51

2 years ago

0.1.49

2 years ago

0.1.41

2 years ago

0.1.42

2 years ago

0.1.43

2 years ago

0.1.44

2 years ago

0.1.45

2 years ago

0.1.46

2 years ago

0.1.47

2 years ago

0.1.48

2 years ago

0.1.40

2 years ago

0.1.38

2 years ago

0.1.39

2 years ago

0.1.30

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.33

2 years ago

0.1.34

2 years ago

0.1.35

2 years ago

0.1.36

2 years ago

0.1.37

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.16

2 years ago

0.0.9

3 years ago

0.1.17

2 years ago

0.0.8

3 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.1.96

7 months ago

0.1.98

6 months ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.90

12 months ago

0.1.91

12 months ago

0.1.92

12 months ago

0.1.93

11 months ago

0.1.94

11 months ago

0.1.95

7 months ago

0.1.85

1 year ago

0.1.86

1 year ago

0.1.87

1 year ago

0.1.88

1 year ago

0.1.89

1 year ago

0.1.80

1 year ago

0.1.81

1 year ago

0.1.82

1 year ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.74

2 years ago

0.1.75

2 years ago

0.1.76

2 years ago

0.0.20

2 years ago

0.1.77

2 years ago

0.0.21

2 years ago

0.1.78

2 years ago

0.0.22

2 years ago

0.1.79

1 year ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.1.70

2 years ago

0.1.71

2 years ago

0.1.72

2 years ago

0.1.73

2 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.19

2 years ago

0.1.64

2 years ago

0.1.65

2 years ago

0.1.66

2 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.1.68

2 years ago

0.0.12

3 years ago

0.1.69

2 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.1.60

2 years ago

0.1.61

2 years ago

0.1.62

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago