GithubHelp home page GithubHelp logo

rodgersgitau / design-system Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 24.88 MB

Evernest Design System

Home Page: https://everdevs.github.io/design-system

License: MIT License

JavaScript 6.96% TypeScript 80.81% MDX 12.23%

design-system's Introduction

Evernest Design System

MIT license Coverage Grade

This is the contributor documentation for the @everdevs mono-repository. For user docs see the Documentation.

Build

Building the repository allows deploying the generated static page. This is usually run in our CD pipeline.

yarn build

Develop

This project uses storybook.

Several steps ensure that everything has been linked and set up correctly. The following script will ensure that everything works "out of the box".

yarn dev

Setup

This project requires various configurations to be generated. To make sure everything has been set up correctly you can run the following script (you don't need these steps when you run yarn dev).

yarn setup

Test

Tests are broken since updating to Emotion 11 (PR link)

We use Jest with Enzyme for testing.

Tests can be run in each package (add required scripts to your package). Per default you can run yarn test:watch and yarn test:update.

To run all tests you can use the root scripts:

yarn test
## Update snapshots (https://jestjs.io/docs/en/snapshot-testing#updating-snapshots)
# yarn test -u

Add new packages (atomic components)

The template in .tpl/tpl needs to be adjusted to emotion 11 changes before new components can be added

Adding new packages can be a tedious task of copy & paste followed by renaming of files and identifiers. To make it easier to create new packages we added a script that does the job for you. It is similar to lerna create <package-name> but uses a custom template instead.

Usage
  $ yarn add-component <input>

Options
  --atomic, -a  Atomic type of component

Examples
  $ yarn add-component "My Component" --atomic atoms

After adding a new package, run yarn bootstrap to link it.

Releasing

  1. Create a new branch and develop your changes
    • yarn dev for local storybook
  2. Push branch and create PR (no need to edit versions or anything)
    • Test step will fail - broken after emotion 11 upgrade)
  3. Merge approved PR to master
  4. Pull master locally
  5. Run npm login and log in with your npm credentials (you’ll need to have been added to the Evernest org on npm)
  6. Run yarn release, which will update versions, release packages on npm, and push a release tag commit to Github

design-system's People

Contributors

dazulu avatar pixelass avatar

Watchers

 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.