generator-polymer-init-valle-element
Version:
Generator for valle elements using Polymer 2x
136 lines (87 loc) • 3.76 kB
Markdown
# <%= elementName %>
> <%= elementDesc %>
[](https://travis-ci.org/<%= githubAccount %>/<%= elementGithubRepo %>)
[](https://www.webcomponents.org/element/<%= githubAccount %>/<%= elementGithubRepo %>)
## How to install and use:
1 - Install the element using [Bower](http://bower.io/):
```sh
$ bower install <%= elementName %> --save
```
2 - Import the element:
```html
<link rel="import" href="bower_components/<%= elementGithubRepo %>/<%= elementName %>.html">
```
3 - Start using it!
<!--
```
<custom-element-demo>
<template>
<link rel="import" href="<%= elementName %>.html">
<next-code-block></next-code-block>
</template>
</custom-element-demo>
```
-->
```html
<<%= elementName %>></<%= elementName %>>
```
## Properties
Property | Type | Default | Description
:--- |:--- |:--- |:---
`prop1` | *String* | `World` | Prop description
## Styling
The following custom properties and mixins are available for styling:
Custom property | Default | Description
:--- |:--- |:---
--valle-element-text-color | #f44277 | Text color
--valle-element-text | {} | Text styles
## Browser Support
Using the [webcomponents.js](https://github.com/WebComponents/webcomponentsjs):
 |  |  |  | |  |
:---: | :---: | :---: | :---: | :---: | :---: |
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11+ | Latest ✔
## Development
1 - Install [Bower](http://bower.io/) & [Polymer-CLI](https://www.polymer-project.org/1.0/docs/tools/polymer-cli):
```sh
$ [sudo] yarn global add bower polymer-cli
```
2 - Install local dependencies:
```sh
$ bower install
```
3 - Start the development server:
```sh
$ polymer serve
```
Go to [localhost:8080/components/<%= elementName %>/](http://localhost:8080/components/<%= elementName %>/)
## Tests
#### Linting
Linting with eslint:
```sh
$ [sudo] yarn global add eslint
$ [sudo] yarn global add eslint-plugin-html
$ eslint *.html
```
Linting with polylint:
```sh
$ polymer lint
```
#### Unit tests
Install the Web Component Tester (WCT) test runner:
```sh
$ [sudo] yarn global add web-component-tester
```
Run tests:
```sh
$ wct
```
## Versioning
To keep better organization of releases we follow the [Semantic Versioning 2.0.0](http://semver.org/) guidelines.
## Contributing
Find on our [issues](https://github.com/<%= githubAccount %>/<%= elementGithubRepo %>/issues/) the next steps of the project ;)
<br>
Want to contribute? [Follow these recommendations](https://github.com/<%= githubAccount %>/<%= elementGithubRepo %>/blob/master/CONTRIBUTING.md).
## History
See [Releases](https://github.com/<%= githubAccount %>/<%= elementGithubRepo %>/releases) for detailed changelog.
## License
[MIT License](https://github.com/<%= githubAccount %>/<%= elementGithubRepo %>/blob/master/LICENSE.md) © [<%= githubAccount %>](https://github.com/orgs/<%= githubAccount %>/people)