Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

jusio/ssc-design-system-vr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design System

Usage

This package is published in GitHub Package Registry. Detailed instructruction about consuming Github Packages you can find in Installing a package.

The easiest way how to consume this package is to create .npmrc file in the root of your application and add the line:

@securityscorecard:registry=https://npm.pkg.github.com

After .npmrc file is created you have to authenticate by logging in to npm or by adding PAT (Personal Access Token) into .npmrc file. For more information please see Authenticating to GitHub Packages.

Then you can install this package as:

yarn add @securityscorecard/design-system
# OR
npm install @securityscorecard/design-system

Local Development

Development in Storybook

git clone https://github.com/securityscorecard/design-system
cd design-system
yarn
yarn run develop

Development in third-party application

To avoid version conflicts within the application we need to link reactreact-dom  and styled-components libraries from the third-party application into design-system.

cd path/to/application
cd node_modules/react && yarn link # register react
cd ../react-dom && yarn link # register react-dom
cd ../styled-components && yarn link # register styled-components

Then we need to use registered packages in design-system, register package as the link and start build script.

cd path/to/design-system
yarn link react && yarn link react-dom && yarn link styled-components # use registered package
yarn link # register design-system
yarn build --watch # start build in watch mode

At the end, we need to link design-system in a third-party application.

cd path/to/application
yarn link @securityscorecard/design-system # use design-system

Contributing

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages