https://github.com/webcomponents/xtag-boilerplate
Fork this repo if you want to start your own Web Component using X-Tag
https://github.com/webcomponents/xtag-boilerplate
Last synced: 8 months ago
JSON representation
Fork this repo if you want to start your own Web Component using X-Tag
- Host: GitHub
- URL: https://github.com/webcomponents/xtag-boilerplate
- Owner: webcomponents
- Archived: true
- Created: 2014-02-25T18:31:57.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-05-28T21:59:41.000Z (about 11 years ago)
- Last Synced: 2025-08-12T17:52:31.772Z (10 months ago)
- Language: HTML
- Size: 563 KB
- Stars: 51
- Watchers: 16
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# <my-repo>
> A bare minimum custom element starter-kit using [X-Tag](http://x-tags.org/).
>
> Like [Yeoman](http://yeoman.io/)? Use the [generator-element](https://www.npmjs.org/package/generator-element) instead.
>
> Looking for a working example? Check [hello-world-xtag](https://github.com/webcomponents/hello-world-xtag).
## Demo
[Check it live!](http://my-user.github.io/my-repo)
## Install
Install the component using [Bower](http://bower.io/):
```sh
$ bower install my-repo --save
```
Or [download as ZIP](https://github.com/my-user/my-repo/archive/master.zip).
## Usage
1. Import polyfill:
```html
```
2. Import custom element:
```html
```
3. Start using it!
```html
```
## 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](http://bower.io/) & [polyserve](https://npmjs.com/polyserve):
```sh
$ npm install -g bower polyserve
```
2. Install local dependencies:
```sh
$ bower install
```
3. Start development server and open `http://localhost:8080/components/my-repo/`.
```sh
$ polyserve
```
## History
For detailed changelog, check [Releases](https://github.com/my-user/my-repo/releases).
## License
[MIT License](http://opensource.org/licenses/MIT)