1.0.1 • Published 4 years ago

wcs-temporary v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Web Components SNCF

This project is the web component implementation of the SNCF design system.
It is built using stencil.

If you read this documentation on Github, only the development branch is updated at the moment. We use a GitLab project for WCS development and releases.

Roadmap

This project is still under heavy development therefore it is not yet released. It is being used internally as of now.

We plan to release first version in december 2020.

Known issues

Select and select options size behavior, especially with multiple select. As of now we recommend setting a fixed width on the select to prevent resizing from happening. A stale branch fix-select-options-size contains some work to fix it, but it is abandonned for now.

Documentation

There is documentation available at https://sncf.gitlab.io/wcs-ci/develop/. It is only available for the develop branch though as the project remains unreleased.

For a specific component you can also look under src/components//README.md.

Example usage

There is an example projects under example folder for angular.

If you have any question, don't hesitate to fill an issue !

Install in your project

StencilJS offers many integrations with different JS frameworks.

You can refer to their official documentation to add WCS to your project : https://stenciljs.com/docs/overview

After added wcs dependencies, you must add font faces Avenir like so :

@font-face {
    font-family: Avenir;
    src: url("your-custom-path/avenir-lighter.woff");
    font-weight: 300;
}

@font-face {
    font-family: Avenir;
    src: url("your-custom-path/avenir-book.woff");
    font-weight: 400;
}

@font-face {
    font-family: Avenir;
    src: url("your-custom-path/avenir-medium.woff");
    font-weight: 500;
}

@font-face {
    font-family: Avenir;
    src: url("your-custom-path/avenir-black.woff");
    font-weight: 900;
}

Contributing

Bug, Feature request, etc...

Don't hesitate to fill in an issue and we'll discuss about it. If you want to contribute code, please fill in an issue first so we can synchronize.

Dev requirements

  • Minimum node version : 10.16

Starting the project

git clone https://github.com/SNCFdevelopers/wcs.git
cd wcs
npm install
# To see all components
npm start
# To see only the component you're working on
npm start -- --filter select

Test

The project uses stencil built-in facility for testing : https://stenciljs.com/docs/testing-overview.

We encourage doing TDD on functional components. To launch the tests suite simply launch :

npm run test:watch
# Or if you simply want to run them once
npm test

Doing a release

# Make sure you're on develop branch
git checkout develop
# Pull latest changes
git pull
# Go on master
git checkout master
# Merge latest changes
git merge develop
# Do the release, we use semantic versioning for choosing release number
npm version <major|minor|patch>
# Go on develop
git checkout develop
# Merge the release
git merge master
# Push the changes
git push
1.0.1

4 years ago

1.0.0

4 years ago

0.18.0

4 years ago

0.17.1

4 years ago

0.17.0

4 years ago

0.16.0

4 years ago

0.15.5

4 years ago

0.15.4

4 years ago

0.15.3

4 years ago

0.15.2

4 years ago

0.15.1

4 years ago

0.15.0

4 years ago

0.14.4

4 years ago

0.14.2

4 years ago

0.14.3

4 years ago

0.14.0

4 years ago

0.14.1

4 years ago

0.13.2

4 years ago

0.13.1

4 years ago

0.13.0

4 years ago

0.12.0

4 years ago

0.11.0

5 years ago

0.10.0

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.0

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.5.4

5 years ago

0.4.5

5 years ago

0.4.4

5 years ago

0.3.0

5 years ago