diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
new file mode 100644
index 0000000..934c35b
--- /dev/null
+++ b/.github/actions/setup/action.yml
@@ -0,0 +1,34 @@
+name: Setup
+description: Install Node, pnpm, Swift + Wasm SDK, binaryen and project dependencies
+
+runs:
+ using: composite
+ steps:
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v6
+ with:
+ version: 9
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v7
+ with:
+ node-version: 24
+ cache: "pnpm"
+
+ - uses: swift-actions/setup-swift@v3
+ with:
+ swift-version: "6.4.2"
+ skip-verify-signature: true
+
+ - name: Install Swift SDK for WebAssembly
+ shell: bash
+ run: swift sdk install https://download.swift.org/swift-6.4.2-release/wasm-sdk/swift-6.4.2-RELEASE/swift-6.4.2-RELEASE_wasm.artifactbundle.tar.gz --checksum 83baca83553f8c443cda7b84800912e6e709c3acd2e7ebf277794ca5836c0da5
+
+ - name: Install dependencies
+ shell: bash
+ run: swift package resolve --package-path swift && pnpm install --frozen-lockfile
+
+ - name: Install wasm-opt
+ uses: phi-ag/setup-binaryen@v1
+ with:
+ version: "133"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..a1f2d18
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,41 @@
+name: CI
+
+on:
+ pull_request:
+ branches: [main]
+ workflow_dispatch:
+
+jobs:
+ format:
+ runs-on: ubuntu-24.04
+ timeout-minutes: 5
+ steps:
+ - uses: actions/checkout@v7
+
+ - uses: pnpm/action-setup@v6
+ with:
+ version: 9
+
+ - uses: actions/setup-node@v7
+ with:
+ node-version: 24
+ cache: "pnpm"
+
+ - run: pnpm install --frozen-lockfile
+ - run: pnpm run format:check
+
+ format-swift:
+ runs-on: ubuntu-24.04
+ timeout-minutes: 5
+ container: "swift:6.4.2"
+ steps:
+ - uses: actions/checkout@v7
+ - run: swift format lint -rps .
+
+ build:
+ runs-on: ubuntu-24.04
+ timeout-minutes: 20
+ steps:
+ - uses: actions/checkout@v7
+ - uses: ./.github/actions/setup
+ - run: pnpm run build
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 7a3d1c1..c7e2b6b 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -14,32 +14,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v7
- - name: Setup pnpm
- uses: pnpm/action-setup@v6
- with:
- version: 9
-
- - name: Setup Node.js
- uses: actions/setup-node@v7
- with:
- node-version: 24
- cache: "pnpm"
-
- - uses: swift-actions/setup-swift@v3
- with:
- swift-version: "6.4.2"
- skip-verify-signature: true
-
- - name: Install Swift SDK for WebAssembly
- run: swift sdk install https://download.swift.org/swift-6.4.2-release/wasm-sdk/swift-6.4.2-RELEASE/swift-6.4.2-RELEASE_wasm.artifactbundle.tar.gz --checksum 83baca83553f8c443cda7b84800912e6e709c3acd2e7ebf277794ca5836c0da5
-
- - name: Install dependencies
- run: swift package resolve --package-path swift && pnpm install
-
- - name: Install wasm-opt
- uses: phi-ag/setup-binaryen@v1
- with:
- version: "133"
+ - uses: ./.github/actions/setup
- name: Build VitePress site
run: pnpm run build
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 0000000..b64ed42
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,3 @@
+.build/
+public/
+pnpm-lock.yaml
diff --git a/.swift-format b/.swift-format
new file mode 100644
index 0000000..8236957
--- /dev/null
+++ b/.swift-format
@@ -0,0 +1,63 @@
+{
+ "version": 1,
+ "indentation": {
+ "spaces": 4
+ },
+ "tabWidth": 4,
+ "fileScopedDeclarationPrivacy": {
+ "accessLevel": "private"
+ },
+ "spacesAroundRangeFormationOperators": false,
+ "indentConditionalCompilationBlocks": false,
+ "indentSwitchCaseLabels": false,
+ "lineBreakAroundMultilineExpressionChainComponents": false,
+ "lineBreakBeforeControlFlowKeywords": false,
+ "lineBreakBeforeEachArgument": true,
+ "lineBreakBeforeEachGenericRequirement": true,
+ "lineLength": 140,
+ "maximumBlankLines": 1,
+ "respectsExistingLineBreaks": true,
+ "prioritizeKeepingFunctionOutputTogether": true,
+ "multiElementCollectionTrailingCommas": true,
+ "rules": {
+ "AllPublicDeclarationsHaveDocumentation": false,
+ "AlwaysUseLiteralForEmptyCollectionInit": false,
+ "AlwaysUseLowerCamelCase": false,
+ "AmbiguousTrailingClosureOverload": true,
+ "BeginDocumentationCommentWithOneLineSummary": false,
+ "DoNotUseSemicolons": false,
+ "DontRepeatTypeInStaticProperties": true,
+ "FileScopedDeclarationPrivacy": true,
+ "FullyIndirectEnum": true,
+ "GroupNumericLiterals": true,
+ "IdentifiersMustBeASCII": true,
+ "NeverForceUnwrap": false,
+ "NeverUseForceTry": false,
+ "NeverUseImplicitlyUnwrappedOptionals": false,
+ "NoAccessLevelOnExtensionDeclaration": false,
+ "NoAssignmentInExpressions": true,
+ "NoBlockComments": true,
+ "NoCasesWithOnlyFallthrough": true,
+ "NoEmptyTrailingClosureParentheses": true,
+ "NoLabelsInCasePatterns": true,
+ "NoLeadingUnderscores": false,
+ "NoParensAroundConditions": true,
+ "NoVoidReturnOnFunctionSignature": true,
+ "OmitExplicitReturns": true,
+ "OneCasePerLine": true,
+ "OneVariableDeclarationPerLine": true,
+ "OnlyOneTrailingClosureArgument": true,
+ "OrderedImports": true,
+ "ReplaceForEachWithForLoop": true,
+ "ReturnVoidInsteadOfEmptyTuple": true,
+ "UseEarlyExits": false,
+ "UseExplicitNilCheckInConditions": false,
+ "UseLetInEveryBoundCaseVariable": false,
+ "UseShorthandTypeNames": true,
+ "UseSingleLinePropertyGetter": false,
+ "UseSynthesizedInitializer": false,
+ "UseTripleSlashForDocumentationComments": true,
+ "UseWhereClausesInForLoops": false,
+ "ValidateDocumentationComments": false
+ }
+}
diff --git a/.vitepress/theme/swift-snippets.css b/.vitepress/theme/swift-snippets.css
index 294aaf1..5155819 100644
--- a/.vitepress/theme/swift-snippets.css
+++ b/.vitepress/theme/swift-snippets.css
@@ -28,7 +28,7 @@ elementary-snippet button {
transition: background-color 0.2s ease;
}
-elementary-snippet button+button {
+elementary-snippet button + button {
margin-left: 8px;
}
@@ -78,4 +78,4 @@ elementary-snippet input:focus-visible {
.dark elementary-snippet input:focus,
.dark elementary-snippet input:focus-visible {
box-shadow: 0 0 0 2px color-mix(in srgb, var(--vp-c-brand-1) 76%, transparent);
-}
\ No newline at end of file
+}
diff --git a/guide/animation/animate-layout-and-css.md b/guide/animation/animate-layout-and-css.md
index be48cbe..1118a34 100644
--- a/guide/animation/animate-layout-and-css.md
+++ b/guide/animation/animate-layout-and-css.md
@@ -1,6 +1,6 @@
# Animate changes to layout and CSS values
-ElementaryUI comes with a ***FLIP*** animation system that enables automatic
+ElementaryUI comes with a _**FLIP**_ animation system that enables automatic
animation of essentially any visible change to your view's layout or appearance.
**FLIP** (First, Last, Invert, Play) is a technique that captures the geometry or appearance of an element before and after a change, then animates the difference. A view can opt-in to FLIP handling with modifiers, and any [transaction with an animation](transactions-and-animations.md#transactions) will be animated accordingly.
@@ -16,11 +16,14 @@ Whenever this container's children are added, moved, or removed with an animatio
---
+
::: warning 🚧 🚧 🚧
FLIP features are not yet fully implemented.
Planned are:
-+ animate layout changes when value changes (independent of children)
-+ animate arbitrary CSS properties when value changes
-+ `matchedGeometryEffect` feature by providing a stable identifier for FLIP
-:::
\ No newline at end of file
+
+- animate layout changes when value changes (independent of children)
+- animate arbitrary CSS properties when value changes
+- `matchedGeometryEffect` feature by providing a stable identifier for FLIP
+
+:::
diff --git a/guide/animation/transactions-and-animations.md b/guide/animation/transactions-and-animations.md
index 5ebec31..a4f2d89 100644
--- a/guide/animation/transactions-and-animations.md
+++ b/guide/animation/transactions-and-animations.md
@@ -1,4 +1,3 @@
-
# Transactions and Animations
ElementaryUI's animation system is built on the concept of **transactions** - discrete units of change that flow through your application.
@@ -8,11 +7,11 @@ If you are familiar with SwiftUI's animation system, you should feel right at ho
ElementaryUI supports three kinds of animatable views.
-| Type | Description |
-|------|-------------|
-| [Built-in modifiers](animatable-modifiers.md) | Modifiers like `ElementaryUI.View.opacity(_:)` or `ElementaryUI.View.offset(x:y:)` are animatable. |
+| Type | Description |
+| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
+| [Built-in modifiers](animatable-modifiers.md) | Modifiers like `ElementaryUI.View.opacity(_:)` or `ElementaryUI.View.offset(x:y:)` are animatable. |
| [Layout and CSS changes](animate-layout-and-css.md) | Modifiers like `ElementaryUI.View.animateContainerLayout(animateContainerSize:)` enable automatic FLIP animations. |
-| [Custom animations](custom-animations.md) | Views that implement the `ElementaryUI.Animatable` protocol can define custom animations. |
+| [Custom animations](custom-animations.md) | Views that implement the `ElementaryUI.Animatable` protocol can define custom animations. |
::: info
While these methods differ in how the animations are performed under the hood, they all participate in the same transaction-based animation system.
@@ -20,14 +19,14 @@ While these methods differ in how the animations are performed under the hood, t
## Transactions
-Every [state change](../essentials/state-and-reactivity.md) in ElementaryUI happens within a `ElementaryUI.Transaction`. A transaction represents a single logical update that may affect multiple views throughout your hierarchy.
+Every [state change](../essentials/state-and-reactivity.md) in ElementaryUI happens within a `ElementaryUI.Transaction`. A transaction represents a single logical update that may affect multiple views throughout your hierarchy.
Animatable views only describe what can be animated, but not when or how: This part is specified by setting an `ElementaryUI.Animation` for a transaction.
You can set an `ElementaryUI.Animation` in the following ways:
-+ Modify state within a `ElementaryUI.withAnimation(_:_:)` block
-+ Use the `ElementaryUI.View.animation(_:value:)` modifier on a view
+- Modify state within a `ElementaryUI.withAnimation(_:_:)` block
+- Use the `ElementaryUI.View.animation(_:value:)` modifier on a view
Here is an example of how to use `withAnimation`:
@@ -41,11 +40,11 @@ The `ElementaryUI.Animation` type is used to describe how the [animatable values
There are three types of animation:
-| Type | Description |
-|------|-------------|
-| **Springs** | Use the built-in spring animations like `ElementaryUI.Animation.snappy`, `ElementaryUI.Animation.smooth`, and `ElementaryUI.Animation.bouncy`, or define your own `ElementaryUI.Spring`. |
-| **Unit Curves** | Use the built-in animations like `ElementaryUI.Animation.linear` and `ElementaryUI.Animation.easeInOut` or define your own `ElementaryUI.UnitCurve`. |
-| **Custom** | Define your own animation by implementing the `ElementaryUI.CustomAnimation` protocol. |
+| Type | Description |
+| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| **Springs** | Use the built-in spring animations like `ElementaryUI.Animation.snappy`, `ElementaryUI.Animation.smooth`, and `ElementaryUI.Animation.bouncy`, or define your own `ElementaryUI.Spring`. |
+| **Unit Curves** | Use the built-in animations like `ElementaryUI.Animation.linear` and `ElementaryUI.Animation.easeInOut` or define your own `ElementaryUI.UnitCurve`. |
+| **Custom** | Define your own animation by implementing the `ElementaryUI.CustomAnimation` protocol. |
### Modifying animations
@@ -53,6 +52,6 @@ You can further control how your animations behave by using modifiers like `Elem
### Interrupting and stacking animations
-ElementaryUI's animation system preserves velocity when animations are interrupted, meaning new animations inherit the current momentum rather than starting from zero - this is especially noticeable with spring animations that feel natural and physics-based.
+ElementaryUI's animation system preserves velocity when animations are interrupted, meaning new animations inherit the current momentum rather than starting from zero - this is especially noticeable with spring animations that feel natural and physics-based.
Additionally, animations stack seamlessly by default: the system automatically ensures smooth motion even when animations overlap or are triggered at different times.
diff --git a/guide/dom-interaction/html-elements.md b/guide/dom-interaction/html-elements.md
index 46b23ae..cc5edd7 100644
--- a/guide/dom-interaction/html-elements.md
+++ b/guide/dom-interaction/html-elements.md
@@ -52,4 +52,4 @@ div {
## Custom Elements
-If you want to use ElementaryUI to create your own custom elements which can be integrated in existing web projects, see [Web Components](../topics/web-components.md).
\ No newline at end of file
+If you want to use ElementaryUI to create your own custom elements which can be integrated in existing web projects, see [Web Components](../topics/web-components.md).
diff --git a/guide/essentials/lifecycle-events.md b/guide/essentials/lifecycle-events.md
index 0e7b2b0..441591a 100644
--- a/guide/essentials/lifecycle-events.md
+++ b/guide/essentials/lifecycle-events.md
@@ -76,4 +76,3 @@ struct MyView {
}
}
```
-
diff --git a/guide/essentials/list-rendering.md b/guide/essentials/list-rendering.md
index 04b6c19..97aacd2 100644
--- a/guide/essentials/list-rendering.md
+++ b/guide/essentials/list-rendering.md
@@ -12,7 +12,6 @@ Use `ElementaryUI.ForEach` when you need a stable id for your list items (reorde
For simple cases where a stable identity does not matter, you can also just iterate a collection.
-
```swift
div {
for item in items {
@@ -20,4 +19,3 @@ div {
}
}
```
-
diff --git a/guide/essentials/state-and-reactivity.md b/guide/essentials/state-and-reactivity.md
index a5a1f63..26412f4 100644
--- a/guide/essentials/state-and-reactivity.md
+++ b/guide/essentials/state-and-reactivity.md
@@ -39,4 +39,3 @@ You can use the familiar `$` syntax on `ElementaryUI.State` variables to create
<<< @/swift/Sources/Snippets/BindingCounterButton.swift#snippet
-
diff --git a/load-snippets.ts b/load-snippets.ts
index 7428e97..5e8d2dc 100644
--- a/load-snippets.ts
+++ b/load-snippets.ts
@@ -1,3 +1,3 @@
if (!import.meta.env.SSR) {
- import("virtual:swift-wasm?js").then(i => i.init());
+ import("virtual:swift-wasm?js").then((i) => i.init());
}
diff --git a/package.json b/package.json
index 97518a3..b1d89b9 100644
--- a/package.json
+++ b/package.json
@@ -6,12 +6,15 @@
"devDependencies": {
"@elementary-swift/vite-plugin-swift-wasm": "~0.3.0",
"markdown-it": "^14.3.0",
+ "prettier": "^3.10.0",
"vitepress": "2.0.0-alpha.19",
"vue": "^3.5.41"
},
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
- "preview": "vitepress preview"
+ "preview": "vitepress preview",
+ "format": "prettier --write .",
+ "format:check": "prettier --check ."
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1696d3e..28dacba 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -18,6 +18,9 @@ importers:
markdown-it:
specifier: ^14.3.0
version: 14.3.0
+ prettier:
+ specifier: ^3.10.0
+ version: 3.10.0
vitepress:
specifier: 2.0.0-alpha.19
version: 2.0.0-alpha.19(esbuild@0.27.2)(postcss@8.5.26)
@@ -685,6 +688,11 @@ packages:
resolution: {integrity: sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==}
engines: {node: ^10 || ^12 || >=14}
+ prettier@3.10.0:
+ resolution: {integrity: sha512-mBi4765LgjO1PFjlEs7pUeK0nb1bw71c+N4/ItfeUWNdY5cV2pRKaFpbbFRYmDJMO+5ZwzGxHRqHxFZna7iv5w==}
+ engines: {node: '>=14'}
+ hasBin: true
+
property-information@7.2.0:
resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==}
@@ -1360,6 +1368,8 @@ snapshots:
picocolors: 1.1.1
source-map-js: 1.2.1
+ prettier@3.10.0: {}
+
property-information@7.2.0: {}
punycode.js@2.3.1: {}
diff --git a/privacy.md b/privacy.md
index 84543c6..9e675b0 100644
--- a/privacy.md
+++ b/privacy.md
@@ -10,4 +10,4 @@ We also use **Cloudflare Web Analytics** to obtain anonymous, aggregated statist
Cloudflare Privacy Policy: https://www.cloudflare.com/privacypolicy/
-We do not sell data, we do not share data with advertisers, and we do not create user profiles.
\ No newline at end of file
+We do not sell data, we do not share data with advertisers, and we do not create user profiles.
diff --git a/swift/Package.swift b/swift/Package.swift
index 40b60f5..c99648b 100644
--- a/swift/Package.swift
+++ b/swift/Package.swift
@@ -2,23 +2,25 @@
import PackageDescription
let package = Package(
- name: "elementary-web-app",
- platforms: [.macOS(.v26)],
- dependencies: [
- .package(
- url: "https://github.com/elementary-swift/elementary-ui.git", .upToNextMinor(from: "0.9.1")),
- .package(url: "https://github.com/swiftwasm/JavaScriptKit.git", from: "0.63.0"),
- ],
- targets: [
- .executableTarget(
- name: "Snippets",
- dependencies: [
- .product(name: "ElementaryUI", package: "elementary-ui"),
- .product(name: "ElementaryWebComponents", package: "elementary-ui"),
- ],
- swiftSettings: [
- .swiftLanguageMode(.v5)
- ],
- )
- ]
+ name: "elementary-web-app",
+ platforms: [.macOS(.v26)],
+ dependencies: [
+ .package(
+ url: "https://github.com/elementary-swift/elementary-ui.git",
+ .upToNextMinor(from: "0.9.1")
+ ),
+ .package(url: "https://github.com/swiftwasm/JavaScriptKit.git", from: "0.63.0"),
+ ],
+ targets: [
+ .executableTarget(
+ name: "Snippets",
+ dependencies: [
+ .product(name: "ElementaryUI", package: "elementary-ui"),
+ .product(name: "ElementaryWebComponents", package: "elementary-ui"),
+ ],
+ swiftSettings: [
+ .swiftLanguageMode(.v5)
+ ],
+ )
+ ]
)
diff --git a/swift/Sources/Snippets/run.swift b/swift/Sources/Snippets/run.swift
index 415d383..056bdf3 100644
--- a/swift/Sources/Snippets/run.swift
+++ b/swift/Sources/Snippets/run.swift
@@ -5,64 +5,64 @@ import Reactivity
@main
struct Run {
- static func main() throws {
- try CustomElements.define("elementary-snippet", SnippetContainerView.self)
- try CustomElements.define("wonky-label", WonkyLabel.self, shadow: .open)
- }
+ static func main() throws {
+ try CustomElements.define("elementary-snippet", SnippetContainerView.self)
+ try CustomElements.define("wonky-label", WonkyLabel.self, shadow: .open)
+ }
}
@CustomElement
struct SnippetContainerView {
- @Attribute var file: SnippetFile?
+ @Attribute var file: SnippetFile?
- var body: some View {
- switch file {
- case LoveCounter.file:
- LoveCounter()
- case TinyCounter.file:
- TinyCounter()
- case IfView.file:
- IfView()
- case ListStrings.file:
- ListStrings()
- case ReactiveCounter.file:
- ReactiveCounterView()
- case BindingCounterButton.file:
- BindingCounterButton()
- case MouseTracker.file:
- MouseTracker()
- case FocusStateForm.file:
- FocusStateForm()
- case WithAnimationView.file:
- WithAnimationView()
- case AnimateLayoutView.file:
- AnimateLayoutView()
- case ContinuousPhaseAnimatorView.file:
- ContinuousPhaseAnimatorView()
- case TriggeredPhaseAnimatorView.file:
- TriggeredPhaseAnimatorView()
- default:
- "Unknown snippet \(file?.value ?? "")"
+ var body: some View {
+ switch file {
+ case LoveCounter.file:
+ LoveCounter()
+ case TinyCounter.file:
+ TinyCounter()
+ case IfView.file:
+ IfView()
+ case ListStrings.file:
+ ListStrings()
+ case ReactiveCounter.file:
+ ReactiveCounterView()
+ case BindingCounterButton.file:
+ BindingCounterButton()
+ case MouseTracker.file:
+ MouseTracker()
+ case FocusStateForm.file:
+ FocusStateForm()
+ case WithAnimationView.file:
+ WithAnimationView()
+ case AnimateLayoutView.file:
+ AnimateLayoutView()
+ case ContinuousPhaseAnimatorView.file:
+ ContinuousPhaseAnimatorView()
+ case TriggeredPhaseAnimatorView.file:
+ TriggeredPhaseAnimatorView()
+ default:
+ "Unknown snippet \(file?.value ?? "")"
+ }
}
- }
}
protocol SnippetContentView {
- static var file: SnippetFile { get }
+ static var file: SnippetFile { get }
}
struct SnippetFile: Equatable, ExpressibleByStringLiteral, ExpressibleByAttributeValue {
- var value: String
+ var value: String
- init(stringLiteral value: String) {
- self.value = value
- }
+ init(stringLiteral value: String) {
+ self.value = value
+ }
- init(attributeValue value: String) {
- self.value = value
- }
+ init(attributeValue value: String) {
+ self.value = value
+ }
- static func == (lhs: SnippetFile, rhs: SnippetFile) -> Bool {
- lhs.value.utf8.elementsEqual(rhs.value.utf8)
- }
+ static func == (lhs: SnippetFile, rhs: SnippetFile) -> Bool {
+ lhs.value.utf8.elementsEqual(rhs.value.utf8)
+ }
}
diff --git a/tsconfig.json b/tsconfig.json
index d3c947a..ca097da 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,23 +1,18 @@
{
- "compilerOptions": {
- "target": "ES2022",
- "module": "ESNext",
- "moduleResolution": "bundler",
- "lib": [
- "ES2022",
- "DOM"
- ],
- "isolatedModules": true,
- "strict": true,
- "noEmit": true,
- "types": [
- "vitepress/client",
- "@elementary-swift/vite-plugin-swift-wasm/client"
- ]
- },
- "vueCompilerOptions": {
- "vitePressExtensions": [
- ".md"
- ]
- },
-}
\ No newline at end of file
+ "compilerOptions": {
+ "target": "ES2022",
+ "module": "ESNext",
+ "moduleResolution": "bundler",
+ "lib": ["ES2022", "DOM"],
+ "isolatedModules": true,
+ "strict": true,
+ "noEmit": true,
+ "types": [
+ "vitepress/client",
+ "@elementary-swift/vite-plugin-swift-wasm/client"
+ ]
+ },
+ "vueCompilerOptions": {
+ "vitePressExtensions": [".md"]
+ }
+}
diff --git a/wrangler.jsonc b/wrangler.jsonc
index 51998fb..db43a97 100644
--- a/wrangler.jsonc
+++ b/wrangler.jsonc
@@ -1,7 +1,7 @@
{
- "name": "elementary-codes",
- "compatibility_date": "2026-01-02",
- "assets": {
- "directory": "./.vitepress/dist"
- }
-}
\ No newline at end of file
+ "name": "elementary-codes",
+ "compatibility_date": "2026-01-02",
+ "assets": {
+ "directory": "./.vitepress/dist",
+ },
+}