Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ec-europa/ecl-webcomponents
ECL webcomponents is a new implementation of ECL vanilla components
https://github.com/ec-europa/ecl-webcomponents
design-system ecl stenciljs webcomponents
Last synced: 4 days ago
JSON representation
ECL webcomponents is a new implementation of ECL vanilla components
- Host: GitHub
- URL: https://github.com/ec-europa/ecl-webcomponents
- Owner: ec-europa
- Created: 2023-02-08T14:36:47.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-02T15:02:03.000Z (10 months ago)
- Last Synced: 2024-11-03T18:05:44.633Z (12 days ago)
- Topics: design-system, ecl, stenciljs, webcomponents
- Language: TypeScript
- Homepage: https://ecl-webcomponents.netlify.app/
- Size: 8.88 MB
- Stars: 2
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# ECL Web-components
Repository for the implementation and distribution of ECL [Europa component library](https://ec.europa.eu/component-library) as vanilla web-components.
ECL web-components are written and compiled using [stencil](https://stenciljs.com/).To quickly run the app:
```
git clone https://github.com/planctus/ecl-webcomponentsyarn (install dependencies and run prepublish script in the packages
yarn start (build stencil and watch files)
yarn dev (start storybook)
```### Command reference
**generate** ecl-{component} runs stencil generate and generates empty files
**build** builds the application, including storybook
**lint** runs stylelint on scss files and eslint on js files
**test** Runs the prettier checks and the snapshot tests
**test:update** Updates the snapshots
**start** builds stencil and watches files for changes
**dev** starts storybook
**pretty-check** Runs the checks by prettier
**pretty-write** Fix the errors with prettier### Adding a new component
```
yarn generate ecl-{component} (choose only the spec file)
```This will create most of the files needed in src/components/ecl-{component}
The scss in src/styles normally "use" the theme (ec/eu) and the vanilla scss from ecl.### React and angular wrappers
**build:react** Builds the react wrappers
**build:react-consumer** Builds the react consumer app
**build:angular** Builds the angular wrappers and consumer app
**dev-react** Launches the react consumer app
**dev-angular** Launches the angular consumer app### Assets
Due to a bug in stencil.js the getAssetPath() helper it provides has been replaced in ecl-webcomponents and it expects a
`` to be defined in the head or a `__ECL_ASSET_PATH__` variable set on the window object.
Assets will then be resolved from that path, typically our assets are in build/images/... so defining the data-ecl-asseth-path will
generate requests at /build/images...### Ckeditor plugin
**plugins:dev** Collection of script to fetch the ckeditor5 filesystem from github and install the plugin
**plugins:make** Builds the plugin
**build:playground** Builds the playground### Npm packages
- @ecl/ecl-webcomponents - ECL webcomponents package
- @ecl/ecl-webcomponents-react - Ecl webcomponents for React
- @ecl/ecl-webcomponents-angular - Ecl webcomponents for Angular
- @ecl/ckeditor5-ecl-webcomponents - Ckeditor 5 plugin for ECL Webcomponents### Documentation
- Get more information [here](./docs/README.md)