ui-components-master

6.0.0 • Public • Published

A custom built UI Library for Submittable.

View Components Here

Getting Started

To get started, pull down the repository and install dependencies

$ git clone git@github.com:submittable/ui-components.git
$ cd ui-components
$ yarn

Development and Storybook

Docs are built using Storybook. To run the local server, simply run:

$ yarn
$ yarn sb

Navigate to http://localhost:9001 to view your stories. They should automatically update as you develop.

Storybook will pick up any story from the stories.js file in a component folder.

Deploy Storybook docs

After you have an approved component you can rebuild the docs and push the updated version to GitHub.

$ yarn sb:build

To veiw your build docs:

$ npx serve docs/

Publish a release

If you are an admin in the repository you can release a new version of the library.

To do so simply run:

$ yarn release

Test UI components locally

To use the local node package as a project dependency, yalc acts as a local repository for locally developed packages you can share with your local dev environment. Running yalc publish in a package directory grabs files that should be published and puts them in a global store.

To install yalc:

$ yarn global add yalc

In your ui-components branch:

$ yalc publish

After committing changes on ui-components branch:

$ yarn build
$ yalc push

The first time you use yalc, in the manager-frontend root directory:

$ yalc add sbm-ui-components

In manager-frontend/src after making changes in ui-components:

$ yarn

More on using local Node packages as project dependencies: https://www.viget.com/articles/how-to-use-local-unpublished-node-packages-as-project-dependencies/

Readme

Keywords

none

Package Sidebar

Install

npm i ui-components-master

Weekly Downloads

1

Version

6.0.0

License

UNLICENSED

Unpacked Size

19.3 MB

Total Files

457

Last publish

Collaborators

  • armennag