GithubHelp home page GithubHelp logo

vip-design-system's Introduction

VIP Design System

Design system components used throughout VIP.

Storybook Components

Development

Prerequisites

Make sure you have node.js and NPM installed. Here's a handy installer for Windows, Mac, and Linux.

Install

To get setup run the following command in the vip-design-system directory:

npm install

Watching for changes

You can build it continuously so that every time you make a change, build files are automatically updated:

npm run watch

Testing

We can test two ways:

Storybook

For components that include storybooks, we can run npm run storybook to view the components in a sandbox-ed storybook environment.

npm link

  1. Run npm link in your checkout of this repo.
  2. Spin up a local copy of the VIP Dashboard and navigate to a page using the linked components from @automattic/vip-design-system

Note: it's super useful to run npm run watch in another process, so any changes will be almost immediately available / testable.

Publish NPM Package Instructions

Once all the changes needed are merged to master, and you are ready to release a new version, follow these steps:

  1. Make sure you have NPM access to our @automattic organization. Ask for #vip-platform-pâtisserie help in case you need it.
  2. Pull all the changes to your local master. Make sure you have the latest master locally.
  3. We follow the https://semver.org/ versioning. You should run the specific version you are trying to publish:
npm version major|minor|patch
  1. You should see a version bump in the package.json file.
  2. Build the application:
npm run build
  1. Publish the application
npm publish

Note: You need to have two-factor enabled in your npm account. The publish command will request a two-factor code to complete the publishing process.

  1. Push the tags to the repository and master updates.
git push --tags
git push origin master
  1. For major versions or breaking changes, it's recommended to create a RELEASE with the published tag.

vip-design-system's People

Contributors

aswasif007 avatar brunobasto avatar chrean avatar dependabot[bot] avatar djalmaaraujo avatar elazzabi avatar luismulinari avatar mjangda avatar nejclovrencic avatar nickdaugherty avatar pandah3 avatar saxonf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.