0.3.3 • Published 4 years ago

@zxventures/courier-design-system v0.3.3

Weekly downloads
100
License
MIT
Repository
github
Last release
4 years ago

Introduction

Mosaic is Zé's (and also one of our favorite hops) design system, developed by Lupulus (the design team), that help us to develop and support applications easily and faster. As our ecosystem is based in React and React Native, we don't serve a CSS based design system. So if you want to use it, don't forget to create your application using React.

This is a global project that could be used in anyone of our company apps, including all the B2B2C projects.

Why Mosaic?

Mosaic is a variety of aromatic hops that offers a unique and complex combination of tropical, floral and earthly fruit traits, which translate very favorably into various styles of beer. So we think that is the kind of combination that we want to purpose with this project.

Using Mosaic

Instalation

Run the following command using npm:

npm install @zxventures/courier-design-system --save

If you prefer Yarn, use the following command instead:

yarn add @zxventures/courier-design-system

Usage

Import any component directly from @zxventures/courier-design-system dependency.

import { Button } from '@zxventures/courier-design-system'

And add it in your page component.

import React from 'react'

const MyPage = () => (
  <div>
    Is this Mosaic awesome?
    <Button scheme="primary" onClick={() => {}}>Yes!</Button>
  </div>
)

export default MyPage

Using Basic Styles

We used Styled Component's createGlobalStyle function to create a BasicStyles that inject our default layout and behavior to the entire page. Ex: Use Roboto as our principal font.

To inject these BasicStyles to your project, just import and add it in your top level component.

import { BasicStyles } from '@zxventures/courier-design-system'

ReactDOM.render(
  <div>
    <BasicStyles />
  </div>,
  document.querySelector('#app'),
);

This will inject all the default css layout to your project <head>. See the styles here.

Development

You can check how to develop and a list of principal references that we use.

Installing

  1. yarn install should install all dependencies;
  2. yarn start to start your dev server;
  3. Access http://localhost:3000/ and enjoy;

Deploying

  1. yarn run build
  2. yarn run bump:patch for bugfixes/hotfixes, this bumps up patch package.json version and create a tag;
  3. yarn run bump:minor for features, this bumps up minor package.json version and create a tag;
  4. yarn run bump:major for a big patch of major features and bugfixes, this bumps up major package.json version and create a tag;
  5. npm login you must login with the user owner of the lib
  6. yarn deploy for publishing the build on npm's lib

Documentation

Principal Technologies

Tests Tools

Use the following command to run all tests: yarn test

Principal Dependencies

Eslint Configuration

Workflow

We are using the git flow workflow to develop features.

Git flow

Basically it means you should create feature branches and integrate them by issuing pull requests.

How to contribute

Clone this repository to contribute and don't forget to align any modification or new feature with the UX team until open your pull request. It's important to respect the UX flow to not merge any incomplete code that might affect the projects that are already using Mosaic.

Be sure to have developers approvals, all checks passing and follow all pull request's template items before merge any pull request.

BE KIND AND DON'T MERGE CODE WITHOUT TESTING.

Versioning and Deploy

We use semantic versioning in the project. To deploy, just follow these commands below:

Major Update

yarn deploy:major

Minor Update

yarn deploy:minor

Patch Update

yarn deploy:patch

Projects

Here you can see the list of our projects that are using Mosaic:

Owners

This project is maintained by ZX Global - Brazil Branch.

0.3.3

4 years ago

0.3.2

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.3

5 years ago

0.2.4

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

3.0.0

5 years ago

0.0.3

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago