@claromentis/design-system
Version:
Claromentis Design System Component Library
86 lines (57 loc) • 3.55 kB
Markdown
# Getting Started

A library of web components for the Claromentis Design System.
- [Documentation](#documentation)
- [Getting started](#getting-started)
- [Install dependencies](#install-dependencies)
- [Run the development server](#run-the-development-server)
- [Run the development server with ES5 compatibility](#run-the-development-server-with-es5-compatibility)
- [Build the component library and documentation](#build-the-component-library-and-documentation)
- [Run tests](#run-tests)
- [Building components](#building-components)
- [Contributing](#contributing)
- [Publishing to NPM](#publishing-to-npm)
## Documentation
- [Web components guide](https://gitlab.com/claromentis/design/front-end-docs/-/blob/master/WEBCOMPONENTS.md)
- [Front-end style guide](https://gitlab.com/claromentis/design/front-end-docs/-/blob/master/STYLE.md)
- [Stencil](https://stenciljs.com/docs/introduction)
## Getting started
### Install dependencies
Install [Node v12.10.x](https://nodejs.org/) or greater.
```bash
npm install
```
### Run the development server
```bash
npm start
```
### Run the development server with ES5 compatibility
This is useful for testing compatibility with browsers that don't yet fully
support the HTML5 specs for Web Components (Edge, Firefox, IE11).
```
npm start --es5
```
### Build the component library and documentation
```bash
npm run build
```
### Run tests
```bash
npm test
```
## Building components
Visit the [Stencil documentation](https://stenciljs.com/docs/my-first-component) to learn how
to build Web Components using Stencil.
## Contributing
Please refer to the [Contributing Guide](./CONTRIBUTING.md) when making changes to the library.
## Publishing to NPM
The component library is published to and downloaded from [NPM](https://www.npmjs.com/).
To release a new version and publish it to NPM, please follow these steps:
* Update the version number in `package.json` e.g. `"version": "0.0.21"`
* Make sure the [Changelog](CHANGELOG.md) is up to date
* Commit with the above changes e.g. `git commit -m "Released 0.0.21`
* Tag the release e.g. `git tag 0.0.21`
* Push your changes with `git push` and push the tag `git push --tag`
* Publish to NPM `npm publish --access public`
To update the version of the component library in any projects that depend on it:
* Run `npm update @claromentis/design-system`