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

Commit 2f13481

Browse files
committed
Moves from Grunt tooling to Polyserve
1 parent 370af2c commit 2f13481

File tree

5 files changed

+9
-46
lines changed

5 files changed

+9
-46
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: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Or [download as ZIP](https://github.com/webcomponents/hello-world-element/archiv
2929
2. Import custom element:
3030

3131
```html
32-
<link rel="import" href="bower_components/hello-world-element/src/hello-world.html">
32+
<link rel="import" href="bower_components/hello-world-element/hello-world.html">
3333
```
3434

3535
3. Start using it!
@@ -48,28 +48,22 @@ Attribute | Options | Default | Description
4848

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

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

5353
```sh
54-
$ [sudo] npm install -g bower grunt-cli
54+
$ npm install -g bower polyserve
5555
```
5656

5757
2. Install local dependencies:
5858

5959
```sh
60-
$ bower install && npm install
60+
$ bower install
6161
```
6262

63-
3. To test your project, start the development server and open `http://localhost:8000`.
63+
3. Start development server and open `http://localhost:8080/components/hello-world-element/`.
6464

6565
```sh
66-
$ grunt server
67-
```
68-
69-
4. To provide a live demo, send everything to `gh-pages` branch.
70-
71-
```sh
72-
$ grunt deploy
66+
$ polyserve
7367
```
7468

7569
## History

bower.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
"WebComponents.org"
77
],
88
"license": "MIT",
9-
"main": "src/hello-world.html",
9+
"main": "hello-world.html",
1010
"keywords": [
1111
"web-components"
1212
],
1313
"ignore": [
1414
"**/.*",
15-
"node_modules",
1615
"bower_components"
1716
],
1817
"dependencies": {

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
<title>&lt;hello-world&gt;</title>
77

88
<!-- Imports polyfill -->
9+
<script src="../webcomponentsjs/webcomponents.min.js"></script>
910

1011
<!-- Imports custom element -->
12+
<link rel="import" href="hello-world.html">
1113

12-
<link rel="import" href="src/hello-world.html">
1314
</head>
1415
<body>
1516

0 commit comments

Comments
 (0)