1.7.3 • Published 3 months ago

@zeroedin-react/zi-common v1.7.3

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

steps to add new component and publish new version for npm package:

  1. clone the new zi-common repo above (note the old one is called 'zi-common-ui' we are not using that anymore)
  2. After clone open the zi-common folder in vs code and open the src/components folder
  3. Add your new component that you want to be a common re-usable in the components folder (add .tsx file)
  4. open terminal window in the zi-common folder and type 'npm transpile' this builds the code to the dist folder (this is important)

steps to publish zi-common npm package with new version:

  1. make sure the above steps have been completed first otherwise the new version wont reflect your changes
  2. open a terminal window in the zi-common folder
  3. in terminal type 'npm login'
  4. when prompted for username enter 'zeroedin-react'
  5. when prompted for password enter the password
  6. next it will prompt you for an email address (use any email, preferably your work email) OR it will send an email to gareth (how this works is NPM uses 2FA for their logins so they send an OTP to the email you provided) NOTE: it takes roughly 5 mins for the OTP to come through in email
  7. enter the OTP code that was sent to your email in the terminal window when prompted for it
  8. Should display a message to indicate you are logged in
  9. IMPORTANT: now you need to go into the zi-common/package.json file and increment the app minor version by one ie. 1.0.0. -> 1.1.0 (if you do not do this the publishing of the npm package will fail)
  10. after updating package version and saving finally, open the terminal window you had earlier from login and type 'npm publish' after a few seconds should display that new version was published. Then all you need todo is go back to zi-ui or wherever you want to use the component and run 'npm update @zeroedin-react/zi-common' and it will pull in the latest version of the package we published

to import the package in your app you will go: import NameOfComponent from '@zeroedin-react/zi-common/lib/NameOfComponent';

1.4.6

3 months ago

1.6.3

3 months ago

1.4.5

3 months ago

1.6.2

3 months ago

1.6.1

3 months ago

1.6.0

3 months ago

1.5.9

3 months ago

1.5.8

3 months ago

1.5.7

3 months ago

1.5.6

3 months ago

1.7.3

3 months ago

1.5.5

3 months ago

1.7.2

3 months ago

1.5.4

3 months ago

1.7.1

3 months ago

1.5.3

3 months ago

1.7.0

3 months ago

1.5.2

3 months ago

1.5.1

3 months ago

1.5.0

3 months ago

1.6.9

3 months ago

1.6.8

3 months ago

1.6.7

3 months ago

1.4.9

3 months ago

1.6.6

3 months ago

1.4.8

3 months ago

1.6.5

3 months ago

1.4.7

3 months ago

1.4.4

4 months ago

1.4.3

4 months ago

1.4.2

4 months ago

1.4.1

4 months ago

1.4.0

4 months ago

1.3.9

4 months ago

1.3.8

4 months ago

1.3.7

4 months ago

1.3.6

4 months ago

1.3.5

4 months ago

1.3.4

4 months ago

1.3.3

4 months ago

1.3.2

4 months ago

1.3.1

4 months ago

1.3.0

4 months ago

1.2.14

4 months ago

1.2.13

4 months ago

1.2.12

4 months ago

1.2.11

4 months ago

1.2.10

4 months ago

1.2.9

4 months ago

1.2.8

4 months ago

1.2.7

4 months ago

1.2.6

4 months ago

1.2.5

4 months ago

1.2.4

4 months ago

1.2.3

4 months ago

1.2.2

4 months ago

1.2.1

4 months ago

1.2.0

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago

1.0.0

4 months ago