create-rsbuild 0.0.28 → 1.0.0

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # create-rsbuild
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 1090e387: feat(create-rsbuild): bump typescript to v5.3.0
8
+
3
9
  ## 0.0.28
4
10
 
5
11
  ## 0.0.27
package/dist/index.js CHANGED
@@ -76,6 +76,7 @@ async function main() {
76
76
  { value: "vue2", label: "Vue 2" },
77
77
  { value: "lit", label: "Lit" },
78
78
  { value: "svelte", label: "Svelte" },
79
+ { value: "solid", label: "Solid" },
79
80
  { value: "vanilla", label: "Vanilla" }
80
81
  ]
81
82
  });
@@ -93,7 +94,11 @@ async function main() {
93
94
  const distFolder = import_path.default.join(cwd, targetDir);
94
95
  copyFolder(commonFolder, distFolder, version);
95
96
  copyFolder(srcFolder, distFolder, version);
96
- const nextSteps = [`cd ${targetDir}`, `${pkgManager} i`, `${pkgManager} run dev`];
97
+ const nextSteps = [
98
+ `cd ${targetDir}`,
99
+ `${pkgManager} i`,
100
+ `${pkgManager} run dev`
101
+ ];
97
102
  (0, import_prompts.note)(nextSteps.join("\n"), "Next steps");
98
103
  (0, import_prompts.outro)("Done.");
99
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "0.0.28",
3
+ "version": "1.0.0",
4
4
  "description": "Create a new Rsbuild project",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^16",
29
- "typescript": "^5.2.2"
29
+ "typescript": "^5.3.0"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public",
@@ -10,6 +10,6 @@
10
10
  "devDependencies": {
11
11
  "@rsbuild/core": "workspace:*",
12
12
  "lit": "^3.0.2",
13
- "typescript": "^5.2.2"
13
+ "typescript": "^5.3.0"
14
14
  }
15
15
  }
@@ -16,6 +16,6 @@
16
16
  "@rsbuild/plugin-react": "workspace:*",
17
17
  "@types/react": "^18",
18
18
  "@types/react-dom": "^18",
19
- "typescript": "^5.2.2"
19
+ "typescript": "^5.3.0"
20
20
  }
21
21
  }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "rsbuild-solid-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
+ "solid-js": "^1.8.5"
12
+ },
13
+ "devDependencies": {
14
+ "@rsbuild/core": "workspace:*",
15
+ "@rsbuild/plugin-babel": "workspace:*",
16
+ "@rsbuild/plugin-solid": "workspace:*"
17
+ }
18
+ }
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from '@rsbuild/core';
2
+ import { pluginBabel } from '@rsbuild/plugin-babel';
3
+ import { pluginSolid } from '@rsbuild/plugin-solid';
4
+
5
+ export default defineConfig({
6
+ plugins: [pluginBabel(), pluginSolid()],
7
+ });
@@ -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,12 @@
1
+ import './App.css';
2
+
3
+ const App = () => {
4
+ return (
5
+ <div class="content">
6
+ <h1>Rsbuild with Solid</h1>
7
+ <p>Start building amazing things with Rsbuild.</p>
8
+ </div>
9
+ );
10
+ };
11
+
12
+ export default App;
@@ -0,0 +1,4 @@
1
+ import { render } from 'solid-js/web';
2
+ import App from './App';
3
+
4
+ render(App, document.getElementById('root'));
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "rsbuild-solid-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
+ "solid-js": "^1.8.5"
12
+ },
13
+ "devDependencies": {
14
+ "@rsbuild/core": "workspace:*",
15
+ "@rsbuild/plugin-babel": "workspace:*",
16
+ "@rsbuild/plugin-solid": "workspace:*",
17
+ "typescript": "^5.3.0"
18
+ }
19
+ }
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from '@rsbuild/core';
2
+ import { pluginBabel } from '@rsbuild/plugin-babel';
3
+ import { pluginSolid } from '@rsbuild/plugin-solid';
4
+
5
+ export default defineConfig({
6
+ plugins: [pluginBabel(), pluginSolid()],
7
+ });
@@ -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,12 @@
1
+ import './App.css';
2
+
3
+ const App = () => {
4
+ return (
5
+ <div class="content">
6
+ <h1>Rsbuild with Solid</h1>
7
+ <p>Start building amazing things with Rsbuild.</p>
8
+ </div>
9
+ );
10
+ };
11
+
12
+ export default App;
@@ -0,0 +1 @@
1
+ /// <reference types="@rsbuild/core/types" />
@@ -0,0 +1,4 @@
1
+ import { render } from 'solid-js/web';
2
+ import App from './App';
3
+
4
+ render(App, document.getElementById('root')!);
@@ -0,0 +1,15 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "lib": ["DOM", "ES2020"],
5
+ "module": "ESNext",
6
+ "jsx": "preserve",
7
+ "jsxImportSource": "solid-js",
8
+ "strict": true,
9
+ "skipLibCheck": true,
10
+ "isolatedModules": true,
11
+ "resolveJsonModule": true,
12
+ "moduleResolution": "bundler"
13
+ },
14
+ "include": ["src"]
15
+ }
@@ -13,6 +13,6 @@
13
13
  "devDependencies": {
14
14
  "@rsbuild/core": "workspace:*",
15
15
  "@rsbuild/plugin-svelte": "workspace:*",
16
- "typescript": "^5.2.2"
16
+ "typescript": "^5.3.0"
17
17
  }
18
18
  }
@@ -9,6 +9,6 @@
9
9
  },
10
10
  "devDependencies": {
11
11
  "@rsbuild/core": "workspace:*",
12
- "typescript": "^5.2.2"
12
+ "typescript": "^5.3.0"
13
13
  }
14
14
  }
@@ -13,6 +13,6 @@
13
13
  "devDependencies": {
14
14
  "@rsbuild/core": "workspace:*",
15
15
  "@rsbuild/plugin-vue2": "workspace:*",
16
- "typescript": "^5.2.2"
16
+ "typescript": "^5.3.0"
17
17
  }
18
18
  }
@@ -13,6 +13,6 @@
13
13
  "devDependencies": {
14
14
  "@rsbuild/core": "workspace:*",
15
15
  "@rsbuild/plugin-vue": "workspace:*",
16
- "typescript": "^5.2.2"
16
+ "typescript": "^5.3.0"
17
17
  }
18
18
  }