Skip to content

Commit 69c8296

Browse files
authored
chore: add a start script and dev pages (#2457)
1 parent bd6ea70 commit 69c8296

3 files changed

Lines changed: 36 additions & 0 deletions

File tree

‎dev/button.html‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Document</title>
8+
9+
<script type="module">
10+
import '@vaadin/button';
11+
</script>
12+
</head>
13+
14+
<body>
15+
<vaadin-button>Click me</vaadin-button>
16+
</body>
17+
</html>

‎dev/icon.html‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Document</title>
8+
9+
<script type="module">
10+
import '@vaadin/vaadin-icon';
11+
import '@vaadin/vaadin-icons/vaadin-iconset.js';
12+
</script>
13+
</head>
14+
15+
<body>
16+
<vaadin-icon icon="vaadin:phone"></vaadin-icon>
17+
</body>
18+
</html>

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"lint:js": "eslint --ext .js,.ts *.js scripts packages",
2828
"lint:types": "tsc",
2929
"serve:dist": "web-dev-server --app-index dist/index.html --open",
30+
"start": "web-dev-server --node-resolve --open /dev/button.html",
3031
"test": "web-test-runner --coverage",
3132
"test:firefox": "web-test-runner --config web-test-runner-firefox.config.js",
3233
"test:lumo": "web-test-runner --config web-test-runner-lumo.config.js",

0 commit comments

Comments
 (0)