Skip to content

Latest commit

 

History

History
executable file
·
40 lines (22 loc) · 1.79 KB

README.md

File metadata and controls

executable file
·
40 lines (22 loc) · 1.79 KB

This repo serves as a common React component and util library for CyVerse's Discovery Environment user interfaces, such as the Discovery Environment and VICE.

Publishing to npm registry

Once your PR is accepted, Please merge your branch with master from your command-line and update the version. Then push your commits to master. This will trigger the workflow to build, run test and publish. All other steps listed under Development Workflow are optional.

npm run deploy-storybook

This will deploy any changes or updates to our components' code and stories to GitHub pages for users to see and test the functionality of the components.

Development Workflow

In the project directory, you can run:

npm install

Installs the project's dependencies.

npm run storybook

Launches the Storybook application for fast development and debugging. Generally, for any component in ui-lib there should be a story. Stories are also used to run the tests.

npm test

Launches the test runner in the interactive watch mode. All tests should pass before creating a merge request. See the section about running tests for more information.

npm version patch | minor | major

Once you've merged your changes, this will bump the version number of the project. Note: merge you changes from command-line only

Generally:

  • patch is used for backwards-compatible bug fixes.
  • minor is used when you add functionality in a backwards-compatible manner.
  • major is used when you make incompatible changes

(This project was bootstrapped with Create React App.)