create-swift-rust 0.9.8 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -465,7 +465,7 @@ async function askQuestions(flags, positional) {
|
|
|
465
465
|
// Fallback pin used when the npm registry can't be reached at scaffold time.
|
|
466
466
|
// Kept in sync with the current swift-rust release so a generated project never
|
|
467
467
|
// advertises an ancient version. `^` still lets it float forward within the major.
|
|
468
|
-
const SWIFT_RUST_FALLBACK = "^1.
|
|
468
|
+
const SWIFT_RUST_FALLBACK = "^1.12.0";
|
|
469
469
|
// Resolve the newest published swift-rust version so the scaffolded package.json
|
|
470
470
|
// reflects reality (e.g. ^1.10.5) instead of a stale literal like ^1.0.0. A caret
|
|
471
471
|
// range already installs the latest matching release, but showing the real number
|
|
@@ -811,7 +811,7 @@ export default function Home() {
|
|
|
811
811
|
Read the docs →
|
|
812
812
|
</a>
|
|
813
813
|
<a
|
|
814
|
-
href="https://github.com/
|
|
814
|
+
href="https://github.com/multivrs-space/swift-rust"
|
|
815
815
|
className={buttonVariants({ variant: "outline" })}
|
|
816
816
|
>
|
|
817
817
|
GitHub
|
|
@@ -854,7 +854,7 @@ export default function Home() {
|
|
|
854
854
|
<a href="https://docs-swift-rust.vercel.app/">Read the docs</a>
|
|
855
855
|
</Button>
|
|
856
856
|
<Button asChild variant="outline">
|
|
857
|
-
<a href="https://github.com/
|
|
857
|
+
<a href="https://github.com/multivrs-space/swift-rust">GitHub</a>
|
|
858
858
|
</Button>
|
|
859
859
|
</div>
|
|
860
860
|
</div>
|
|
@@ -985,7 +985,7 @@ export default [
|
|
|
985
985
|
}
|
|
986
986
|
const readme = `# ${projectName}
|
|
987
987
|
|
|
988
|
-
Built with [swift-rust](https://swift-rust.
|
|
988
|
+
Built with [swift-rust](https://swift-rust.multivrs.space/) — the React framework powered with Rust + Bun. 10x faster than Next.js.
|
|
989
989
|
|
|
990
990
|
## Scripts
|
|
991
991
|
|
|
@@ -1006,7 +1006,7 @@ Built with [swift-rust](https://swift-rust.dev) — the React framework powered
|
|
|
1006
1006
|
## Learn more
|
|
1007
1007
|
|
|
1008
1008
|
- [Documentation](https://docs-swift-rust.vercel.app/)
|
|
1009
|
-
- [Examples](https://github.com/
|
|
1009
|
+
- [Examples](https://github.com/multivrs-space/swift-rust/tree/main/examples)
|
|
1010
1010
|
- [Discord](https://discord.gg/swift-rust)
|
|
1011
1011
|
|
|
1012
1012
|
## Deploy to Vercel
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-swift-rust",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.9",
|
|
4
4
|
"description": "Create a new swift-rust project from a template.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"homepage": "https://swift-rust.
|
|
6
|
+
"homepage": "https://swift-rust.multivrs.space/",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/
|
|
9
|
+
"url": "https://github.com/multivrs-space/swift-rust.git",
|
|
10
10
|
"directory": "packages/create-swift-rust"
|
|
11
11
|
},
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/multivrs-space/swift-rust/issues"
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
16
|
"main": "./dist/index.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# __PROJECT_NAME__
|
|
2
2
|
|
|
3
|
-
A [swift-rust](https://github.com/
|
|
3
|
+
A [swift-rust](https://github.com/multivrs-space/swift-rust) app — the full demo
|
|
4
4
|
starter: blog, dashboard, API routes, and the Image / PDF / Video / Font
|
|
5
5
|
components wired up.
|
|
6
6
|
|
|
@@ -12,12 +12,19 @@ bun run dev
|
|
|
12
12
|
|
|
13
13
|
Open [http://localhost:3000](http://localhost:3000).
|
|
14
14
|
|
|
15
|
-
## Build
|
|
15
|
+
## Build & deploy
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
bun run build # →
|
|
18
|
+
bun run build # → dist/ for Multivrs (default)
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
- **Multivrs** (default): `bun run build` writes `dist/multivrs-build.json`,
|
|
22
|
+
a self-contained `dist/server.mjs` and `dist/static/`. Run it locally with
|
|
23
|
+
`cd dist && PORT=8080 bun server.mjs`.
|
|
24
|
+
- **Vercel**: import the repo on Vercel. Vercel sets `VERCEL=1`, so the same
|
|
25
|
+
`bun run build` emits `.vercel/output`. Locally:
|
|
26
|
+
`bun run build --target vercel`.
|
|
27
|
+
|
|
21
28
|
## Structure
|
|
22
29
|
|
|
23
30
|
```
|
|
@@ -23,7 +23,7 @@ function swiftRustVersion(): string {
|
|
|
23
23
|
return "0.0.0";
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
const GITHUB = process.env.SWIFT_RUST_GITHUB_URL ?? "https://github.com/
|
|
26
|
+
const GITHUB = process.env.SWIFT_RUST_GITHUB_URL ?? "https://github.com/multivrs-space/swift-rust";
|
|
27
27
|
|
|
28
28
|
export const siteConfig = {
|
|
29
29
|
/** Marketing / main site. */
|