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
package/dist/index.js
CHANGED
|
@@ -93,6 +93,15 @@ function mapRstestTemplate(templateName) {
|
|
|
93
93
|
return `vanilla-${templateName.split('-')[1]}`;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
+
function mapRslintTemplate(templateName) {
|
|
97
|
+
switch(templateName){
|
|
98
|
+
case 'react-js':
|
|
99
|
+
case 'react-ts':
|
|
100
|
+
return templateName;
|
|
101
|
+
default:
|
|
102
|
+
return `vanilla-${templateName.split('-')[1]}`;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
96
105
|
const root = node_path.join(import.meta.dirname, '..');
|
|
97
106
|
create({
|
|
98
107
|
root: root,
|
|
@@ -111,6 +120,7 @@ create({
|
|
|
111
120
|
],
|
|
112
121
|
getTemplateName: getTemplateName,
|
|
113
122
|
mapESLintTemplate: mapESLintTemplate,
|
|
123
|
+
mapRslintTemplate: mapRslintTemplate,
|
|
114
124
|
extraTools: [
|
|
115
125
|
{
|
|
116
126
|
value: 'rstest',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rsbuild",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Create a new Rsbuild project",
|
|
5
5
|
"homepage": "https://rsbuild.rs",
|
|
6
6
|
"repository": {
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
"bin.js"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"create-rstack": "2.
|
|
25
|
+
"create-rstack": "2.1.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@rslib/core": "0.21.3",
|
|
29
29
|
"@types/node": "^24.12.2",
|
|
30
30
|
"typescript": "^6.0.3",
|
|
31
|
-
"@rsbuild/core": "2.0.3",
|
|
32
31
|
"@rsbuild/plugin-babel": "1.1.2",
|
|
33
32
|
"@rsbuild/plugin-react": "2.0.0",
|
|
33
|
+
"@rsbuild/core": "2.0.4",
|
|
34
|
+
"@rsbuild/plugin-solid": "1.2.0",
|
|
34
35
|
"@rsbuild/plugin-preact": "1.7.2",
|
|
35
|
-
"@rsbuild/plugin-
|
|
36
|
-
"@rsbuild/plugin-vue": "1.2.7"
|
|
37
|
-
"@rsbuild/plugin-svelte": "1.1.1"
|
|
36
|
+
"@rsbuild/plugin-svelte": "1.1.1",
|
|
37
|
+
"@rsbuild/plugin-vue": "1.2.7"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": "^20.19.0 || >=22.12.0"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# AGENTS.md
|
|
2
|
-
|
|
3
|
-
You are an expert in JavaScript, Rsbuild, and web application development. You write maintainable, performant, and accessible code.
|
|
4
|
-
|
|
5
|
-
## Commands
|
|
6
|
-
|
|
7
|
-
- `{{ packageManager }} run dev` - Start the dev server
|
|
8
|
-
- `{{ packageManager }} run build` - Build the app for production
|
|
9
|
-
- `{{ packageManager }} run preview` - Preview the production build locally
|
|
10
|
-
|
|
11
|
-
## Docs
|
|
12
|
-
|
|
13
|
-
- Rsbuild: https://rsbuild.rs/llms.txt
|
|
14
|
-
- Rspack: https://rspack.rs/llms.txt
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# Rsbuild project
|
|
2
|
-
|
|
3
|
-
## Setup
|
|
4
|
-
|
|
5
|
-
Install the dependencies:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
{{ packageManager }} install
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Get started
|
|
12
|
-
|
|
13
|
-
Start the dev server, and the app will be available at [http://localhost:3000](http://localhost:3000).
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
{{ packageManager }} run dev
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Build the app for production:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
{{ packageManager }} run build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Preview the production build locally:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
{{ packageManager }} run preview
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Learn more
|
|
32
|
-
|
|
33
|
-
To learn more about Rsbuild, check out the following resources:
|
|
34
|
-
|
|
35
|
-
- [Rsbuild documentation](https://rsbuild.rs) - explore Rsbuild features and APIs.
|
|
36
|
-
- [Rsbuild GitHub repository](https://github.com/web-infra-dev/rsbuild) - your feedback and contributions are welcome!
|
|
Binary file
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rsbuild-lit-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
|
-
"lit": "^3.3.2"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^2.0.0"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { html, css, LitElement } from 'lit';
|
|
2
|
-
|
|
3
|
-
export class MyElement extends LitElement {
|
|
4
|
-
static styles = css`
|
|
5
|
-
.content {
|
|
6
|
-
display: flex;
|
|
7
|
-
min-height: 100vh;
|
|
8
|
-
line-height: 1.1;
|
|
9
|
-
text-align: center;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.content h1 {
|
|
15
|
-
font-size: 3.6rem;
|
|
16
|
-
font-weight: 700;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.content p {
|
|
20
|
-
font-size: 1.2rem;
|
|
21
|
-
font-weight: 400;
|
|
22
|
-
opacity: 0.5;
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
25
|
-
|
|
26
|
-
render() {
|
|
27
|
-
return html`
|
|
28
|
-
<div class="content">
|
|
29
|
-
<h1>Rsbuild with Lit</h1>
|
|
30
|
-
<p>Start building amazing things with Rsbuild.</p>
|
|
31
|
-
</div>
|
|
32
|
-
`;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rsbuild-lit-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
|
-
"lit": "^3.3.2"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^2.0.0",
|
|
16
|
-
"typescript": "^6.0.3"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="@rsbuild/core/types" />
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { html, css, LitElement } from 'lit';
|
|
2
|
-
|
|
3
|
-
export class MyElement extends LitElement {
|
|
4
|
-
static styles = css`
|
|
5
|
-
.content {
|
|
6
|
-
display: flex;
|
|
7
|
-
min-height: 100vh;
|
|
8
|
-
line-height: 1.1;
|
|
9
|
-
text-align: center;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.content h1 {
|
|
15
|
-
font-size: 3.6rem;
|
|
16
|
-
font-weight: 700;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.content p {
|
|
20
|
-
font-size: 1.2rem;
|
|
21
|
-
font-weight: 400;
|
|
22
|
-
opacity: 0.5;
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
25
|
-
|
|
26
|
-
render() {
|
|
27
|
-
return html`
|
|
28
|
-
<div class="content">
|
|
29
|
-
<h1>Rsbuild with Lit</h1>
|
|
30
|
-
<p>Start building amazing things with Rsbuild.</p>
|
|
31
|
-
</div>
|
|
32
|
-
`;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": ["DOM", "ES2020"],
|
|
4
|
-
"target": "ES2020",
|
|
5
|
-
"noEmit": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"experimentalDecorators": true,
|
|
8
|
-
"useDefineForClassFields": false,
|
|
9
|
-
|
|
10
|
-
/* modules */
|
|
11
|
-
"moduleDetection": "force",
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"verbatimModuleSyntax": true,
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"allowImportingTsExtensions": true,
|
|
16
|
-
|
|
17
|
-
/* type checking */
|
|
18
|
-
"noUnusedLocals": true,
|
|
19
|
-
"noUnusedParameters": true
|
|
20
|
-
},
|
|
21
|
-
"include": ["src"]
|
|
22
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rsbuild-preact-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
|
-
"preact": "^10.29.1"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^2.0.0",
|
|
16
|
-
"@rsbuild/plugin-preact": "^1.7.2"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -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,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rsbuild-preact-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
|
-
"preact": "^10.29.1"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^2.0.0",
|
|
16
|
-
"@rsbuild/plugin-preact": "^1.7.2",
|
|
17
|
-
"typescript": "^6.0.3"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
/// <reference types="@rsbuild/core/types" />
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": ["DOM", "ES2020"],
|
|
4
|
-
"jsx": "react-jsx",
|
|
5
|
-
"target": "ES2020",
|
|
6
|
-
"noEmit": true,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"jsxImportSource": "preact",
|
|
9
|
-
"useDefineForClassFields": true,
|
|
10
|
-
|
|
11
|
-
/* modules */
|
|
12
|
-
"moduleDetection": "force",
|
|
13
|
-
"moduleResolution": "bundler",
|
|
14
|
-
"verbatimModuleSyntax": true,
|
|
15
|
-
"resolveJsonModule": true,
|
|
16
|
-
"allowImportingTsExtensions": true,
|
|
17
|
-
"paths": {
|
|
18
|
-
"react": ["./node_modules/preact/compat/"],
|
|
19
|
-
"react-dom": ["./node_modules/preact/compat/"]
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
/* type checking */
|
|
23
|
-
"noUnusedLocals": true,
|
|
24
|
-
"noUnusedParameters": true
|
|
25
|
-
},
|
|
26
|
-
"include": ["src"]
|
|
27
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
import { defineConfig } from '@rsbuild/core';
|
|
3
|
-
import { pluginBabel } from '@rsbuild/plugin-babel';
|
|
4
|
-
import { pluginReact } from '@rsbuild/plugin-react';
|
|
5
|
-
|
|
6
|
-
// Docs: https://rsbuild.rs/config/
|
|
7
|
-
export default defineConfig({
|
|
8
|
-
plugins: [
|
|
9
|
-
pluginReact(),
|
|
10
|
-
pluginBabel({
|
|
11
|
-
include: /\.[jt]sx?$/,
|
|
12
|
-
exclude: [/[\\/]node_modules[\\/]/],
|
|
13
|
-
babelLoaderOptions(opts) {
|
|
14
|
-
opts.plugins?.unshift('babel-plugin-react-compiler');
|
|
15
|
-
},
|
|
16
|
-
}),
|
|
17
|
-
],
|
|
18
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from '@rsbuild/core';
|
|
2
|
-
import { pluginBabel } from '@rsbuild/plugin-babel';
|
|
3
|
-
import { pluginReact } from '@rsbuild/plugin-react';
|
|
4
|
-
|
|
5
|
-
// Docs: https://rsbuild.rs/config/
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [
|
|
8
|
-
pluginReact(),
|
|
9
|
-
pluginBabel({
|
|
10
|
-
include: /\.[jt]sx?$/,
|
|
11
|
-
exclude: [/[\\/]node_modules[\\/]/],
|
|
12
|
-
babelLoaderOptions(opts) {
|
|
13
|
-
opts.plugins?.unshift('babel-plugin-react-compiler');
|
|
14
|
-
},
|
|
15
|
-
}),
|
|
16
|
-
],
|
|
17
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rsbuild-react-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
|
-
"react": "^19.2.5",
|
|
13
|
-
"react-dom": "^19.2.5"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@rsbuild/core": "^2.0.0",
|
|
17
|
-
"@rsbuild/plugin-react": "^2.0.0"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -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
|
-
}
|