create-rspeedy 0.9.8 → 0.9.9
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
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const src_dirname =
|
|
7
|
-
const src_require =
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import external_node_path_default from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { checkCancel, create, multiselect, select as external_create_rstack_select } from "create-rstack";
|
|
6
|
+
const src_dirname = external_node_path_default.dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const src_require = createRequire(import.meta.url);
|
|
8
8
|
const { devDependencies } = src_require('../package.json');
|
|
9
9
|
const composeTemplateName = ({ template, tools, lang })=>{
|
|
10
10
|
const toolsKeys = (tools ? Object.keys(tools) : []).sort();
|
|
@@ -33,7 +33,7 @@ async function getTemplateName({ template }) {
|
|
|
33
33
|
].includes(lang)) return template;
|
|
34
34
|
return `${template}-ts`;
|
|
35
35
|
}
|
|
36
|
-
const language =
|
|
36
|
+
const language = checkCancel(await external_create_rstack_select({
|
|
37
37
|
message: 'Select language',
|
|
38
38
|
options: [
|
|
39
39
|
{
|
|
@@ -47,7 +47,7 @@ async function getTemplateName({ template }) {
|
|
|
47
47
|
}
|
|
48
48
|
]
|
|
49
49
|
}));
|
|
50
|
-
const tools =
|
|
50
|
+
const tools = checkCancel(await multiselect({
|
|
51
51
|
message: 'Select development tools (Use <space> to select, <enter> to continue)',
|
|
52
52
|
required: false,
|
|
53
53
|
options: [
|
|
@@ -69,8 +69,8 @@ async function getTemplateName({ template }) {
|
|
|
69
69
|
]))
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
root:
|
|
72
|
+
create({
|
|
73
|
+
root: external_node_path_default.resolve(src_dirname, '..'),
|
|
74
74
|
name: 'rspeedy',
|
|
75
75
|
templates: TEMPLATES.map(({ template, tools, lang })=>composeTemplateName({
|
|
76
76
|
template,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rspeedy",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.9",
|
|
4
4
|
"description": "Create Rspeedy-powered ReactLynx apps with one command",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@lynx-js/qrcode-rsbuild-plugin": "^0.3.6",
|
|
38
|
-
"@lynx-js/react": "^0.109.
|
|
39
|
-
"@lynx-js/react-rsbuild-plugin": "^0.10.
|
|
40
|
-
"@lynx-js/rspeedy": "^0.9.
|
|
38
|
+
"@lynx-js/react": "^0.109.2",
|
|
39
|
+
"@lynx-js/react-rsbuild-plugin": "^0.10.3",
|
|
40
|
+
"@lynx-js/rspeedy": "^0.9.9"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=18"
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"@lynx-js/rspeedy": "workspace:*",
|
|
18
18
|
"@lynx-js/types": "3.3.0",
|
|
19
19
|
"@testing-library/jest-dom": "^6.6.3",
|
|
20
|
-
"@types/react": "^18.3.
|
|
20
|
+
"@types/react": "^18.3.23",
|
|
21
21
|
"jsdom": "^26.1.0",
|
|
22
22
|
"typescript": "~5.8.3",
|
|
23
|
-
"vitest": "^3.
|
|
23
|
+
"vitest": "^3.2.2"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=18"
|