0.2.37 • Published 1 month ago

@varymadellc/my-weed-club-component-library v0.2.37

Weekly downloads
-
License
-
Repository
-
Last release
1 month ago

my-weed-club-component-library

This is a component library for the Myweed.club website.

It's used in both the blog and the app.

Getting Started

You will be doing most of your development in storybook but you will need to also be able to link this project to the app.

Storybook

npm run storybook

Linking to the app

We need to make sure we use the same version of react that is used in the app. To do this do the following commands. 1. npm install 2. npm link ../my-weed-club-ui/App/node_modules/react 3. You have to rebuild every time you want to see your changes update on the front end. Yes, I agree, it is annoying. Feel free to fix this. 4. npm run build

Publishing

  • Use either condensed command for minor
    • git checkout upstream/main && git pull upstream main && npm version patch && git push upstream --tags && git branch -d version && git checkout -b version && git push upstream version
  • Or
    • Check out a new branch from main
    • Complete work, then push branch up and create a merge request.
    • once approved, then merge.
    • git checkout upstream/main && git pull upstream main
      • if you haven't renamed your remote then it's origin instead of upstream.
      • you can also ignore the HEAD detached from ... message as it's fine.
    • npm version <major|minor|patch>
      • Major for backwards break
      • Minor for typical features
      • patch for bugs/notes/maintenance
    • Take note of the version that gets printed
      • Also note that you're now on the new version branch and no longer detached from head.
    • Next we create a branch from the new version we have checked out.
      • git checkout -b version
        • if you get a message that version exist, then run git branch -d version and it should delete it, then repeat the command.
    • git push upstream version
      • Example git push upstream v0.9.0
    • create a merge request, the terminal should have produced a link for you to do this automatically.
      • Merge in the new version.
    • git push upstream --tags
  • Next you'll publish. Make sure you see that you're on the new version tag. You should be there by running the above commands
  • git checkout <new version you just made>
  • npm ci
  • npm run build
  • npm publish
    • If you get an error about not being logged in, then run npm login and enter your credentials.
0.2.37

1 month ago

0.2.36

2 months ago

0.2.35

2 months ago

0.2.34

2 months ago

0.2.33

2 months ago

0.2.30

4 months ago

0.2.29

5 months ago

0.2.27

8 months ago

0.2.26

8 months ago

0.2.25

8 months ago

0.2.24

8 months ago

0.2.23

8 months ago

0.2.22

8 months ago

0.2.21

9 months ago

0.2.20

9 months ago

0.2.19

9 months ago

0.2.18

9 months ago

0.2.17

9 months ago

0.2.16

10 months ago

0.2.15

10 months ago

0.2.14

10 months ago

0.2.13

10 months ago

0.2.12

10 months ago

0.2.11

10 months ago

0.2.10

10 months ago

0.2.28

7 months ago

0.2.9

11 months ago

0.2.8

11 months ago

0.2.7

11 months ago

0.2.6

11 months ago

0.2.5

11 months ago

0.2.4

11 months ago

0.2.3

11 months ago

0.2.2

12 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.1.2

12 months ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago