create-rsbuild 2.0.3 → 2.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 +10 -0
- package/package.json +6 -6
- package/template-common/AGENTS.md +0 -14
- package/template-common/README.md +0 -36
- package/template-common/gitignore +0 -16
- package/template-common/public/favicon.png +0 -0
- package/template-lit-js/package.json +0 -17
- package/template-lit-js/rsbuild.config.js +0 -14
- package/template-lit-js/src/index.css +0 -6
- package/template-lit-js/src/index.html +0 -7
- package/template-lit-js/src/index.js +0 -4
- package/template-lit-js/src/my-element.js +0 -34
- package/template-lit-ts/package.json +0 -18
- package/template-lit-ts/rsbuild.config.ts +0 -13
- package/template-lit-ts/src/env.d.ts +0 -1
- package/template-lit-ts/src/index.css +0 -6
- package/template-lit-ts/src/index.html +0 -7
- package/template-lit-ts/src/index.ts +0 -4
- package/template-lit-ts/src/my-element.ts +0 -34
- package/template-lit-ts/tsconfig.json +0 -22
- package/template-preact-js/package.json +0 -18
- package/template-preact-js/rsbuild.config.js +0 -8
- package/template-preact-js/src/App.css +0 -26
- package/template-preact-js/src/App.jsx +0 -12
- package/template-preact-js/src/index.jsx +0 -4
- package/template-preact-ts/package.json +0 -19
- package/template-preact-ts/rsbuild.config.ts +0 -7
- package/template-preact-ts/src/App.css +0 -26
- package/template-preact-ts/src/App.tsx +0 -12
- package/template-preact-ts/src/env.d.ts +0 -1
- package/template-preact-ts/src/index.tsx +0 -7
- package/template-preact-ts/tsconfig.json +0 -27
- package/template-react-compiler/react-js/package.json +0 -6
- package/template-react-compiler/react-js/rsbuild.config.js +0 -18
- package/template-react-compiler/react-ts/package.json +0 -6
- package/template-react-compiler/react-ts/rsbuild.config.ts +0 -17
- package/template-react-js/package.json +0 -19
- package/template-react-js/rsbuild.config.js +0 -8
- package/template-react-js/src/App.css +0 -26
- package/template-react-js/src/App.jsx +0 -12
- package/template-react-js/src/index.jsx +0 -10
- package/template-react-ts/package.json +0 -22
- package/template-react-ts/rsbuild.config.ts +0 -7
- package/template-react-ts/src/App.css +0 -26
- package/template-react-ts/src/App.tsx +0 -12
- package/template-react-ts/src/env.d.ts +0 -11
- package/template-react-ts/src/index.tsx +0 -13
- package/template-react-ts/tsconfig.json +0 -22
- package/template-rstest/AGENTS.md +0 -10
- package/template-rstest/react-js/package.json +0 -14
- package/template-rstest/react-js/rstest.config.js +0 -8
- package/template-rstest/react-js/tests/index.test.jsx +0 -9
- package/template-rstest/react-js/tests/rstest.setup.js +0 -4
- package/template-rstest/react-ts/package.json +0 -14
- package/template-rstest/react-ts/rstest.config.ts +0 -8
- package/template-rstest/react-ts/tests/index.test.tsx +0 -9
- package/template-rstest/react-ts/tests/rstest.setup.ts +0 -4
- package/template-rstest/react-ts/tests/tsconfig.json +0 -7
- package/template-rstest/vanilla-js/package.json +0 -13
- package/template-rstest/vanilla-js/rstest.config.js +0 -8
- package/template-rstest/vanilla-js/tests/dom.test.js +0 -12
- package/template-rstest/vanilla-js/tests/rstest.setup.js +0 -4
- package/template-rstest/vanilla-ts/package.json +0 -13
- package/template-rstest/vanilla-ts/rstest.config.ts +0 -8
- package/template-rstest/vanilla-ts/tests/dom.test.ts +0 -12
- package/template-rstest/vanilla-ts/tests/rstest.setup.ts +0 -4
- package/template-rstest/vanilla-ts/tests/tsconfig.json +0 -7
- package/template-rstest/vue-js/package.json +0 -14
- package/template-rstest/vue-js/rstest.config.js +0 -8
- package/template-rstest/vue-js/tests/index.test.js +0 -9
- package/template-rstest/vue-js/tests/rstest.setup.js +0 -4
- package/template-rstest/vue-ts/package.json +0 -14
- package/template-rstest/vue-ts/rstest.config.ts +0 -8
- package/template-rstest/vue-ts/tests/index.test.ts +0 -9
- package/template-rstest/vue-ts/tests/rstest.setup.ts +0 -4
- package/template-rstest/vue-ts/tests/tsconfig.json +0 -7
- package/template-solid-js/package.json +0 -19
- package/template-solid-js/rsbuild.config.js +0 -14
- package/template-solid-js/src/App.css +0 -26
- package/template-solid-js/src/App.jsx +0 -12
- package/template-solid-js/src/index.jsx +0 -4
- package/template-solid-ts/package.json +0 -20
- package/template-solid-ts/rsbuild.config.ts +0 -13
- package/template-solid-ts/src/App.css +0 -26
- package/template-solid-ts/src/App.tsx +0 -12
- package/template-solid-ts/src/env.d.ts +0 -1
- package/template-solid-ts/src/index.tsx +0 -7
- package/template-solid-ts/tsconfig.json +0 -23
- package/template-svelte-js/.browserslistrc +0 -4
- package/template-svelte-js/package.json +0 -18
- package/template-svelte-js/rsbuild.config.js +0 -8
- package/template-svelte-js/src/App.svelte +0 -28
- package/template-svelte-js/src/index.css +0 -6
- package/template-svelte-js/src/index.js +0 -12
- package/template-svelte-ts/.browserslistrc +0 -4
- package/template-svelte-ts/package.json +0 -21
- package/template-svelte-ts/rsbuild.config.ts +0 -7
- package/template-svelte-ts/src/App.svelte +0 -37
- package/template-svelte-ts/src/env.d.ts +0 -2
- package/template-svelte-ts/src/index.css +0 -6
- package/template-svelte-ts/src/index.ts +0 -13
- package/template-svelte-ts/tsconfig.json +0 -21
- package/template-tailwindcss/package.json +0 -6
- package/template-tailwindcss/postcss.config.mjs +0 -5
- package/template-vanilla-js/package.json +0 -14
- package/template-vanilla-js/rsbuild.config.js +0 -5
- package/template-vanilla-js/src/index.css +0 -26
- package/template-vanilla-js/src/index.js +0 -8
- package/template-vanilla-ts/package.json +0 -15
- package/template-vanilla-ts/rsbuild.config.ts +0 -4
- package/template-vanilla-ts/src/env.d.ts +0 -1
- package/template-vanilla-ts/src/index.css +0 -26
- package/template-vanilla-ts/src/index.ts +0 -11
- package/template-vanilla-ts/tsconfig.json +0 -21
- package/template-vue-js/.vscode/extensions.json +0 -3
- package/template-vue-js/package.json +0 -18
- package/template-vue-js/rsbuild.config.js +0 -8
- package/template-vue-js/src/App.vue +0 -28
- package/template-vue-js/src/index.css +0 -6
- package/template-vue-js/src/index.js +0 -5
- package/template-vue-ts/.vscode/extensions.json +0 -3
- package/template-vue-ts/package.json +0 -19
- package/template-vue-ts/rsbuild.config.ts +0 -7
- package/template-vue-ts/src/App.vue +0 -28
- package/template-vue-ts/src/env.d.ts +0 -8
- package/template-vue-ts/src/index.css +0 -6
- package/template-vue-ts/src/index.ts +0 -5
- package/template-vue-ts/tsconfig.json +0 -23
|
@@ -1,28 +0,0 @@
|
|
|
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>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rsbuild-svelte-ts",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rsbuild build",
|
|
8
|
-
"dev": "rsbuild --open",
|
|
9
|
-
"preview": "rsbuild preview",
|
|
10
|
-
"svelte-check": "svelte-check --tsconfig ./tsconfig.json"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"svelte": "^5.55.4"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@rsbuild/core": "^2.0.0",
|
|
17
|
-
"@rsbuild/plugin-svelte": "^1.1.1",
|
|
18
|
-
"svelte-check": "^4.4.6",
|
|
19
|
-
"typescript": "^6.0.3"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
type Props = {
|
|
3
|
-
tool: string;
|
|
4
|
-
framework: string;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
let { tool, framework }: Props = $props();
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<main>
|
|
11
|
-
<div class="content">
|
|
12
|
-
<h1>{tool} with {framework}</h1>
|
|
13
|
-
<p>Start building amazing things with Rsbuild.</p>
|
|
14
|
-
</div>
|
|
15
|
-
</main>
|
|
16
|
-
|
|
17
|
-
<style>
|
|
18
|
-
.content {
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100vh;
|
|
21
|
-
line-height: 1.1;
|
|
22
|
-
text-align: center;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.content h1 {
|
|
28
|
-
font-size: 3.6rem;
|
|
29
|
-
font-weight: 700;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.content p {
|
|
33
|
-
font-size: 1.2rem;
|
|
34
|
-
font-weight: 400;
|
|
35
|
-
opacity: 0.5;
|
|
36
|
-
}
|
|
37
|
-
</style>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": ["DOM", "ES2022"],
|
|
4
|
-
"target": "ES2022",
|
|
5
|
-
"noEmit": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"useDefineForClassFields": true,
|
|
8
|
-
|
|
9
|
-
/* modules */
|
|
10
|
-
"moduleDetection": "force",
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"verbatimModuleSyntax": true,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"allowImportingTsExtensions": true,
|
|
15
|
-
|
|
16
|
-
/* type checking */
|
|
17
|
-
"noUnusedLocals": true,
|
|
18
|
-
"noUnusedParameters": true
|
|
19
|
-
},
|
|
20
|
-
"include": ["src"]
|
|
21
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rsbuild-vanilla-js",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rsbuild build",
|
|
8
|
-
"dev": "rsbuild --open",
|
|
9
|
-
"preview": "rsbuild preview"
|
|
10
|
-
},
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"@rsbuild/core": "^2.0.0"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
margin: 0;
|
|
3
|
-
color: #fff;
|
|
4
|
-
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
5
|
-
background-image: linear-gradient(to bottom, #020917, #101725);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.content {
|
|
9
|
-
display: flex;
|
|
10
|
-
min-height: 100vh;
|
|
11
|
-
line-height: 1.1;
|
|
12
|
-
text-align: center;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.content h1 {
|
|
18
|
-
font-size: 3.6rem;
|
|
19
|
-
font-weight: 700;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.content p {
|
|
23
|
-
font-size: 1.2rem;
|
|
24
|
-
font-weight: 400;
|
|
25
|
-
opacity: 0.5;
|
|
26
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rsbuild-vanilla-ts",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rsbuild build",
|
|
8
|
-
"dev": "rsbuild --open",
|
|
9
|
-
"preview": "rsbuild preview"
|
|
10
|
-
},
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"@rsbuild/core": "^2.0.0",
|
|
13
|
-
"typescript": "^6.0.3"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="@rsbuild/core/types" />
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
margin: 0;
|
|
3
|
-
color: #fff;
|
|
4
|
-
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
5
|
-
background-image: linear-gradient(to bottom, #020917, #101725);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.content {
|
|
9
|
-
display: flex;
|
|
10
|
-
min-height: 100vh;
|
|
11
|
-
line-height: 1.1;
|
|
12
|
-
text-align: center;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.content h1 {
|
|
18
|
-
font-size: 3.6rem;
|
|
19
|
-
font-weight: 700;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.content p {
|
|
23
|
-
font-size: 1.2rem;
|
|
24
|
-
font-weight: 400;
|
|
25
|
-
opacity: 0.5;
|
|
26
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": ["DOM", "ES2020"],
|
|
4
|
-
"target": "ES2020",
|
|
5
|
-
"noEmit": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"useDefineForClassFields": true,
|
|
8
|
-
|
|
9
|
-
/* modules */
|
|
10
|
-
"moduleDetection": "force",
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"verbatimModuleSyntax": true,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"allowImportingTsExtensions": true,
|
|
15
|
-
|
|
16
|
-
/* type checking */
|
|
17
|
-
"noUnusedLocals": true,
|
|
18
|
-
"noUnusedParameters": true
|
|
19
|
-
},
|
|
20
|
-
"include": ["src"]
|
|
21
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rsbuild-vue-js",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rsbuild build",
|
|
8
|
-
"dev": "rsbuild --open",
|
|
9
|
-
"preview": "rsbuild preview"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"vue": "^3.5.32"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^2.0.0",
|
|
16
|
-
"@rsbuild/plugin-vue": "^1.2.7"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="content">
|
|
3
|
-
<h1>Rsbuild with Vue</h1>
|
|
4
|
-
<p>Start building amazing things with Rsbuild.</p>
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<style scoped>
|
|
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>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rsbuild-vue-ts",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rsbuild build",
|
|
8
|
-
"dev": "rsbuild --open",
|
|
9
|
-
"preview": "rsbuild preview"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"vue": "^3.5.32"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^2.0.0",
|
|
16
|
-
"@rsbuild/plugin-vue": "^1.2.7",
|
|
17
|
-
"typescript": "^6.0.3"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="content">
|
|
3
|
-
<h1>Rsbuild with Vue</h1>
|
|
4
|
-
<p>Start building amazing things with Rsbuild.</p>
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<style scoped>
|
|
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>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": ["DOM", "ES2020"],
|
|
4
|
-
"jsx": "preserve",
|
|
5
|
-
"target": "ES2020",
|
|
6
|
-
"noEmit": true,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"jsxImportSource": "vue",
|
|
9
|
-
"useDefineForClassFields": true,
|
|
10
|
-
|
|
11
|
-
/* modules */
|
|
12
|
-
"moduleDetection": "force",
|
|
13
|
-
"moduleResolution": "bundler",
|
|
14
|
-
"verbatimModuleSyntax": true,
|
|
15
|
-
"resolveJsonModule": true,
|
|
16
|
-
"allowImportingTsExtensions": true,
|
|
17
|
-
|
|
18
|
-
/* type checking */
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true
|
|
21
|
-
},
|
|
22
|
-
"include": ["src"]
|
|
23
|
-
}
|