Skip to content

versionone/vue

Repository files navigation

@versionone/ui

VersionOne UI is an open-source and community supported collection of common UI components built with React. As an open-sourced and community supported project, VersionOne UI is not formally supported by VersionOne.

Getting Started

Step 1: Prerequisites

Required software:

  • node@^4.4.0
    • tests will not work with node@7.3 or node@7.4
  • npm@^3.0.0

You can run ./gulp verify to determine if you meet the above requirements. If you do not and have already attempted to run VersionOne UI, then you need to run the following commands: rm -rf node_modules docs/node_modules and npm install npm@^3.0.0 -g.

Step 2: Installing Dependencies

Run npm install. If there is an error, see the Prerequisites section.

This is only required to be run either the first time running VersionOne UI on your machine or if new dependencies have been added (will produce an error when running the commands below).

Step 3: Running the Documentation Site Locally

Run ./gulp start/docs and open your browser to http://localhost:3000.

If there is an error, try running npm install again.

Step 4: Running Storybook Locally

Run ./gulp start and open your browser to http://localhost:9001.

If there is an error, try running npm install again.

Running Tests and Linting

  • Optionally use WallabyJS

  • ./gulp test will run all tests

  • ./gulp lint will lint all src and test files

  • ./gulp test/src will run all VersionOne UI src tests (excluding tests from packages/*)

  • ./gulp test/icons will run all tests for icon builder package

  • ./gulp lint/src will lint src files in VersionOne UI src

  • ./gulp lint/test will lint all test files in VersionOne UI src

Publishing

Do NOT simply use npm publish.

  • Ensure you are logged in as versionone in the NPM CLI.
  • Run ./gulp publish -t {version} where {version} is one of (patch | minor | major | next)
    • see the Semantic Versioning docs for more info between the version types
    • the docs site will automatically be deployed on major and minor releases
      • manual publish of docs: ./gulp publish/docs

Other Resources

LICENSE.md - License for source code and redistribution

About

Common UI components developed and used by VersionOne; built with React.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages