create-rspeedy 0.9.9 → 0.9.11
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 +10 -0
- package/dist/index.js +3 -3
- package/package.json +6 -5
- package/template-react-ts/lynx.config.ts +2 -0
- package/template-react-ts/package.json +1 -0
- package/template-react-vitest-rltl-js/package.json +1 -1
- package/template-react-vitest-rltl-js/src/__tests__/index.test.jsx +2 -2
- package/template-react-vitest-rltl-ts/lynx.config.ts +2 -0
- package/template-react-vitest-rltl-ts/package.json +2 -1
- package/template-react-vitest-rltl-ts/src/__tests__/index.test.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# create-rspeedy
|
|
2
2
|
|
|
3
|
+
## 0.9.11
|
|
4
|
+
|
|
5
|
+
## 0.9.10
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- Enable TypeScript check in templates. ([#1093](https://github.com/lynx-family/lynx-stack/pull/1093))
|
|
10
|
+
|
|
11
|
+
- Fix a bug in ReactLynx Testing Library that rendered snapshot of inline style was normalized incorrectly (eg. `flex:1` was normalized to `flex: 1 1 0%;` incorrectly). ([#1040](https://github.com/lynx-family/lynx-stack/pull/1040))
|
|
12
|
+
|
|
3
13
|
## 0.9.9
|
|
4
14
|
|
|
5
15
|
## 0.9.8
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
import
|
|
3
|
+
import node_path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { checkCancel, create, multiselect, select as external_create_rstack_select } from "create-rstack";
|
|
6
|
-
const src_dirname =
|
|
6
|
+
const src_dirname = node_path.dirname(fileURLToPath(import.meta.url));
|
|
7
7
|
const src_require = createRequire(import.meta.url);
|
|
8
8
|
const { devDependencies } = src_require('../package.json');
|
|
9
9
|
const composeTemplateName = ({ template, tools, lang })=>{
|
|
@@ -70,7 +70,7 @@ async function getTemplateName({ template }) {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
create({
|
|
73
|
-
root:
|
|
73
|
+
root: node_path.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.11",
|
|
4
4
|
"description": "Create Rspeedy-powered ReactLynx apps with one command",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -34,10 +34,11 @@
|
|
|
34
34
|
"create-rstack": "1.4.5"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"@lynx-js/
|
|
39
|
-
"@lynx-js/react
|
|
40
|
-
"@lynx-js/
|
|
37
|
+
"@rsbuild/plugin-type-check": "1.2.3",
|
|
38
|
+
"@lynx-js/qrcode-rsbuild-plugin": "^0.4.0",
|
|
39
|
+
"@lynx-js/react": "^0.110.1",
|
|
40
|
+
"@lynx-js/react-rsbuild-plugin": "^0.10.5",
|
|
41
|
+
"@lynx-js/rspeedy": "^0.9.11"
|
|
41
42
|
},
|
|
42
43
|
"engines": {
|
|
43
44
|
"node": ">=18"
|
|
@@ -2,6 +2,7 @@ import { defineConfig } from '@lynx-js/rspeedy'
|
|
|
2
2
|
|
|
3
3
|
import { pluginQRCode } from '@lynx-js/qrcode-rsbuild-plugin'
|
|
4
4
|
import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
|
|
5
|
+
import { pluginTypeCheck } from '@rsbuild/plugin-type-check'
|
|
5
6
|
|
|
6
7
|
export default defineConfig({
|
|
7
8
|
plugins: [
|
|
@@ -12,5 +13,6 @@ export default defineConfig({
|
|
|
12
13
|
},
|
|
13
14
|
}),
|
|
14
15
|
pluginReactLynx(),
|
|
16
|
+
pluginTypeCheck(),
|
|
15
17
|
],
|
|
16
18
|
})
|
|
@@ -73,7 +73,7 @@ test('App', async () => {
|
|
|
73
73
|
>
|
|
74
74
|
Edit
|
|
75
75
|
<text
|
|
76
|
-
style="font-style:
|
|
76
|
+
style="font-style:italic"
|
|
77
77
|
>
|
|
78
78
|
src/App.tsx
|
|
79
79
|
</text>
|
|
@@ -81,7 +81,7 @@ test('App', async () => {
|
|
|
81
81
|
</text>
|
|
82
82
|
</view>
|
|
83
83
|
<view
|
|
84
|
-
style="flex:
|
|
84
|
+
style="flex:1"
|
|
85
85
|
/>
|
|
86
86
|
</view>
|
|
87
87
|
</view>
|
|
@@ -2,6 +2,7 @@ import { defineConfig } from '@lynx-js/rspeedy'
|
|
|
2
2
|
|
|
3
3
|
import { pluginQRCode } from '@lynx-js/qrcode-rsbuild-plugin'
|
|
4
4
|
import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
|
|
5
|
+
import { pluginTypeCheck } from '@rsbuild/plugin-type-check'
|
|
5
6
|
|
|
6
7
|
export default defineConfig({
|
|
7
8
|
plugins: [
|
|
@@ -12,5 +13,6 @@ export default defineConfig({
|
|
|
12
13
|
},
|
|
13
14
|
}),
|
|
14
15
|
pluginReactLynx(),
|
|
16
|
+
pluginTypeCheck(),
|
|
15
17
|
],
|
|
16
18
|
})
|
|
@@ -16,11 +16,12 @@
|
|
|
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.3",
|
|
19
20
|
"@testing-library/jest-dom": "^6.6.3",
|
|
20
21
|
"@types/react": "^18.3.23",
|
|
21
22
|
"jsdom": "^26.1.0",
|
|
22
23
|
"typescript": "~5.8.3",
|
|
23
|
-
"vitest": "^3.2.
|
|
24
|
+
"vitest": "^3.2.4"
|
|
24
25
|
},
|
|
25
26
|
"engines": {
|
|
26
27
|
"node": ">=18"
|
|
@@ -73,7 +73,7 @@ test('App', async () => {
|
|
|
73
73
|
>
|
|
74
74
|
Edit
|
|
75
75
|
<text
|
|
76
|
-
style="font-style:
|
|
76
|
+
style="font-style:italic"
|
|
77
77
|
>
|
|
78
78
|
src/App.tsx
|
|
79
79
|
</text>
|
|
@@ -81,7 +81,7 @@ test('App', async () => {
|
|
|
81
81
|
</text>
|
|
82
82
|
</view>
|
|
83
83
|
<view
|
|
84
|
-
style="flex:
|
|
84
|
+
style="flex:1"
|
|
85
85
|
/>
|
|
86
86
|
</view>
|
|
87
87
|
</view>
|