sipa-ui

6.11.6 • Public • Published

SipaUI

Ouest-France/Sipa Group guidelines

Installation

yarn install
npx gulp

NodeJS version >= 10.10.0 is required

build doc

Publish directory dist/

yarn install
yarn build

Dev

dev mode

yarn install
yarn watch
yarn storybook

Add a component

yarn install
yarn add-component --name=comp-name
yarn build

Then, relaunch Storybook in build or dev mode.


Technic architecture

SipaUI's content

build / (usefull directory to generate the dist)
dist / (compilated files)
doc / (directory for the website)
    index.php
    [page-name].php
    ...
src /
    components /
        [component-name]
            doc-design.md (files for the documentation)
            doc-html.md (files for the documentation)
            doc-vuejs.md (files for the documentation)
            main.scss
            _variables.scss
            _theme-[name].scss
            index.vue.js
    core /
        fonts /
        js /
        scss /
.storybook / (usefull directory to generate the catalog)
    config.js
    head.html

Docker

docker build -t sipa-ui . -f .utils/Dockerfile-local
docker run -v `pwd`:/sipaui -v /sipaui/node_modules/ -d -p 8789:80 -p 9001:9001 --name sipa-ui_1 sipa-ui
docker exec -it sipa-ui_1 bash

yarn install
yarn build
yarn storybook

Stop

docker stop sipa-ui_1

Start

docker start sipa-ui_1
docker exec -it sipa-ui_1 bash
yarn storybook

URL

mode doc:

http://localhost:8789/
http://localhost:8789/storybook/?path=/story/intro--documentation

mode catalogue

http://localhost:9001/?path=/story/intro--documentation

Mettre à jour l'image docker cdp

docker build -t matthieupresse/php7-node14 -f .utils/Dockerfile-build-cdp .
docker tag matthieupresse/php7-node14 matthieupresse/php7-node14
docker push matthieupresse/php7-node14

Compatibilité avec les navigateurs

La compilation Gulp gère la compatibilité avec les différents navigateurs via PostCSS et Autoprefixer.

Pour changer la configuration actuelle, modifiez le fichier .browserslistrc à la racine du projet (options possibles : https://github.com/browserslist/browserslist#full-list).

Pour connaître la liste des navigateurs compatibles, lancez cette commande :

npx browserslist

Readme

Keywords

none

Package Sidebar

Install

npm i sipa-ui

Weekly Downloads

779

Version

6.11.6

License

ISC

Unpacked Size

4.46 MB

Total Files

437

Last publish

Collaborators

  • fgribreau
  • matthieupresse