ui-components-master v6.0.0
A custom built UI Library for Submittable.
Getting Started
To get started, pull down the repository and install dependencies
$ git clone git@github.com:submittable/ui-components.git
$ cd ui-components
$ yarnDevelopment and Storybook
Docs are built using Storybook. To run the local server, simply run:
$ yarn
$ yarn sbNavigate 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:buildTo 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 releaseTest 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 yalcIn your ui-components branch:
$ yalc publishAfter committing changes on ui-components branch:
$ yarn build
$ yalc pushThe first time you use yalc, in the manager-frontend root directory:
$ yalc add sbm-ui-componentsIn manager-frontend/src after making changes in ui-components:
$ yarnMore on using local Node packages as project dependencies: https://www.viget.com/articles/how-to-use-local-unpublished-node-packages-as-project-dependencies/
3 years ago