Skip to content

Commit

Permalink
Generate lit/dist/index.html (WebKit#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
rictic authored Jul 5, 2023
1 parent 815817b commit f6793b0
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 60 deletions.
108 changes: 50 additions & 58 deletions resources/todomvc/architecture-examples/lit/dist/index.html
Original file line number Diff line number Diff line change
@@ -1,61 +1,53 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
<title>TodoMVC: Lit</title>
<script type="module" src="./index.js"></script>
<style>
html,
body {
margin: 0;
padding: 0;
}

body {
font: 14px "Helvetica Neue", Helvetica, Arial, sans-serif;
line-height: 1.4em;
background: #f5f5f5;
color: #111111;
min-width: 230px;
max-width: 550px;
margin: 0 auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 300;
}

.info {
margin: 65px auto 0;
color: #4d4d4d;
font-size: 11px;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
text-align: center;
}

.info p {
line-height: 1;
}

.info a {
color: inherit;
text-decoration: none;
font-weight: 400;
}

.info a:hover {
text-decoration: underline;
}
</style>
</head>

<body>
<todo-app></todo-app>
<footer class="info">
<p>Double-click to edit a todo</p>
<p>Written by <a href="https://github.com/lit">the lit team</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
</body>

<head>
<meta charset="utf-8" />
<title>TodoMVC: Lit</title>
<script type="module" src="./index.js"></script>
<style>
html,
body {
margin: 0;
padding: 0;
}
body {
font: 14px "Helvetica Neue", Helvetica, Arial, sans-serif;
line-height: 1.4em;
background: #f5f5f5;
color: #111111;
min-width: 230px;
max-width: 550px;
margin: 0 auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 300;
}
.info {
margin: 65px auto 0;
color: #4d4d4d;
font-size: 11px;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
text-align: center;
}
.info p {
line-height: 1;
}
.info a {
color: inherit;
text-decoration: none;
font-weight: 400;
}
.info a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<todo-app></todo-app>
<footer class="info">
<p>Double-click to edit a todo</p>
<p>Written by <a href="https://github.com/lit">the lit team</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
</body>
</html>
15 changes: 13 additions & 2 deletions resources/todomvc/architecture-examples/lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"dev": "wireit",
"build": "wireit",
"tsc": "wireit",
"rollup": "wireit"
"rollup": "wireit",
"copy-index-html": "wireit"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.1.0",
Expand Down Expand Up @@ -51,7 +52,8 @@
"build": {
"dependencies": [
"tsc",
"rollup"
"rollup",
"copy-index-html"
]
},
"tsc": {
Expand All @@ -77,6 +79,15 @@
"dist/index.js"
],
"command": "rollup --config rollup.config.mjs"
},
"copy-index-html": {
"command": "cp index.html dist/index.html",
"files": [
"index.html"
],
"output": [
"dist/index.html"
]
}
}
}

0 comments on commit f6793b0

Please sign in to comment.