Giter Club home page Giter Club logo

zen-ui's Introduction

ZenUI

A collection of UI components that are shared across Reciprocity applications.

Powered by Stencil and Storybook.

Coverage Status

Installation

Before installing, download and install Node.js. Latest LTS version is recommended.

It is not necessary to have Docker installed as the project is not containerized.

Quick start

Install dependencies:

yarn

Start Stencil compiler and Storybook server (available at http://localhost:6006):

# Runs both in watch mode with HMR
yarn start

Create new Web Components

Scaffolds a new component, creating the folder structure with basic code, styles, unit tests, and documentation:

yarn create-component zen-{component-name}

Testing

To run unit and integration tests in Jest:

yarn test

To run E2E/visual tests in Cypress:

yarn run test:e2e

For more details on testing (including visual testing) check the Testing doc.

Linting and Formatting

The code is both linted and formatted with ESlint and Prettier on every commit, using a Husky hook.

You can fix lint/format errors in src/* files with the following commands:

# Fix linting errors
yarn lint:all
# Fix formatting errors
yarn format:all

You can also manually run the lint:check and/or format:check to validate possible errors:

# Only checks for linting errors
yarn lint:check
# Only checks for formatting errors
yarn format:check

Using components within your own app

For instructions on how to consume this library check the Getting Started stories.

Contributing

To contribute, please familiarize yourself with the Contributing doc.

zen-ui's People

Contributors

chavlji avatar mihaelpalfi avatar ferjal0 avatar mplesec avatar homer0 avatar semantic-release-bot avatar donaab 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.