Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

Commit

Permalink
Moves from Grunt tooling to Polyserve
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorocha committed May 15, 2015
1 parent aad145d commit 8fa70f5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 57 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
bower_components/
node_modules/
30 changes: 0 additions & 30 deletions Gruntfile.js

This file was deleted.

20 changes: 7 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Or [download as ZIP](https://github.com/my-user/my-repo/archive/master.zip).
2. Import custom element:

```html
<link rel="import" href="bower_components/my-repo/src/my-element.html">
<link rel="import" href="bower_components/my-repo/my-element.html">
```

3. Start using it!
Expand Down Expand Up @@ -62,28 +62,22 @@ Event | Description

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

* Install [Bower](http://bower.io/) & [Grunt](http://gruntjs.com/):
1. Install [bower](http://bower.io/) & [polyserve](https://npmjs.com/polyserve):

```sh
$ [sudo] npm install -g bower grunt-cli
$ npm install -g bower polyserve
```

* Install local dependencies:
2. Install local dependencies:

```sh
$ bower install && npm install
$ bower install
```

* To test your project, start the development server and open `http://localhost:8000`.
3. Start development server and open `http://localhost:8080/components/my-repo/`.

```sh
$ grunt server
```

* To provide a live demo, send everything to `gh-pages` branch.

```sh
$ grunt deploy
$ polyserve
```

## History
Expand Down
3 changes: 1 addition & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
"version": "0.0.0",
"description": "My awesome Custom Element",
"license": "MIT",
"main": "src/my-element.html",
"main": "my-element.html",
"keywords": [
"web-components"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components"
],
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<meta charset="utf-8">
<title>&lt;my-repo&gt;</title>

<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
<!-- Imports polyfill -->
<script src="../webcomponentsjs/webcomponents.min.js"></script>

<!-- Imports custom element -->
<link rel="import" href="my-element.html">

<link rel="import" href="src/my-element.html">
</head>
<body>

Expand Down
1 change: 1 addition & 0 deletions src/my-element.html → my-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Fires when an attribute was added, removed, or updated
element.attributeChangedCallback = function(attr, oldVal, newVal) {};

// Registers custom element
document.registerElement('my-element', {
prototype: element
});
Expand Down
9 changes: 0 additions & 9 deletions package.json

This file was deleted.

0 comments on commit 8fa70f5

Please sign in to comment.