Skip to content

Commit

Permalink
Upgrade to Svelte 5 (#55)
Browse files Browse the repository at this point in the history
- Support for runes
- Prevent island error from failing
- Reorganise code for new syntax following migration guide
- Bump @std/* dependencies to 1.x
- Refactor tests
  • Loading branch information
mxdvl authored Dec 5, 2024
1 parent 164795c commit df0bbec
Show file tree
Hide file tree
Showing 12 changed files with 506 additions and 1,016 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- uses: denoland/setup-deno@v1
with:
deno-version: v1.44
deno-version: v2.1

- name: Cache Deno dependencies
uses: actions/cache@v3
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:

- uses: denoland/setup-deno@v1
with:
deno-version: v1.44
deno-version: v2.1

- name: Cache Deno dependencies
uses: actions/cache@v3
Expand All @@ -81,4 +81,4 @@ jobs:

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v2
6 changes: 3 additions & 3 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: denoland/setup-deno@v1
with:
deno-version: v1.44
deno-version: v2.1

- name: Cache Deno dependencies
uses: actions/cache@v3
Expand All @@ -27,9 +27,9 @@ jobs:

- name: Lint
run: deno lint

- name: Test
run: deno test -A --no-check

- name: Check
run: deno check src/**.ts
run: deno check src/**.ts
11 changes: 3 additions & 8 deletions .zed/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@
"format_on_save": {
"external": {
"command": "deno",
"arguments": [
"fmt",
"-"
]
"arguments": ["fmt", "-"]
}
}
},
"TypeScript": {
"language_servers": [
"deno",
"!ts",
"!typescript-language-server",
"!vtsls",
"!eslint",
Expand All @@ -29,10 +27,7 @@
"format_on_save": {
"external": {
"command": "deno",
"arguments": [
"fmt",
"-"
]
"arguments": ["fmt", "-"]
}
}
}
Expand Down
23 changes: 12 additions & 11 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"license": "MIT",
"exports": "./src/build.ts",
"tasks": {
"build": "deno run -A src/build.ts --site_dir src/_site",
"dev": "deno run -A src/build.ts --site_dir src/_site --watch --base=mononykus"
"build": "NODE_ENV=production deno run -A src/build.ts --site_dir src/_site",
"dev": "NODE_ENV=development deno run -A src/build.ts --site_dir src/_site --watch --base=mononykus"
},
"compilerOptions": {
"strict": true,
Expand All @@ -22,14 +22,15 @@
},
"imports": {
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@^0.10.3",
"@std/assert": "jsr:@std/assert@^0.226.0",
"@std/cli": "jsr:@std/cli@^0.224.7",
"@std/fs": "jsr:@std/fs@^0.229.3",
"@std/http": "jsr:@std/http@^0.224.5",
"@std/path": "jsr:@std/path@^0.225.2",
"@std/testing": "jsr:@std/testing@^0.225.2",
"esbuild": "npm:[email protected]",
"prettier": "npm:[email protected]",
"svelte": "npm:[email protected]"
"@std/assert": "jsr:@std/assert@^1.0.8",
"@std/async": "jsr:@std/async@^1.0.9",
"@std/cli": "jsr:@std/cli@^1.0.7",
"@std/fs": "jsr:@std/fs@^1.0.6",
"@std/http": "jsr:@std/http@^1.0.11",
"@std/path": "jsr:@std/path@^1.0.8",
"@std/testing": "jsr:@std/testing@^1.0.5",
"esbuild": "npm:esbuild@~0.24.0",
"prettier": "npm:prettier@^3.0.2",
"svelte": "npm:[email protected]"
}
}
Loading

0 comments on commit df0bbec

Please sign in to comment.