0.2.91 • Published 1 year ago

@octo-produits-internes/design-system-components v0.2.91

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
1 year ago

OCTO Design System Components

pipeline status

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

PackageVersion
react16.0.0, 17.0.0, 18.0.0 or higher
styled-components4.0.0, 5.0.0 or higher

With a package manager

  1. Install the react and styled-components packages (unless you already have them) :
yarn add react styled-components
  1. Install the package :
yarn add @octo-produits-internes/design-system-components
  1. Import the design system package components in your main script :
import { /* see documentation*/ } from '@octo-produits-internes/design-system-components'

On a static website

  1. Add the unpkg.com origin to your script-src and font-src CSPs.

  2. Add the react and styled-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>
  1. Add the package script tag to your HTML page :
<script src="https://unpkg.com/@octo-produits-internes/design-system-components"></script>
  1. 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 at localhost:8080 to show a use case example (defined in src/main.example.ts)
  • yarn start:example:ssl: same as yarn start:example but the server will serve over HTTPS, as long as you have both certs/octopod-auth.pem and certs/octopod-auth-key.pem
  • yarn reinstall: reinstalls all dependencies in a clean state
  • yarn build: transpiles the project from Typescript to a Javascript module in dist
  • yarn build:pack: same as yarn build but compiles the code and packs it for browser use
  • yarn build:pack:example: same as yarn build:pack but writes the output pack file to example, alongside all the assets and the source map file
  • yarn build:pack:production: same as yarn build:pack but writes the output pack file to dist/packs, alongside the imported assets and without the source map file
  • yarn test: starts tests for the specified file if specified, all files if not
  • yarn test:watch: same as yarn test, but will run in watch mode
  • yarn test:output: same as yarn test, but will output the results in src/config/jest/jest.result.json
  • yarn test:coverage: same as yarn test:output, but will output the coverage in the console and in src/config/jest/coverage/
  • yarn test:coverage:inspect: same as yarn test:coverage, but will start a headless server at localhost:8081 to show coverage results
  • yarn lint:code: lint the specified TS or TSX file
  • yarn lint:code:all: same as yarn lint:code, but lints on all TS and TSX files
  • yarn lint:style: lint the specified style file
  • yarn lint:style:all: same as yarn 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.

0.2.91

1 year ago

0.2.90

1 year ago

0.2.88

1 year ago

0.2.87

1 year ago

0.2.86

1 year ago

0.2.85

1 year ago

0.2.84

1 year ago

0.2.83

1 year ago

0.2.82

1 year ago

0.2.81

1 year ago

0.2.80

1 year ago

0.2.79

1 year ago

0.2.78

1 year ago

0.2.77

1 year ago

0.2.76

1 year ago

0.2.75

1 year ago

0.2.74

1 year ago

0.2.73

1 year ago

0.2.72

1 year ago

0.2.71

1 year ago

0.2.70

1 year ago

0.2.69

1 year ago

0.2.68

1 year ago

0.2.67

2 years ago

0.2.66

2 years ago

0.2.65

2 years ago

0.2.64

2 years ago

0.2.63

2 years ago

0.2.62

2 years ago

0.2.61

2 years ago

0.2.60

2 years ago

0.2.27

2 years ago

0.2.26

2 years ago

0.2.25

2 years ago

0.2.24

2 years ago

0.2.23

2 years ago

0.2.22

2 years ago

0.2.21

2 years ago

0.2.20

2 years ago

0.2.19

2 years ago

0.2.18

2 years ago

0.2.17

2 years ago

0.2.52

2 years ago

0.2.51

2 years ago

0.2.50

2 years ago

0.2.16

2 years ago

0.2.59

2 years ago

0.2.15

2 years ago

0.2.58

2 years ago

0.2.14

2 years ago

0.2.57

2 years ago

0.2.13

2 years ago

0.2.56

2 years ago

0.2.12

2 years ago

0.2.55

2 years ago

0.2.11

2 years ago

0.2.54

2 years ago

0.2.10

2 years ago

0.2.53

2 years ago

0.2.41

2 years ago

0.2.40

2 years ago

0.2.49

2 years ago

0.2.48

2 years ago

0.2.47

2 years ago

0.2.46

2 years ago

0.2.45

2 years ago

0.2.44

2 years ago

0.2.43

2 years ago

0.2.42

2 years ago

0.2.39

2 years ago

0.2.30

2 years ago

0.2.38

2 years ago

0.2.37

2 years ago

0.2.36

2 years ago

0.2.35

2 years ago

0.2.34

2 years ago

0.2.33

2 years ago

0.2.32

2 years ago

0.2.31

2 years ago

0.2.1

2 years ago

0.2.29

2 years ago

0.2.28

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.0

2 years ago

0.0.11

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago