This repository was archived by the owner on Dec 29, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +9
-46
lines changed Expand file tree Collapse file tree 5 files changed +9
-46
lines changed Original file line number Diff line number Diff line change 11bower_components /
2- node_modules /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Or [download as ZIP](https://github.com/webcomponents/hello-world-element/archiv
29292. 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
35353. Start using it!
@@ -48,28 +48,22 @@ Attribute | Options | Default | Description
4848
4949In 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
57572. 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
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 66 < title > <hello-world></ 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
You can’t perform that action at this time.
0 commit comments