Skip to content

Commit 526854d

Browse files
author
Sille Kamoen
committed
Port to v3
1 parent daeb3ef commit 526854d

14 files changed

+875
-251
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
bower_components
2+
node_modules

LICENSE

-29
This file was deleted.

README.md

+2-19
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,14 @@ iron-ajax element specified for the lancie frontends
44

55
## Install the Polymer-CLI
66

7-
First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your application locally.
7+
First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) and npm (packaged with [Node.js](https://nodejs.org)) installed. Run `npm install` to install your element's dependencies, then run `polymer serve` to serve your element locally.
88

9-
## Viewing Your Application
9+
## Viewing Your Element
1010

1111
```
1212
$ polymer serve
1313
```
1414

15-
## Building Your Application
16-
17-
```
18-
$ polymer build
19-
```
20-
21-
This will create a `build/` folder with `bundled/` and `unbundled/` sub-folders
22-
containing a bundled (Vulcanized) and unbundled builds, both run through HTML,
23-
CSS, and JS optimizers.
24-
25-
You can serve the built versions by giving `polymer serve` a folder to serve
26-
from:
27-
28-
```
29-
$ polymer serve build/bundled
30-
```
31-
3215
## Running Tests
3316

3417
```

bower.json

-16
This file was deleted.

demo/index.html

+11-6
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@
66

77
<title>lancie-ajax demo</title>
88

9-
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
9+
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
1010

11-
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
12-
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
13-
<link rel="import" href="../lancie-ajax.html">
11+
<script type="module">
12+
import '@polymer/iron-demo-helpers/demo-pages-shared-styles';
13+
import '@polymer/iron-demo-helpers/demo-snippet';
14+
</script>
1415

15-
<style is="custom-style" include="demo-pages-shared-styles">
16-
</style>
16+
<script type="module" src="../lancie-ajax.js"></script>
17+
18+
<custom-style>
19+
<style is="custom-style" include="demo-pages-shared-styles">
20+
</style>
21+
</custom-style>
1722
</head>
1823
<body>
1924
<div class="vertical-section-container centered">

index.html

+6-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
6-
5+
<meta http-equiv="refresh" content="0;url=demo/" />
76
<title>lancie-ajax</title>
8-
9-
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
10-
11-
<link rel="import" href="../iron-component-page/iron-component-page.html">
127
</head>
138
<body>
14-
<iron-component-page src="lancie-ajax.html"></iron-component-page>
9+
<!--
10+
Visit demo/index.html to see live examples of your element running.
11+
This page will automatically redirect you there when run in the browser
12+
with `polymer serve`.
13+
-->
1514
</body>
1615
</html>

lancie-ajax.html

-143
This file was deleted.

0 commit comments

Comments
 (0)