create-rsbuild 2.0.0-rc.3 → 2.0.0-rc.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.
Files changed (40) hide show
  1. package/dist/index.js +19 -16
  2. package/package.json +3 -3
  3. package/template-lit-js/package.json +1 -1
  4. package/template-lit-ts/package.json +1 -1
  5. package/template-preact-js/package.json +1 -1
  6. package/template-preact-ts/package.json +1 -1
  7. package/template-react-js/package.json +1 -1
  8. package/template-react-ts/package.json +1 -1
  9. package/template-solid-js/package.json +1 -1
  10. package/template-solid-ts/package.json +1 -1
  11. package/template-svelte-js/package.json +1 -1
  12. package/template-svelte-ts/package.json +1 -1
  13. package/template-vanilla-js/package.json +1 -1
  14. package/template-vanilla-ts/package.json +1 -1
  15. package/{template-vue3-js → template-vue-js}/package.json +2 -2
  16. package/{template-vue3-ts → template-vue-ts}/package.json +2 -2
  17. package/template-vue2-js/package.json +0 -18
  18. package/template-vue2-js/rsbuild.config.js +0 -8
  19. package/template-vue2-js/src/index.js +0 -8
  20. package/template-vue2-ts/package.json +0 -19
  21. package/template-vue2-ts/rsbuild.config.ts +0 -7
  22. package/template-vue2-ts/src/env.d.ts +0 -7
  23. package/template-vue2-ts/src/index.ts +0 -8
  24. package/template-vue2-ts/tsconfig.json +0 -22
  25. package/template-vue3-js/src/App.vue +0 -28
  26. package/template-vue3-js/src/index.css +0 -6
  27. package/template-vue3-ts/src/App.vue +0 -28
  28. package/template-vue3-ts/src/index.css +0 -6
  29. /package/{template-vue3-js → template-vue-js}/.vscode/extensions.json +0 -0
  30. /package/{template-vue3-js → template-vue-js}/rsbuild.config.js +0 -0
  31. /package/{template-vue2-js → template-vue-js}/src/App.vue +0 -0
  32. /package/{template-vue2-js → template-vue-js}/src/index.css +0 -0
  33. /package/{template-vue3-js → template-vue-js}/src/index.js +0 -0
  34. /package/{template-vue3-ts → template-vue-ts}/.vscode/extensions.json +0 -0
  35. /package/{template-vue3-ts → template-vue-ts}/rsbuild.config.ts +0 -0
  36. /package/{template-vue2-ts → template-vue-ts}/src/App.vue +0 -0
  37. /package/{template-vue3-ts → template-vue-ts}/src/env.d.ts +0 -0
  38. /package/{template-vue2-ts → template-vue-ts}/src/index.css +0 -0
  39. /package/{template-vue3-ts → template-vue-ts}/src/index.ts +0 -0
  40. /package/{template-vue3-ts → template-vue-ts}/tsconfig.json +0 -0
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import node_fs from "node:fs";
2
2
  import node_path from "node:path";
3
3
  import { checkCancel, copyFolder, create, select as external_create_rstack_select } from "create-rstack";
4
4
  const frameworkAlias = {
5
- vue: 'vue3',
5
+ vue3: 'vue',
6
6
  'solid-js': 'solid'
7
7
  };
8
8
  async function getTemplateName({ template }) {
@@ -24,12 +24,8 @@ async function getTemplateName({ template }) {
24
24
  label: 'React'
25
25
  },
26
26
  {
27
- value: 'vue3',
28
- label: 'Vue 3'
29
- },
30
- {
31
- value: 'vue2',
32
- label: 'Vue 2'
27
+ value: 'vue',
28
+ label: 'Vue'
33
29
  },
34
30
  {
35
31
  value: 'lit',
@@ -71,10 +67,10 @@ function mapESLintTemplate(templateName) {
71
67
  case 'svelte-js':
72
68
  case 'svelte-ts':
73
69
  return templateName;
74
- case 'vue2-js':
70
+ case 'vue-js':
75
71
  case 'vue3-js':
76
72
  return 'vue-js';
77
- case 'vue2-ts':
73
+ case 'vue-ts':
78
74
  case 'vue3-ts':
79
75
  return 'vue-ts';
80
76
  default:
@@ -87,8 +83,10 @@ function mapRstestTemplate(templateName) {
87
83
  return 'react-js';
88
84
  case 'react-ts':
89
85
  return 'react-ts';
86
+ case 'vue-js':
90
87
  case 'vue3-js':
91
88
  return 'vue-js';
89
+ case 'vue-ts':
92
90
  case 'vue3-ts':
93
91
  return 'vue-ts';
94
92
  default:
@@ -104,10 +102,8 @@ create({
104
102
  'vanilla-ts',
105
103
  'react-js',
106
104
  'react-ts',
107
- 'vue3-js',
108
- 'vue3-ts',
109
- 'vue2-js',
110
- 'vue2-ts',
105
+ 'vue-js',
106
+ 'vue-ts',
111
107
  'svelte-js',
112
108
  'svelte-ts',
113
109
  'solid-js',
@@ -182,13 +178,20 @@ create({
182
178
  extraSkills: [
183
179
  {
184
180
  value: 'rsbuild-best-practices',
185
- label: 'Rsbuild - best practices',
181
+ label: 'Rsbuild best practices',
186
182
  source: 'rstackjs/agent-skills'
187
183
  },
188
184
  {
189
185
  value: 'rstest-best-practices',
190
- label: 'Rstest - best practices',
191
- source: 'rstackjs/agent-skills'
186
+ label: 'Rstest best practices',
187
+ source: 'rstackjs/agent-skills',
188
+ when: ({ tools })=>tools.includes('rstest')
189
+ },
190
+ {
191
+ value: 'vercel-react-best-practices',
192
+ label: 'React best practices',
193
+ source: 'vercel-labs/agent-skills',
194
+ when: ({ templateName })=>templateName.startsWith('react-')
192
195
  }
193
196
  ]
194
197
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsbuild",
3
- "version": "2.0.0-rc.3",
3
+ "version": "2.0.0-rc.4",
4
4
  "description": "Create a new Rsbuild project",
5
5
  "homepage": "https://rsbuild.rs",
6
6
  "repository": {
@@ -29,11 +29,11 @@
29
29
  "@rslib/core": "0.21.0",
30
30
  "@types/node": "^24.12.2",
31
31
  "typescript": "^6.0.2",
32
- "@rsbuild/core": "2.0.0-rc.3",
32
+ "@rsbuild/core": "2.0.0-rc.4",
33
33
  "@rsbuild/plugin-babel": "1.1.2",
34
34
  "@rsbuild/plugin-solid": "1.1.1",
35
- "@rsbuild/plugin-svelte": "1.1.1",
36
35
  "@rsbuild/plugin-preact": "1.7.2",
36
+ "@rsbuild/plugin-svelte": "1.1.1",
37
37
  "@rsbuild/plugin-vue": "1.2.7"
38
38
  },
39
39
  "engines": {
@@ -12,6 +12,6 @@
12
12
  "lit": "^3.3.2"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^2.0.0-rc.3"
15
+ "@rsbuild/core": "^2.0.0-rc.4"
16
16
  }
17
17
  }
@@ -12,7 +12,7 @@
12
12
  "lit": "^3.3.2"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^2.0.0-rc.3",
15
+ "@rsbuild/core": "^2.0.0-rc.4",
16
16
  "typescript": "^6.0.2"
17
17
  }
18
18
  }
@@ -12,7 +12,7 @@
12
12
  "preact": "^10.29.1"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^2.0.0-rc.3",
15
+ "@rsbuild/core": "^2.0.0-rc.4",
16
16
  "@rsbuild/plugin-preact": "^1.7.2"
17
17
  }
18
18
  }
@@ -12,7 +12,7 @@
12
12
  "preact": "^10.29.1"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^2.0.0-rc.3",
15
+ "@rsbuild/core": "^2.0.0-rc.4",
16
16
  "@rsbuild/plugin-preact": "^1.7.2",
17
17
  "typescript": "^6.0.2"
18
18
  }
@@ -13,7 +13,7 @@
13
13
  "react-dom": "^19.2.5"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^2.0.0-rc.3",
16
+ "@rsbuild/core": "^2.0.0-rc.4",
17
17
  "@rsbuild/plugin-react": "^1.4.6"
18
18
  }
19
19
  }
@@ -13,7 +13,7 @@
13
13
  "react-dom": "^19.2.5"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^2.0.0-rc.3",
16
+ "@rsbuild/core": "^2.0.0-rc.4",
17
17
  "@rsbuild/plugin-react": "^1.4.6",
18
18
  "@types/react": "^19.2.14",
19
19
  "@types/react-dom": "^19.2.3",
@@ -12,7 +12,7 @@
12
12
  "solid-js": "^1.9.12"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^2.0.0-rc.3",
15
+ "@rsbuild/core": "^2.0.0-rc.4",
16
16
  "@rsbuild/plugin-babel": "^1.1.2",
17
17
  "@rsbuild/plugin-solid": "^1.1.1"
18
18
  }
@@ -12,7 +12,7 @@
12
12
  "solid-js": "^1.9.12"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^2.0.0-rc.3",
15
+ "@rsbuild/core": "^2.0.0-rc.4",
16
16
  "@rsbuild/plugin-babel": "^1.1.2",
17
17
  "@rsbuild/plugin-solid": "^1.1.1",
18
18
  "typescript": "^6.0.2"
@@ -12,7 +12,7 @@
12
12
  "svelte": "^5.55.3"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^2.0.0-rc.3",
15
+ "@rsbuild/core": "^2.0.0-rc.4",
16
16
  "@rsbuild/plugin-svelte": "^1.1.1"
17
17
  }
18
18
  }
@@ -13,7 +13,7 @@
13
13
  "svelte": "^5.55.3"
14
14
  },
15
15
  "devDependencies": {
16
- "@rsbuild/core": "^2.0.0-rc.3",
16
+ "@rsbuild/core": "^2.0.0-rc.4",
17
17
  "@rsbuild/plugin-svelte": "^1.1.1",
18
18
  "svelte-check": "^4.4.6",
19
19
  "typescript": "^6.0.2"
@@ -9,6 +9,6 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "devDependencies": {
12
- "@rsbuild/core": "^2.0.0-rc.3"
12
+ "@rsbuild/core": "^2.0.0-rc.4"
13
13
  }
14
14
  }
@@ -9,7 +9,7 @@
9
9
  "preview": "rsbuild preview"
10
10
  },
11
11
  "devDependencies": {
12
- "@rsbuild/core": "^2.0.0-rc.3",
12
+ "@rsbuild/core": "^2.0.0-rc.4",
13
13
  "typescript": "^6.0.2"
14
14
  }
15
15
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "rsbuild-vue3-js",
2
+ "name": "rsbuild-vue-js",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  "vue": "^3.5.32"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^2.0.0-rc.3",
15
+ "@rsbuild/core": "^2.0.0-rc.4",
16
16
  "@rsbuild/plugin-vue": "^1.2.7"
17
17
  }
18
18
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "rsbuild-vue3-ts",
2
+ "name": "rsbuild-vue-ts",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  "vue": "^3.5.32"
13
13
  },
14
14
  "devDependencies": {
15
- "@rsbuild/core": "^2.0.0-rc.3",
15
+ "@rsbuild/core": "^2.0.0-rc.4",
16
16
  "@rsbuild/plugin-vue": "^1.2.7",
17
17
  "typescript": "^6.0.2"
18
18
  }
@@ -1,18 +0,0 @@
1
- {
2
- "name": "rsbuild-vue2-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": "^2.7.16"
13
- },
14
- "devDependencies": {
15
- "@rsbuild/core": "^2.0.0-rc.3",
16
- "@rsbuild/plugin-vue2": "^1.1.1"
17
- }
18
- }
@@ -1,8 +0,0 @@
1
- // @ts-check
2
- import { defineConfig } from '@rsbuild/core';
3
- import { pluginVue2 } from '@rsbuild/plugin-vue2';
4
-
5
- // Docs: https://rsbuild.rs/config/
6
- export default defineConfig({
7
- plugins: [pluginVue2()],
8
- });
@@ -1,8 +0,0 @@
1
- import Vue from 'vue';
2
- import App from './App.vue';
3
- import './index.css';
4
-
5
- new Vue({
6
- el: '#root',
7
- render: (h) => h(App),
8
- });
@@ -1,19 +0,0 @@
1
- {
2
- "name": "rsbuild-vue2-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": "^2.7.16"
13
- },
14
- "devDependencies": {
15
- "@rsbuild/core": "^2.0.0-rc.3",
16
- "@rsbuild/plugin-vue2": "^1.1.1",
17
- "typescript": "^6.0.2"
18
- }
19
- }
@@ -1,7 +0,0 @@
1
- import { defineConfig } from '@rsbuild/core';
2
- import { pluginVue2 } from '@rsbuild/plugin-vue2';
3
-
4
- // Docs: https://rsbuild.rs/config/
5
- export default defineConfig({
6
- plugins: [pluginVue2()],
7
- });
@@ -1,7 +0,0 @@
1
- /// <reference types="@rsbuild/core/types" />
2
-
3
- declare module '*.vue' {
4
- import Vue from 'vue';
5
-
6
- export default Vue;
7
- }
@@ -1,8 +0,0 @@
1
- import Vue from 'vue';
2
- import App from './App.vue';
3
- import './index.css';
4
-
5
- new Vue({
6
- el: '#root',
7
- render: (h) => h(App),
8
- });
@@ -1,22 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": ["DOM", "ES2020"],
4
- "jsx": "preserve",
5
- "target": "ES2020",
6
- "noEmit": true,
7
- "skipLibCheck": true,
8
- "useDefineForClassFields": true,
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,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,6 +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
- }
@@ -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,6 +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
- }