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

Commit 8fa70f5

Browse files
committed
Moves from Grunt tooling to Polyserve
1 parent aad145d commit 8fa70f5

File tree

7 files changed

+11
-57
lines changed

7 files changed

+11
-57
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
bower_components/
2-
node_modules/

Gruntfile.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Or [download as ZIP](https://github.com/my-user/my-repo/archive/master.zip).
3131
2. Import custom element:
3232

3333
```html
34-
<link rel="import" href="bower_components/my-repo/src/my-element.html">
34+
<link rel="import" href="bower_components/my-repo/my-element.html">
3535
```
3636

3737
3. Start using it!
@@ -62,28 +62,22 @@ Event | Description
6262

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

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

6767
```sh
68-
$ [sudo] npm install -g bower grunt-cli
68+
$ npm install -g bower polyserve
6969
```
7070

71-
* Install local dependencies:
71+
2. Install local dependencies:
7272

7373
```sh
74-
$ bower install && npm install
74+
$ bower install
7575
```
7676

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

7979
```sh
80-
$ grunt server
81-
```
82-
83-
* To provide a live demo, send everything to `gh-pages` branch.
84-
85-
```sh
86-
$ grunt deploy
80+
$ polyserve
8781
```
8882

8983
## History

bower.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
"version": "0.0.0",
44
"description": "My awesome Custom Element",
55
"license": "MIT",
6-
"main": "src/my-element.html",
6+
"main": "my-element.html",
77
"keywords": [
88
"web-components"
99
],
1010
"ignore": [
1111
"**/.*",
12-
"node_modules",
1312
"bower_components"
1413
],
1514
"dependencies": {

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<meta charset="utf-8">
66
<title>&lt;my-repo&gt;</title>
77

8-
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
98
<!-- Imports polyfill -->
9+
<script src="../webcomponentsjs/webcomponents.min.js"></script>
1010

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

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

src/my-element.html renamed to my-element.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// Fires when an attribute was added, removed, or updated
1616
element.attributeChangedCallback = function(attr, oldVal, newVal) {};
1717

18+
// Registers custom element
1819
document.registerElement('my-element', {
1920
prototype: element
2021
});

package.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)