create-rsbuild 1.3.1 → 1.3.3
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/README.md +2 -2
- package/dist/index.js +9 -9
- package/package.json +12 -11
- package/template-common/gitignore +3 -0
- package/template-lit-js/package.json +1 -1
- package/template-lit-ts/package.json +1 -1
- package/template-lit-ts/tsconfig.json +1 -1
- package/template-preact-js/package.json +3 -3
- package/template-preact-ts/package.json +3 -3
- package/template-preact-ts/src/env.d.ts +1 -0
- package/template-preact-ts/tsconfig.json +1 -1
- package/template-react-js/package.json +2 -2
- package/template-react-ts/package.json +4 -4
- package/template-react-ts/tsconfig.json +1 -1
- package/template-react18-js/package.json +2 -2
- package/template-react18-ts/package.json +2 -2
- package/template-react18-ts/tsconfig.json +1 -1
- package/template-solid-js/package.json +2 -2
- package/template-solid-ts/package.json +2 -2
- package/template-solid-ts/tsconfig.json +1 -1
- package/template-svelte-js/package.json +3 -3
- package/template-svelte-ts/package.json +4 -4
- package/template-svelte-ts/tsconfig.json +1 -4
- package/template-vanilla-js/package.json +1 -1
- package/template-vanilla-ts/package.json +1 -1
- package/template-vanilla-ts/src/env.d.ts +1 -0
- package/template-vanilla-ts/tsconfig.json +1 -1
- package/template-vue2-js/package.json +1 -1
- package/template-vue2-ts/package.json +1 -1
- package/template-vue2-ts/tsconfig.json +1 -1
- package/template-vue3-js/package.json +2 -2
- package/template-vue3-ts/package.json +2 -2
- package/template-vue3-ts/tsconfig.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://rsbuild.
|
|
2
|
+
<a href="https://rsbuild.rs" target="blank"><img src="https://assets.rspack.rs/rsbuild/rsbuild-banner.png" alt="Rsbuild Logo" /></a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
# create-rsbuild
|
|
@@ -33,7 +33,7 @@ npx create-rsbuild -d my-project -t react
|
|
|
33
33
|
|
|
34
34
|
## Documentation
|
|
35
35
|
|
|
36
|
-
See [Documentation](https://rsbuild.
|
|
36
|
+
See [Documentation](https://rsbuild.rs/guide/start/quick-start).
|
|
37
37
|
|
|
38
38
|
## License
|
|
39
39
|
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const src_dirname =
|
|
1
|
+
import node_path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { checkCancel, create, select as external_create_rstack_select } from "create-rstack";
|
|
4
|
+
const src_dirname = node_path.dirname(fileURLToPath(import.meta.url));
|
|
5
5
|
const frameworkAlias = {
|
|
6
6
|
vue: 'vue3',
|
|
7
7
|
'solid-js': 'solid'
|
|
@@ -13,7 +13,7 @@ async function getTemplateName({ template }) {
|
|
|
13
13
|
const framework = pair[0];
|
|
14
14
|
return `${frameworkAlias[framework] ?? framework}-${language}`;
|
|
15
15
|
}
|
|
16
|
-
const framework =
|
|
16
|
+
const framework = checkCancel(await external_create_rstack_select({
|
|
17
17
|
message: 'Select framework',
|
|
18
18
|
options: [
|
|
19
19
|
{
|
|
@@ -54,7 +54,7 @@ async function getTemplateName({ template }) {
|
|
|
54
54
|
}
|
|
55
55
|
]
|
|
56
56
|
}));
|
|
57
|
-
const language =
|
|
57
|
+
const language = checkCancel(await external_create_rstack_select({
|
|
58
58
|
message: 'Select language',
|
|
59
59
|
options: [
|
|
60
60
|
{
|
|
@@ -85,13 +85,13 @@ function mapESLintTemplate(templateName) {
|
|
|
85
85
|
case 'react18-js':
|
|
86
86
|
return 'react-js';
|
|
87
87
|
case 'react18-ts':
|
|
88
|
-
return 'react-
|
|
88
|
+
return 'react-ts';
|
|
89
89
|
}
|
|
90
90
|
const language = templateName.split('-')[1];
|
|
91
91
|
return `vanilla-${language}`;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
root:
|
|
93
|
+
create({
|
|
94
|
+
root: node_path.resolve(src_dirname, '..'),
|
|
95
95
|
name: 'rsbuild',
|
|
96
96
|
templates: [
|
|
97
97
|
'vanilla-js',
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rsbuild",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Create a new Rsbuild project",
|
|
5
|
-
"homepage": "https://rsbuild.
|
|
5
|
+
"homepage": "https://rsbuild.rs",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/web-infra-dev/rsbuild",
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"bin.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"create-rstack": "1.
|
|
26
|
+
"create-rstack": "1.5.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@rsbuild/plugin-react": "^1.1.0",
|
|
30
|
-
"@rslib/core": "0.
|
|
31
|
-
"@types/node": "^22.15.
|
|
30
|
+
"@rslib/core": "0.10.1",
|
|
31
|
+
"@types/node": "^22.15.32",
|
|
32
32
|
"typescript": "^5.8.3",
|
|
33
33
|
"@rsbuild/plugin-babel": "1.0.5",
|
|
34
|
-
"@rsbuild/core": "1.
|
|
35
|
-
"@rsbuild/plugin-preact": "1.
|
|
36
|
-
"@rsbuild/plugin-
|
|
37
|
-
"@rsbuild/plugin-
|
|
38
|
-
"@rsbuild/plugin-
|
|
34
|
+
"@rsbuild/core": "1.4.0-beta.5",
|
|
35
|
+
"@rsbuild/plugin-preact": "1.5.0-beta.0",
|
|
36
|
+
"@rsbuild/plugin-svelte": "1.0.10",
|
|
37
|
+
"@rsbuild/plugin-vue": "1.0.7",
|
|
38
|
+
"@rsbuild/plugin-solid": "1.0.5"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=16.10.0"
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "rslib build",
|
|
50
50
|
"dev": "rslib build --watch",
|
|
51
|
-
"start": "node ./dist/index.js"
|
|
51
|
+
"start": "node ./dist/index.js",
|
|
52
|
+
"bump": "npx bumpp --no-tag"
|
|
52
53
|
}
|
|
53
54
|
}
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"preview": "rsbuild preview"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"preact": "^10.26.
|
|
12
|
+
"preact": "^10.26.9"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^1.3.
|
|
16
|
-
"@rsbuild/plugin-preact": "^1.
|
|
15
|
+
"@rsbuild/core": "^1.3.22",
|
|
16
|
+
"@rsbuild/plugin-preact": "^1.4.0"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"preview": "rsbuild preview"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"preact": "^10.26.
|
|
12
|
+
"preact": "^10.26.9"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^1.3.
|
|
16
|
-
"@rsbuild/plugin-preact": "^1.
|
|
15
|
+
"@rsbuild/core": "^1.3.22",
|
|
16
|
+
"@rsbuild/plugin-preact": "^1.4.0",
|
|
17
17
|
"typescript": "^5.8.3"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="@rsbuild/core/types" />
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"react-dom": "^19.1.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@rsbuild/core": "^1.3.
|
|
17
|
-
"@rsbuild/plugin-react": "^1.3.
|
|
18
|
-
"@types/react": "^19.1.
|
|
19
|
-
"@types/react-dom": "^19.1.
|
|
16
|
+
"@rsbuild/core": "^1.3.22",
|
|
17
|
+
"@rsbuild/plugin-react": "^1.3.2",
|
|
18
|
+
"@types/react": "^19.1.8",
|
|
19
|
+
"@types/react-dom": "^19.1.6",
|
|
20
20
|
"typescript": "^5.8.3"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"react-dom": "^18.3.1"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@rsbuild/core": "^1.3.
|
|
17
|
-
"@rsbuild/plugin-react": "^1.3.
|
|
16
|
+
"@rsbuild/core": "^1.3.22",
|
|
17
|
+
"@rsbuild/plugin-react": "^1.3.2",
|
|
18
18
|
"@types/react": "^18.3.18",
|
|
19
19
|
"@types/react-dom": "^18.3.5",
|
|
20
20
|
"typescript": "^5.8.3"
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"preview": "rsbuild preview"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"solid-js": "^1.9.
|
|
12
|
+
"solid-js": "^1.9.7"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^1.3.
|
|
15
|
+
"@rsbuild/core": "^1.3.22",
|
|
16
16
|
"@rsbuild/plugin-babel": "^1.0.5",
|
|
17
17
|
"@rsbuild/plugin-solid": "^1.0.5"
|
|
18
18
|
}
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"preview": "rsbuild preview"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"solid-js": "^1.9.
|
|
12
|
+
"solid-js": "^1.9.7"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^1.3.
|
|
15
|
+
"@rsbuild/core": "^1.3.22",
|
|
16
16
|
"@rsbuild/plugin-babel": "^1.0.5",
|
|
17
17
|
"@rsbuild/plugin-solid": "^1.0.5",
|
|
18
18
|
"typescript": "^5.8.3"
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"preview": "rsbuild preview"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"svelte": "^5.
|
|
12
|
+
"svelte": "^5.34.7"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^1.3.
|
|
16
|
-
"@rsbuild/plugin-svelte": "^1.0.
|
|
15
|
+
"@rsbuild/core": "^1.3.22",
|
|
16
|
+
"@rsbuild/plugin-svelte": "^1.0.10"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"svelte-check": "svelte-check --tsconfig ./tsconfig.json"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"svelte": "^5.
|
|
13
|
+
"svelte": "^5.34.7"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@rsbuild/core": "^1.3.
|
|
17
|
-
"@rsbuild/plugin-svelte": "^1.0.
|
|
18
|
-
"svelte-check": "^4.
|
|
16
|
+
"@rsbuild/core": "^1.3.22",
|
|
17
|
+
"@rsbuild/plugin-svelte": "^1.0.10",
|
|
18
|
+
"svelte-check": "^4.2.2",
|
|
19
19
|
"typescript": "^5.8.3"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -4,14 +4,11 @@
|
|
|
4
4
|
"target": "ES2020",
|
|
5
5
|
"noEmit": true,
|
|
6
6
|
"skipLibCheck": true,
|
|
7
|
-
// svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
|
|
8
|
-
// to enforce using `import type` instead of `import` for Types.
|
|
9
|
-
"verbatimModuleSyntax": true,
|
|
10
7
|
"useDefineForClassFields": true,
|
|
11
8
|
|
|
12
9
|
/* modules */
|
|
13
10
|
"module": "ESNext",
|
|
14
|
-
"
|
|
11
|
+
"verbatimModuleSyntax": true,
|
|
15
12
|
"resolveJsonModule": true,
|
|
16
13
|
"moduleResolution": "bundler",
|
|
17
14
|
"allowImportingTsExtensions": true,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="@rsbuild/core/types" />
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"preview": "rsbuild preview"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"vue": "^3.5.
|
|
12
|
+
"vue": "^3.5.17"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@rsbuild/core": "^1.3.
|
|
15
|
+
"@rsbuild/core": "^1.3.22",
|
|
16
16
|
"@rsbuild/plugin-vue": "^1.0.7",
|
|
17
17
|
"typescript": "^5.8.3"
|
|
18
18
|
}
|