create-rsbuild 1.0.3 → 1.0.4
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 +5 -1
- package/package.json +1 -1
- package/template-svelte-js/package.json +1 -1
- package/template-svelte-js/src/index.js +5 -1
- package/template-svelte-ts/package.json +1 -1
- package/template-svelte-ts/src/index.ts +5 -1
- package/template-svelte4-js/package.json +17 -0
- package/template-svelte4-js/rsbuild.config.mjs +6 -0
- package/template-svelte4-js/src/App.svelte +28 -0
- package/template-svelte4-js/src/index.css +6 -0
- package/template-svelte4-js/src/index.js +8 -0
- package/template-svelte4-ts/package.json +20 -0
- package/template-svelte4-ts/rsbuild.config.ts +6 -0
- package/template-svelte4-ts/src/App.svelte +28 -0
- package/template-svelte4-ts/src/env.d.ts +2 -0
- package/template-svelte4-ts/src/index.css +6 -0
- package/template-svelte4-ts/src/index.ts +8 -0
- package/template-svelte4-ts/tsconfig.json +19 -0
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-svelte4-js",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "rsbuild dev --open",
|
|
7
|
+
"build": "rsbuild build",
|
|
8
|
+
"preview": "rsbuild preview"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"svelte": "^4.2.19"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@rsbuild/core": "^1.0.13",
|
|
15
|
+
"@rsbuild/plugin-svelte": "^1.0.1"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<main>
|
|
2
|
+
<div class="content">
|
|
3
|
+
<h1>Rsbuild with Svelte</h1>
|
|
4
|
+
<p>Start building amazing things with Rsbuild.</p>
|
|
5
|
+
</div>
|
|
6
|
+
</main>
|
|
7
|
+
|
|
8
|
+
<style>
|
|
9
|
+
.content {
|
|
10
|
+
display: flex;
|
|
11
|
+
min-height: 100vh;
|
|
12
|
+
line-height: 1.1;
|
|
13
|
+
text-align: center;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.content h1 {
|
|
19
|
+
font-size: 3.6rem;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.content p {
|
|
24
|
+
font-size: 1.2rem;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
opacity: 0.5;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-svelte4-ts",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "rsbuild dev --open",
|
|
7
|
+
"build": "rsbuild build",
|
|
8
|
+
"preview": "rsbuild preview",
|
|
9
|
+
"svelte-check": "svelte-check --tsconfig ./tsconfig.json"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"svelte": "^4.2.19"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@rsbuild/core": "^1.0.13",
|
|
16
|
+
"@rsbuild/plugin-svelte": "^1.0.1",
|
|
17
|
+
"svelte-check": "^4.0.5",
|
|
18
|
+
"typescript": "^5.6.3"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<main>
|
|
2
|
+
<div class="content">
|
|
3
|
+
<h1>Rsbuild with Svelte</h1>
|
|
4
|
+
<p>Start building amazing things with Rsbuild.</p>
|
|
5
|
+
</div>
|
|
6
|
+
</main>
|
|
7
|
+
|
|
8
|
+
<style>
|
|
9
|
+
.content {
|
|
10
|
+
display: flex;
|
|
11
|
+
min-height: 100vh;
|
|
12
|
+
line-height: 1.1;
|
|
13
|
+
text-align: center;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.content h1 {
|
|
19
|
+
font-size: 3.6rem;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.content p {
|
|
24
|
+
font-size: 1.2rem;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
opacity: 0.5;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"lib": ["DOM", "ES2020"],
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"noEmit": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
// svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
|
|
10
|
+
// to enforce using `import type` instead of `import` for Types.
|
|
11
|
+
"verbatimModuleSyntax": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"moduleResolution": "bundler",
|
|
15
|
+
"useDefineForClassFields": true,
|
|
16
|
+
"allowImportingTsExtensions": true
|
|
17
|
+
},
|
|
18
|
+
"include": ["src"]
|
|
19
|
+
}
|