项目作者: hippie-elements

项目描述 :
<🍂> Boilerplate for create hippie elements using Polymer 1x.
高级语言: HTML
项目地址: git://github.com/hippie-elements/hippie-element-boilerplate.git


<:fallen_leaf:></:fallen_leaf:> Boilerplate for create hippie elements using Polymer 1x.

Travis CI Status
bower
Published on webcomponents.org

How to install and use:

1 - Install the element using Bower:

  1. $ bower install hippie-element-boilerplate --save

2 - Import the element:

  1. <link rel="import" href="bower_components/hippie-element-boilerplate/hippie-element-boilerplate.html">

3 - Start using it!

  1. <hippie-element-boilerplate prop="foo">bar</hippie-element-boilerplate>

Properties

Property Type Default Description
prop String foo Prop description

Styling

The following custom properties and mixins are available for styling:

Custom property Default Description
—hippie-element-background-color #f06 Background color
—hippie-element-text-color fff Text color
—hippie-element-text {} Text styles

Browser Support

Using the webcomponents.js:

Chrome Opera Firefox Safari IE Edge
Latest ✔ Latest ✔ Latest ✔ Latest ✔ 11+ Latest ✔

Development

1 - Install Bower & Polymer-CLI:

  1. $ [sudo] npm install -g bower polymer-cli

2 - Install local dependencies:

  1. $ bower install

3 - Start the development server:

  1. $ polyserve

Go to localhost:8080/components/hippie-element-boilerplate/

Tests

Linting

Linting with eslint:

  1. $ [sudo] npm install -g eslint
  2. $ [sudo] npm install -g eslint-plugin-html
  3. $ eslint *.html

Linting with polylint:

  1. $ [sudo] npm install -g polylint
  2. $ polylint

Unit tests

Install the Web Component Tester (WCT) test runner:

  1. $ [sudo] npm install -g web-component-tester

Run tests:

  1. $ wct --skip-plugin sauce

Quick tip: For run the selenium driver for safari, you need follow some instructions.

Versioning

To keep better organization of releases we follow the Semantic Versioning 2.0.0 guidelines.

Contributing

Find on our issues the next steps of the project ;)


Want to contribute? Follow these recommendations.

History

See Releases for detailed changelog.

License

MIT License © hippie team