Skip to content

Commit

Permalink
fix template updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Dec 8, 2023
1 parent 0f192a4 commit 990eb91
Show file tree
Hide file tree
Showing 26 changed files with 337 additions and 1,488 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: "3.11"
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.4.0
rev: v3.0.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
Expand All @@ -17,7 +17,7 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.1.5"
rev: "v0.1.7"
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -32,7 +32,7 @@ repos:
- id: black
args: [--config=./pyproject.toml]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.7.0"
rev: "v1.7.1"
hooks:
- id: mypy
exclude: "docs"
Expand All @@ -52,6 +52,6 @@ repos:
"litestar[cli]",
]
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: "v0.8.1"
rev: "v0.9.0"
hooks:
- id: sphinx-lint
6 changes: 3 additions & 3 deletions examples/htmx/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"**/*.d.ts",
"resources/**/*.js" ,
"resources/**/*.ts" ,


"vite.config.ts"
]
}
}
10 changes: 5 additions & 5 deletions examples/htmx/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import litestar from "litestar-vite-plugin";

export default defineConfig({
plugins: [


litestar({
input: [
input: [
"resources/styles.css"
],
assetUrl: "/static/",
Expand All @@ -21,5 +21,5 @@ export default defineConfig({
alias: {
"@": "resources",
},
},
});
},
});
4 changes: 2 additions & 2 deletions examples/vue/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from pathlib import Path

from litestar import Litestar
from web.controllers import WebController

from litestar_vite import ViteConfig, VitePlugin

Expand All @@ -15,7 +16,6 @@
assets_dir=Path(here / "web" / "resources" / "assets"),
templates_dir=Path(here / "web" / "templates"),
hot_reload=True,
ssr_enabled=True,
),
)
app = Litestar(plugins=[vite])
app = Litestar(plugins=[vite], route_handlers=[WebController])
Loading

0 comments on commit 990eb91

Please sign in to comment.