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 1
1
bower_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
29
29
2. Import custom element:
30
30
31
31
```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" >
33
33
```
34
34
35
35
3. Start using it!
@@ -48,28 +48,22 @@ Attribute | Options | Default | Description
48
48
49
49
In order to run it locally you'll need to fetch some dependencies and a basic server setup.
50
50
51
- 1. Install [Bower ](http://bower.io/) & [Grunt](http ://gruntjs .com/):
51
+ 1. Install [bower ](http://bower.io/) & [polyserve](https ://npmjs .com/polyserve ):
52
52
53
53
```sh
54
- $ [sudo] npm install -g bower grunt-cli
54
+ $ npm install -g bower polyserve
55
55
```
56
56
57
57
2. Install local dependencies:
58
58
59
59
```sh
60
- $ bower install && npm install
60
+ $ bower install
61
61
```
62
62
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/ `.
64
64
65
65
```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
73
67
```
74
68
75
69
## History
Original file line number Diff line number Diff line change 6
6
" WebComponents.org"
7
7
],
8
8
"license" : " MIT" ,
9
- "main" : " src/ hello-world.html" ,
9
+ "main" : " hello-world.html" ,
10
10
"keywords" : [
11
11
" web-components"
12
12
],
13
13
"ignore" : [
14
14
" **/.*" ,
15
- " node_modules" ,
16
15
" bower_components"
17
16
],
18
17
"dependencies" : {
Original file line number Diff line number Diff line change 6
6
< title > <hello-world></ title >
7
7
8
8
<!-- Imports polyfill -->
9
+ < script src ="../webcomponentsjs/webcomponents.min.js "> </ script >
9
10
10
11
<!-- Imports custom element -->
12
+ < link rel ="import " href ="hello-world.html ">
11
13
12
- < link rel ="import " href ="src/hello-world.html ">
13
14
</ head >
14
15
< body >
15
16
You can’t perform that action at this time.
0 commit comments