Skip to content
This repository has been archived by the owner on Dec 29, 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 370af2c commit 2f13481
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 46 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.

18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Or [download as ZIP](https://github.com/webcomponents/hello-world-element/archiv
2. Import custom element:

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

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

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

1. 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
```

2. Install local dependencies:

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

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

```sh
$ grunt server
```

4. 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 @@ -6,13 +6,12 @@
"WebComponents.org"
],
"license": "MIT",
"main": "src/hello-world.html",
"main": "hello-world.html",
"keywords": [
"web-components"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components"
],
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
<title>&lt;hello-world&gt;</title>

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

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

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

Expand Down

0 comments on commit 2f13481

Please sign in to comment.