0.0.10 • Published 3 years ago

@vecnacares/vc-ui v0.0.10

Weekly downloads
279
License
MIT
Repository
github
Last release
3 years ago

#Author: Mohit

vc-ui

Vecna Cares UI Components based on Material UI

Pipeline Coverage NPM JavaScript Style Guide

Install

yarn add @vecnacares/vc-ui

Usage

import React, { Component } from 'react';

import { VcButton } from '@vecnacares/vc-ui';

class Example extends Component {
  render() {
    return <VcButton value="Click Me" />;
  }
}

Gitlab workflow

  1. Make sure you have a gitlab account.
  2. Clone or pull most recent changes
    • If it's the first time working on this project, clone it git clone git@gitlab.com:VecnaCares/vc-ui.git
    • Otherwise pull the most recent changes git checkout master && git pull --rebase
  3. Create a branch. The name of the branch should reflect the issue you are working on. This is usually the Jira ID. For example IDE-1234
  4. Make changes and push to the branch. git push origin <branchName>
  5. Open a merge request by either following the link in the git console or following instructions outlined here https://docs.gitlab.com/ee/gitlab-basics/add-merge-request.html
  6. Add reviewer(s)
  7. Once the review is done, merge the code into the master branch

Development

  • The src directory contains all the components
  • The example directory contains examples of using the components defined in src
  • Run yarn start to compile and watch changes in the src directory
  • Run yarn styleguide to start the styleguide server for component documentation
  • Run cd example && yarn start to start and watch development server in the example directory
  • Test can be run by running yarn test
  • Code will be automatically formatted by prettier on each commit

Using unpublished changes in example

The example subproject has dependency on vc-ui. To test changes made to vc-ui without publishing them to npm, we have to link the vc-ui package.

Linking

First, in the vc-ui folder (where package.json is):

npm link

Then in the example folder link the module:

npm link @vecnacares/vc-ui

Unlinking

To revert to the published version on npm, run the following in the example directory

npm unlink --no-save @vecnacares/vc-ui

Next, in vc-ui directory

npm unlink

Documentation

We use style react styleguidist to document components.

Read how to document components here

Documentation is published on gitlab pages here and the components demo is here

License

MIT © VecnaCares

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago