0.3.7 โ€ข Published 5 months ago

@gobolt/genesis v0.3.7

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

GENESIS Design System

Rating License

Storybook hosted on Google Cloud

The GENESIS design system standardizes our colors, fonts, and sizing tokens across all our apps.

It unifies frontend app development around these core libraries:

๐Ÿ“ฆ Development

npm install
npm start

To scaffold a new component, run npm run generate and add the component name in PascalCase

example:

npm run generate RadioGroup

๐Ÿ”จ Usage

Install the GENESIS library

npm install @gobolt/genesis

The GenesisProvider must included within the application as it supplies the Genesis Theme.

import { Button, GenesisProvider } from '@gobolt/genesis;

const Demo = () = {

    const onClick = (value) => {
        console.log("Genesis button clicked with value: ", value);
    }

    return (
        <GenesisProvider>
            <Button onClick={onClick}>Ship</Button>
        </GenesisProvider>
    )
 };

The library exports both the components and their types which are documented in our storybook.

๐Ÿงช Testing

npm test

husky has been configured to automatically run the tests on push to Github and will enforce that all tests pass.

๐Ÿš€ Publishing

This project uses rollup to create the package and changesets to manage it's versions. We only need to run changesets when we're ready to release and publish the library.

npx changeset
npx changeset version
npm publish

๐Ÿ“™ Storybook Deployment to Google Cloud

just deploy

See the .justfile which simplifies this Storybook GCP script on Notion.

requires: just

brew install just

Test the build

If you want to test the build before deploying...

rm -rf storybook-static
npm build-storybook
python3 -m http.server 6006 -d storybook-static
0.3.7

5 months ago

0.3.6

5 months ago

0.3.5

5 months ago

0.3.4

5 months ago

0.3.3

5 months ago

0.3.2

5 months ago

0.3.1

5 months ago

0.3.0

5 months ago

0.2.21

7 months ago

0.2.20

7 months ago

0.2.19

7 months ago

0.2.18

7 months ago

0.2.17

7 months ago

0.2.16

7 months ago

0.2.15

7 months ago

0.2.14

7 months ago

0.2.13

7 months ago

0.2.12

7 months ago

0.2.11

7 months ago

0.2.10

7 months ago

0.2.9

7 months ago

0.2.8

7 months ago

0.2.7

7 months ago

0.2.6

7 months ago

0.2.5

7 months ago

0.2.4

7 months ago

0.2.3

7 months ago

0.2.2

7 months ago

0.2.1

7 months ago

0.2.0

7 months ago

0.1.6

8 months ago

0.1.5

8 months ago

0.1.3

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago

0.0.11

8 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

10 months ago

0.0.7

10 months ago