initial commit
This commit is contained in:
commit
4bb3bae4e6
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
.vscode
|
||||
.idea
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
|
12
index.html
Normal file
12
index.html
Normal 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
7889
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
14
package.json
Normal file
14
package.json
Normal 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
3
public/favicon.svg
Normal 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
12
src/App.svelte
Normal 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
7
src/index.js
Normal file
@ -0,0 +1,7 @@
|
||||
import App from './App.svelte';
|
||||
|
||||
const app = new App({
|
||||
target: document.body,
|
||||
});
|
||||
|
||||
export default app;
|
Loading…
x
Reference in New Issue
Block a user