moc-designsystem
v0.3.19
Published
This README would normally document whatever steps are necessary to get your application up and running.
Readme
MOC Design System
Run the project locally
Clone the project and install the dependencies:
$ git clone [email protected]:coffeecup/moc-designsystem.git
$ cd moc-designsystem
$ npm installScripts
Test:
$ npm testLint:
$ npm run lintGenerate new component:
$ npm run generate
# Enter component name
$ FooBar
# Check if it's a Stateless Component
$ y/nStorybook:
$ npm run storybookOpen http://localhost:6006 to view it in the browser.
Build Storybook:
$ npm run build-storybookBranches
Choose short and descriptive names.
# Good
$ git checkout -b feature/oauth
# Bad
$ git checkout -b login_fixUse dashes to separate words.
# Good
$ git checkout -b feature/add-webhook
# Bad
$ git checkout -b feature/add_webhookUse default prefixes for new branches, to allow automated workflows and make branch types clearer.
# Bugfix
$ bugfix/foo-bar
# Feature
feature/foo-bar
# Hotfix
hotfix/foo-bar
# Release
release/foo-barMerges
Merges should be always squashed to turn the commit message into the pull request title.

