create-rstack 3.2.1 → 3.2.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/package.json +2 -2
- package/template-app-lit/package.json +1 -1
- package/template-app-lit/rstack.config.js +8 -6
- package/template-app-lit-ts/package.json +1 -1
- package/template-app-lit-ts/rstack.config.ts +6 -6
- package/template-app-lit-ts/tests/tsconfig.json +7 -0
- package/template-app-preact/package.json +1 -1
- package/template-app-preact/rstack.config.js +6 -3
- package/template-app-preact-ts/package.json +1 -1
- package/template-app-preact-ts/rstack.config.ts +6 -3
- package/template-app-react/package.json +1 -1
- package/template-app-react/rstack.config.js +6 -3
- package/template-app-react-ts/package.json +1 -1
- package/template-app-react-ts/rstack.config.ts +6 -3
- package/template-app-solid/package.json +3 -3
- package/template-app-solid/rstack.config.js +8 -3
- package/template-app-solid-ts/package.json +3 -3
- package/template-app-solid-ts/rstack.config.ts +6 -3
- package/template-app-svelte/package.json +2 -2
- package/template-app-svelte/rstack.config.js +8 -3
- package/template-app-svelte-ts/package.json +3 -3
- package/template-app-svelte-ts/rstack.config.ts +6 -3
- package/template-app-svelte-ts/tests/tsconfig.json +1 -1
- package/template-app-vanilla/package.json +1 -1
- package/template-app-vanilla/rstack.config.js +8 -2
- package/template-app-vanilla/tests/dom.test.js +1 -1
- package/template-app-vanilla-ts/package.json +1 -1
- package/template-app-vanilla-ts/rstack.config.ts +6 -2
- package/template-app-vanilla-ts/tests/dom.test.ts +1 -1
- package/template-app-vue/package.json +1 -1
- package/template-app-vue/rstack.config.js +8 -3
- package/template-app-vue-ts/package.json +2 -2
- package/template-app-vue-ts/rstack.config.ts +6 -3
- package/template-doc/package.json +1 -1
- package/template-doc/rstack.config.ts +1 -1
- package/template-doc-i18n/package.json +1 -1
- package/template-doc-i18n/rstack.config.ts +1 -1
- package/template-lib-node/package.json +2 -6
- package/template-lib-node/rstack.config.js +9 -9
- package/template-lib-node-ts/package.json +1 -1
- package/template-lib-node-ts/rstack.config.ts +6 -7
- package/template-lib-node-ts/tests/tsconfig.json +8 -0
- package/template-lib-react/package.json +2 -6
- package/template-lib-react/rstack.config.js +6 -8
- package/template-lib-react-ts/package.json +1 -1
- package/template-lib-react-ts/rstack.config.ts +6 -8
- package/template-lib-react-ts/tests/tsconfig.json +1 -1
- package/template-lib-react-ts/tsconfig.json +1 -1
- package/template-lib-solid/package.json +3 -3
- package/template-lib-solid/rstack.config.js +9 -11
- package/template-lib-solid-ts/package.json +4 -4
- package/template-lib-solid-ts/rstack.config.ts +7 -11
- package/template-lib-solid-ts/tests/tsconfig.json +1 -1
- package/template-lib-solid-ts/tsconfig.json +1 -1
- package/template-lib-svelte/package.json +3 -7
- package/template-lib-svelte/rstack.config.js +8 -12
- package/template-lib-svelte-ts/package.json +4 -4
- package/template-lib-svelte-ts/rstack.config.ts +6 -12
- package/template-lib-svelte-ts/tests/tsconfig.json +3 -1
- package/template-lib-svelte-ts/tsconfig.json +4 -4
- package/template-lib-vue/package.json +2 -6
- package/template-lib-vue/rstack.config.js +8 -8
- package/template-lib-vue/tests/index.test.js +3 -2
- package/template-lib-vue-ts/package.json +2 -2
- package/template-lib-vue-ts/rstack.config.ts +6 -8
- package/template-lib-vue-ts/tests/index.test.ts +3 -2
- package/template-lib-vue-ts/tests/tsconfig.json +2 -1
- package/template-lib-vue-ts/tsconfig.json +1 -1
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Configuration guide: https://rstack.rs/config
|
|
2
2
|
import { define } from 'rstack';
|
|
3
3
|
|
|
4
4
|
define.lib(async () => {
|
|
5
5
|
const { pluginVue } = await import('@rsbuild/plugin-vue');
|
|
6
|
-
|
|
7
6
|
return {
|
|
8
7
|
bundle: false,
|
|
9
|
-
source: {
|
|
10
|
-
entry: {
|
|
11
|
-
index: ['./src/**'],
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
8
|
output: {
|
|
15
9
|
target: 'web',
|
|
16
10
|
},
|
|
@@ -22,9 +16,13 @@ define.test({
|
|
|
22
16
|
setupFiles: ['./tests/rstest.setup.ts'],
|
|
23
17
|
});
|
|
24
18
|
|
|
25
|
-
define.lint(({ js, ts }) => [
|
|
19
|
+
define.lint(({ js, ts, rstestPlugin }) => [
|
|
26
20
|
js.configs.recommended,
|
|
27
21
|
ts.configs.recommendedTypeChecked,
|
|
22
|
+
{
|
|
23
|
+
files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
24
|
+
...rstestPlugin.configs.recommended,
|
|
25
|
+
},
|
|
28
26
|
]);
|
|
29
27
|
|
|
30
28
|
define.fmt({
|
|
@@ -10,8 +10,9 @@ test('The button should have correct background color', () => {
|
|
|
10
10
|
label: 'Demo Button',
|
|
11
11
|
},
|
|
12
12
|
});
|
|
13
|
-
|
|
13
|
+
const button = wrapper.get('button');
|
|
14
|
+
expect(button.text()).toBe('Demo Button');
|
|
15
|
+
expect(button.element).toHaveStyle({
|
|
14
16
|
backgroundColor: '#ccc',
|
|
15
17
|
});
|
|
16
|
-
wrapper.unmount();
|
|
17
18
|
});
|