@octo-produits-internes/design-system-components v0.2.91
OCTO Design System Components
Package for implementation of OCTO's design system components. It includes the standalone @octo-produits-internes/design-system package. A demo storybook is also available.
1. Getting started
Requirements
Package | Version |
---|---|
react | 16.0.0, 17.0.0, 18.0.0 or higher |
styled-components | 4.0.0, 5.0.0 or higher |
With a package manager
- Install the
react
andstyled-components
packages (unless you already have them) :
yarn add react styled-components
- Install the package :
yarn add @octo-produits-internes/design-system-components
- Import the design system package components in your main script :
import { /* see documentation*/ } from '@octo-produits-internes/design-system-components'
On a static website
Add the
unpkg.com
origin to yourscript-src
andfont-src
CSPs.Add the
react
andstyled-components
script tags to your HTML page (unless you already have them) :
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/styled-components@4/dist/styled-components.js"></script>
- Add the package script tag to your HTML page :
<script src="https://unpkg.com/@octo-produits-internes/design-system-components"></script>
- Import the package namespace in your script :
const { /* see documentation*/ } = OctoDesignSystemComponents
2. Documentation
WIP
3. Development
Clone this repository and install all dependencies with yarn install --check-files
. Then, the following commands will be usable :
yarn start:example
: starts a headless server atlocalhost:8080
to show a use case example (defined insrc/main.example.ts
)yarn start:example:ssl
: same asyarn start:example
but the server will serve over HTTPS, as long as you have bothcerts/octopod-auth.pem
andcerts/octopod-auth-key.pem
yarn reinstall
: reinstalls all dependencies in a clean stateyarn build
: transpiles the project from Typescript to a Javascript module indist
yarn build:pack
: same asyarn build
but compiles the code and packs it for browser useyarn build:pack:example
: same asyarn build:pack
but writes the output pack file toexample
, alongside all the assets and the source map fileyarn build:pack:production
: same asyarn build:pack
but writes the output pack file todist/packs
, alongside the imported assets and without the source map fileyarn test
: starts tests for the specified file if specified, all files if notyarn test:watch
: same asyarn test
, but will run in watch modeyarn test:output
: same asyarn test
, but will output the results insrc/config/jest/jest.result.json
yarn test:coverage
: same asyarn test:output
, but will output the coverage in the console and insrc/config/jest/coverage/
yarn test:coverage:inspect
: same asyarn test:coverage
, but will start a headless server atlocalhost:8081
to show coverage resultsyarn lint:code
: lint the specified TS or TSX fileyarn lint:code:all
: same asyarn lint:code
, but lints on all TS and TSX filesyarn lint:style
: lint the specified style fileyarn lint:style:all
: same asyarn lint:style
, but lints on all style files
4. License
All rights reserved to OCTO Technology (France). Credit goes to the Produits Internes team. Use for other businesses is strictly prohibited.
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago