polymer-boilerplate

Fork this repo if you want to start your own Web Component using Polymer

  • 所有者: webcomponents/polymer-boilerplate
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

<my-repo>

A bare minimum custom element starter-kit using Polymer.

Like Yeoman? Use the generator-element instead.

Looking for a working example? Check hello-world-polymer.

Demo

Check it live!

Install

Install the component using Bower:

$ bower install my-repo --save

Or download as ZIP.

Usage

  1. Import polyfill:

    <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
    
  2. Import custom element:

    <link rel="import" href="bower_components/my-repo/my-element.html">
    
  3. Start using it!

    <my-element></my-element>
    

Options

Attribute, Options, Default, Description
---, ---, ---, ---
foo, string, bar, Lorem ipsum dolor.

Methods

Method, Parameters, Returns, Description
---, ---, ---, ---
unicorn(), None., Nothing., Magic stuff appears.

Events

Event, Description
---, ---
onsomething, Triggers when something happens.

Development

In order to run it locally you'll need to fetch some dependencies and a basic server setup.

  1. Install bower & polyserve:

    $ npm install -g bower polyserve
    
  2. Install local dependencies:

    $ bower install
    
  3. Start development server and open http://localhost:8080/components/my-repo/.

    $ polyserve
    

History

For detailed changelog, check Releases.

License

MIT License

主要指标

概览
名称与所有者webcomponents/polymer-boilerplate
主编程语言HTML
编程语言HTML (语言数: 1)
平台
许可证
所有者活动
创建于2013-08-19 13:56:42
推送于2015-07-07 21:59:16
最后一次提交2015-07-07 14:59:15
发布数7
最新版本名称v1.1.0 (发布于 )
第一版名称v0.1.0 (发布于 )
用户参与
星数369
关注者数32
派生数214
提交数81
已启用问题?
问题数14
打开的问题数0
拉请求数7
打开的拉请求数1
关闭的拉请求数7
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?