initial commit

This commit is contained in:
Philipp Dormann 2020-12-18 17:17:16 +01:00
commit 4bb3bae4e6
7 changed files with 7943 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
.vscode
.idea
node_modules
dist
dist-ssr

12
index.html Normal file
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Svelte App</title>
</head>
<body>
<script type="module" src="/src/index.js"></script>
</body>
</html>

7889
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

14
package.json Normal file
View File

@ -0,0 +1,14 @@
{
"name": "my-first-svite-project",
"version": "0.0.0",
"scripts": {
"dev": "svite",
"build": "svite build"
},
"dependencies": {},
"devDependencies": {
"svelte": "^3.29.7",
"svelte-hmr": "^0.11.6",
"svite": "^0.8.1"
}
}

3
public/favicon.svg Normal file
View File

@ -0,0 +1,3 @@
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path id ="svite-logo" style="fill: #ff3e00; stroke: none;" d="M 23,1 L 4,10 14,14 1,23 20,14 10,10 Z "/>
</svg>

After

Width:  |  Height:  |  Size: 176 B

12
src/App.svelte Normal file
View File

@ -0,0 +1,12 @@
<script>
const world = 'world'; // edit world and save to see hmr update
</script>
<style>
h1 {
color: orangered; /* change color an save to see hmr update */
}
</style>
<h1>Hello {world}</h1>
<p>Open App.svelte in your editor and change something to see HMR in action</p>

7
src/index.js Normal file
View File

@ -0,0 +1,7 @@
import App from './App.svelte';
const app = new App({
target: document.body,
});
export default app;