create-rspeedy 0.10.4 → 0.10.6
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 +8 -0
- package/dist/index.js +12 -2
- package/package.json +6 -6
- package/{template-react-ts → template-common}/src/rspeedy-env.d.ts +1 -0
- package/template-react-js/src/App.jsx +1 -1
- package/template-react-ts/package.json +2 -2
- package/template-react-ts/src/App.tsx +1 -1
- package/template-react-vitest-rltl-js/package.json +1 -1
- package/template-react-vitest-rltl-js/src/App.jsx +2 -2
- package/template-react-vitest-rltl-ts/package.json +3 -3
- package/template-react-vitest-rltl-ts/src/App.tsx +3 -3
- package/template-react-vitest-rltl-ts/src/__tests__/index.test.tsx +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -79,7 +79,17 @@ create({
|
|
|
79
79
|
})),
|
|
80
80
|
version: devDependencies,
|
|
81
81
|
getTemplateName,
|
|
82
|
-
mapESLintTemplate () {
|
|
83
|
-
|
|
82
|
+
mapESLintTemplate (templateName) {
|
|
83
|
+
var _TEMPLATES_find;
|
|
84
|
+
const lang = null == (_TEMPLATES_find = TEMPLATES.find(({ template })=>templateName.startsWith(template))) ? void 0 : _TEMPLATES_find.lang;
|
|
85
|
+
if (!lang) return null;
|
|
86
|
+
switch(lang){
|
|
87
|
+
case 'js':
|
|
88
|
+
return 'react-js';
|
|
89
|
+
case 'ts':
|
|
90
|
+
return 'react-ts';
|
|
91
|
+
default:
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
84
94
|
}
|
|
85
95
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rspeedy",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
4
4
|
"description": "Create Rspeedy-powered ReactLynx apps with one command",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"create-rstack": "1.5.
|
|
34
|
+
"create-rstack": "1.5.6"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@rsbuild/plugin-type-check": "1.2.
|
|
37
|
+
"@rsbuild/plugin-type-check": "1.2.4",
|
|
38
38
|
"@lynx-js/qrcode-rsbuild-plugin": "^0.4.0",
|
|
39
|
-
"@lynx-js/react": "^0.112.
|
|
40
|
-
"@lynx-js/
|
|
41
|
-
"@lynx-js/
|
|
39
|
+
"@lynx-js/react": "^0.112.2",
|
|
40
|
+
"@lynx-js/react-rsbuild-plugin": "^0.10.11",
|
|
41
|
+
"@lynx-js/rspeedy": "^0.10.6"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=18"
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"@lynx-js/react-rsbuild-plugin": "workspace:*",
|
|
16
16
|
"@lynx-js/rspeedy": "workspace:*",
|
|
17
17
|
"@lynx-js/types": "3.3.0",
|
|
18
|
-
"@rsbuild/plugin-type-check": "1.2.
|
|
18
|
+
"@rsbuild/plugin-type-check": "1.2.4",
|
|
19
19
|
"@types/react": "^18.3.23",
|
|
20
|
-
"typescript": "~5.
|
|
20
|
+
"typescript": "~5.9.2"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@lynx-js/qrcode-rsbuild-plugin": "workspace:*",
|
|
16
16
|
"@lynx-js/react-rsbuild-plugin": "workspace:*",
|
|
17
17
|
"@lynx-js/rspeedy": "workspace:*",
|
|
18
|
-
"@testing-library/jest-dom": "^6.6.
|
|
18
|
+
"@testing-library/jest-dom": "^6.6.4",
|
|
19
19
|
"jsdom": "^26.1.0",
|
|
20
20
|
"vitest": "^3.2.4"
|
|
21
21
|
},
|
|
@@ -10,8 +10,8 @@ export function App(props) {
|
|
|
10
10
|
|
|
11
11
|
useEffect(() => {
|
|
12
12
|
console.info('Hello, ReactLynx')
|
|
13
|
-
props.onMounted?.()
|
|
14
13
|
}, [])
|
|
14
|
+
props.onRender?.()
|
|
15
15
|
|
|
16
16
|
const onTap = useCallback(() => {
|
|
17
17
|
'background only'
|
|
@@ -46,7 +46,7 @@ export function App(props) {
|
|
|
46
46
|
to see updates!
|
|
47
47
|
</text>
|
|
48
48
|
</view>
|
|
49
|
-
<view style={{ flex: 1 }}
|
|
49
|
+
<view style={{ flex: 1 }} />
|
|
50
50
|
</view>
|
|
51
51
|
</view>
|
|
52
52
|
)
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"@lynx-js/react-rsbuild-plugin": "workspace:*",
|
|
17
17
|
"@lynx-js/rspeedy": "workspace:*",
|
|
18
18
|
"@lynx-js/types": "3.3.0",
|
|
19
|
-
"@rsbuild/plugin-type-check": "1.2.
|
|
20
|
-
"@testing-library/jest-dom": "^6.6.
|
|
19
|
+
"@rsbuild/plugin-type-check": "1.2.4",
|
|
20
|
+
"@testing-library/jest-dom": "^6.6.4",
|
|
21
21
|
"@types/react": "^18.3.23",
|
|
22
22
|
"jsdom": "^26.1.0",
|
|
23
|
-
"typescript": "~5.
|
|
23
|
+
"typescript": "~5.9.2",
|
|
24
24
|
"vitest": "^3.2.4"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
@@ -6,14 +6,14 @@ import lynxLogo from './assets/lynx-logo.png'
|
|
|
6
6
|
import reactLynxLogo from './assets/react-logo.png'
|
|
7
7
|
|
|
8
8
|
export function App(props: {
|
|
9
|
-
|
|
9
|
+
onRender?: () => void
|
|
10
10
|
}) {
|
|
11
11
|
const [alterLogo, setAlterLogo] = useState(false)
|
|
12
12
|
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
console.info('Hello, ReactLynx')
|
|
15
|
-
props.onMounted?.()
|
|
16
15
|
}, [])
|
|
16
|
+
props.onRender?.()
|
|
17
17
|
|
|
18
18
|
const onTap = useCallback(() => {
|
|
19
19
|
'background only'
|
|
@@ -48,7 +48,7 @@ export function App(props: {
|
|
|
48
48
|
to see updates!
|
|
49
49
|
</text>
|
|
50
50
|
</view>
|
|
51
|
-
<view style={{ flex: 1 }}
|
|
51
|
+
<view style={{ flex: 1 }} />
|
|
52
52
|
</view>
|
|
53
53
|
</view>
|
|
54
54
|
)
|