Skip to content

Commit

Permalink
Switch to using vite for build
Browse files Browse the repository at this point in the history
  • Loading branch information
scmmmh committed Aug 25, 2023
1 parent 4dc7626 commit 71dab40
Show file tree
Hide file tree
Showing 49 changed files with 5,590 additions and 811 deletions.
2 changes: 1 addition & 1 deletion museum_map/cli/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def run(ctx):
"/(.*)",
FrontendHandler,
{
"base": resources.files("museum_map") / "server" / "frontend" / "public",
"base": resources.files("museum_map") / "server" / "frontend" / "dist",
"html_injectors": {r"room/([0-9]+)/([0-9]+)": create_inject_item_html(config)},
},
),
Expand Down
24 changes: 22 additions & 2 deletions museum_map/server/frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
/node_modules/
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
build
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
13 changes: 13 additions & 0 deletions museum_map/server/frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Svelte + TS</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 71dab40

Please sign in to comment.