0.2.91 • Published 24 days ago

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

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
24 days 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

24 days ago

0.2.90

2 months ago

0.2.88

2 months ago

0.2.87

2 months ago

0.2.86

2 months ago

0.2.85

2 months ago

0.2.84

2 months ago

0.2.83

2 months ago

0.2.82

2 months ago

0.2.81

3 months ago

0.2.80

3 months ago

0.2.79

3 months ago

0.2.78

3 months ago

0.2.77

3 months ago

0.2.76

3 months ago

0.2.75

3 months ago

0.2.74

3 months ago

0.2.73

3 months ago

0.2.72

3 months ago

0.2.71

4 months ago

0.2.70

4 months ago

0.2.69

4 months ago

0.2.68

4 months ago

0.2.67

5 months ago

0.2.66

5 months ago

0.2.65

5 months ago

0.2.64

5 months ago

0.2.63

5 months ago

0.2.62

7 months ago

0.2.61

7 months ago

0.2.60

7 months ago

0.2.27

10 months ago

0.2.26

10 months ago

0.2.25

10 months ago

0.2.24

10 months ago

0.2.23

10 months ago

0.2.22

10 months ago

0.2.21

10 months ago

0.2.20

10 months ago

0.2.19

10 months ago

0.2.18

10 months ago

0.2.17

10 months ago

0.2.52

8 months ago

0.2.51

8 months ago

0.2.50

8 months ago

0.2.16

10 months ago

0.2.59

7 months ago

0.2.15

10 months ago

0.2.58

7 months ago

0.2.14

10 months ago

0.2.57

7 months ago

0.2.13

10 months ago

0.2.56

7 months ago

0.2.12

10 months ago

0.2.55

7 months ago

0.2.11

10 months ago

0.2.54

7 months ago

0.2.10

10 months ago

0.2.53

7 months ago

0.2.41

9 months ago

0.2.40

9 months ago

0.2.49

8 months ago

0.2.48

8 months ago

0.2.47

8 months ago

0.2.46

8 months ago

0.2.45

8 months ago

0.2.44

8 months ago

0.2.43

9 months ago

0.2.42

9 months ago

0.2.39

9 months ago

0.2.30

9 months ago

0.2.38

9 months ago

0.2.37

9 months ago

0.2.36

9 months ago

0.2.35

9 months ago

0.2.34

9 months ago

0.2.33

9 months ago

0.2.32

9 months ago

0.2.31

9 months ago

0.2.1

10 months ago

0.2.29

9 months ago

0.2.28

9 months ago

0.2.7

10 months ago

0.2.6

10 months ago

0.2.9

10 months ago

0.2.8

10 months ago

0.2.3

10 months ago

0.2.2

10 months ago

0.2.5

10 months ago

0.2.4

10 months ago

0.2.0

11 months ago

0.0.11

12 months ago

0.1.0

12 months ago

0.1.2

11 months ago

0.1.1

12 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago