create-rsbuild 0.3.0 → 0.3.1
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/CHANGELOG.md +6 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/template-lit-ts/tsconfig.json +2 -1
- package/template-preact-js/package.json +17 -0
- package/template-preact-js/rsbuild.config.mjs +6 -0
- package/template-preact-js/src/App.css +26 -0
- package/template-preact-js/src/App.jsx +12 -0
- package/template-preact-js/src/index.jsx +4 -0
- package/template-preact-ts/package.json +18 -0
- package/template-preact-ts/rsbuild.config.ts +6 -0
- package/template-preact-ts/src/App.css +26 -0
- package/template-preact-ts/src/App.tsx +12 -0
- package/template-preact-ts/src/index.tsx +4 -0
- package/template-preact-ts/tsconfig.json +20 -0
- package/template-react-ts/tsconfig.json +2 -1
- package/template-solid-ts/tsconfig.json +2 -1
- package/template-svelte-ts/tsconfig.json +2 -1
- package/template-vanilla-ts/tsconfig.json +2 -1
- package/template-vue2-ts/tsconfig.json +2 -1
- package/template-vue3-js/.vscode/extensions.json +3 -0
- package/template-vue3-ts/.vscode/extensions.json +3 -0
- package/template-vue3-ts/src/env.d.ts +0 -7
- package/template-vue3-ts/tsconfig.json +2 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -75,6 +75,7 @@ async function main() {
|
|
|
75
75
|
{ value: "vue3", label: "Vue 3" },
|
|
76
76
|
{ value: "vue2", label: "Vue 2" },
|
|
77
77
|
{ value: "lit", label: "Lit" },
|
|
78
|
+
{ value: "preact", label: "Preact" },
|
|
78
79
|
{ value: "svelte", label: "Svelte" },
|
|
79
80
|
{ value: "solid", label: "Solid" },
|
|
80
81
|
{ value: "vanilla", label: "Vanilla" }
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-preact-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
|
+
"preact": "^10.19.3"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@rsbuild/core": "workspace:*",
|
|
15
|
+
"@rsbuild/plugin-preact": "workspace:*"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-preact-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
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"preact": "^10.19.3"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@rsbuild/core": "workspace:*",
|
|
15
|
+
"@rsbuild/plugin-preact": "workspace:*",
|
|
16
|
+
"typescript": "^5.3.0"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"lib": ["DOM", "ES2020"],
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
|
+
"jsxImportSource": "preact",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"isolatedModules": true,
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"useDefineForClassFields": true,
|
|
14
|
+
"paths": {
|
|
15
|
+
"react": ["./node_modules/preact/compat/"],
|
|
16
|
+
"react-dom": ["./node_modules/preact/compat/"]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"include": ["src"]
|
|
20
|
+
}
|