create-rstack 3.2.0 → 3.2.2

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.
Files changed (82) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/template-app-lit/package.json +1 -1
  4. package/template-app-lit/rstack.config.js +8 -10
  5. package/template-app-lit-ts/package.json +1 -1
  6. package/template-app-lit-ts/rstack.config.ts +9 -10
  7. package/template-app-lit-ts/tests/tsconfig.json +7 -0
  8. package/template-app-preact/package.json +2 -2
  9. package/template-app-preact/rstack.config.js +10 -11
  10. package/template-app-preact-ts/package.json +2 -2
  11. package/template-app-preact-ts/rstack.config.ts +11 -12
  12. package/template-app-react/package.json +2 -2
  13. package/template-app-react/rstack.config.js +10 -11
  14. package/template-app-react-ts/package.json +2 -2
  15. package/template-app-react-ts/rstack.config.ts +11 -12
  16. package/template-app-solid/package.json +4 -4
  17. package/template-app-solid/rstack.config.js +8 -7
  18. package/template-app-solid-ts/package.json +4 -4
  19. package/template-app-solid-ts/rstack.config.ts +9 -7
  20. package/template-app-svelte/package.json +3 -3
  21. package/template-app-svelte/rstack.config.js +8 -7
  22. package/template-app-svelte-ts/package.json +4 -4
  23. package/template-app-svelte-ts/rstack.config.ts +9 -7
  24. package/template-app-svelte-ts/tests/tsconfig.json +1 -1
  25. package/template-app-vanilla/package.json +2 -2
  26. package/template-app-vanilla/rstack.config.js +8 -6
  27. package/template-app-vanilla/tests/dom.test.js +1 -1
  28. package/template-app-vanilla-ts/package.json +2 -2
  29. package/template-app-vanilla-ts/rstack.config.ts +9 -6
  30. package/template-app-vanilla-ts/tests/dom.test.ts +1 -1
  31. package/template-app-vue/package.json +2 -2
  32. package/template-app-vue/rstack.config.js +8 -7
  33. package/template-app-vue-ts/package.json +3 -3
  34. package/template-app-vue-ts/rstack.config.ts +9 -7
  35. package/template-common/README.md +2 -2
  36. package/template-doc/README.md +1 -1
  37. package/template-doc/package.json +1 -1
  38. package/template-doc/rstack.config.ts +7 -11
  39. package/template-doc-i18n/README.md +1 -1
  40. package/template-doc-i18n/package.json +1 -1
  41. package/template-doc-i18n/rstack.config.ts +7 -11
  42. package/template-lib-node/README.md +1 -1
  43. package/template-lib-node/package.json +2 -6
  44. package/template-lib-node/rstack.config.js +9 -13
  45. package/template-lib-node-ts/README.md +1 -1
  46. package/template-lib-node-ts/package.json +1 -1
  47. package/template-lib-node-ts/rstack.config.ts +9 -11
  48. package/template-lib-node-ts/tests/tsconfig.json +8 -0
  49. package/template-lib-react/README.md +1 -1
  50. package/template-lib-react/package.json +3 -7
  51. package/template-lib-react/rstack.config.js +10 -16
  52. package/template-lib-react-ts/README.md +1 -1
  53. package/template-lib-react-ts/package.json +2 -2
  54. package/template-lib-react-ts/rstack.config.ts +11 -17
  55. package/template-lib-react-ts/tests/tsconfig.json +1 -1
  56. package/template-lib-react-ts/tsconfig.json +1 -1
  57. package/template-lib-solid/README.md +1 -1
  58. package/template-lib-solid/package.json +4 -4
  59. package/template-lib-solid/rstack.config.js +9 -15
  60. package/template-lib-solid-ts/README.md +1 -1
  61. package/template-lib-solid-ts/package.json +5 -5
  62. package/template-lib-solid-ts/rstack.config.ts +10 -15
  63. package/template-lib-solid-ts/tests/tsconfig.json +1 -1
  64. package/template-lib-solid-ts/tsconfig.json +1 -1
  65. package/template-lib-svelte/README.md +1 -1
  66. package/template-lib-svelte/package.json +4 -5
  67. package/template-lib-svelte/rstack.config.js +8 -17
  68. package/template-lib-svelte-ts/README.md +1 -1
  69. package/template-lib-svelte-ts/package.json +6 -5
  70. package/template-lib-svelte-ts/rstack.config.ts +9 -17
  71. package/template-lib-svelte-ts/tests/tsconfig.json +3 -1
  72. package/template-lib-svelte-ts/tsconfig.json +4 -4
  73. package/template-lib-vue/README.md +1 -1
  74. package/template-lib-vue/package.json +3 -7
  75. package/template-lib-vue/rstack.config.js +8 -12
  76. package/template-lib-vue/tests/index.test.js +3 -2
  77. package/template-lib-vue-ts/README.md +1 -1
  78. package/template-lib-vue-ts/package.json +3 -3
  79. package/template-lib-vue-ts/rstack.config.ts +9 -12
  80. package/template-lib-vue-ts/tests/index.test.ts +3 -2
  81. package/template-lib-vue-ts/tests/tsconfig.json +2 -1
  82. package/template-lib-vue-ts/tsconfig.json +1 -1
package/README.md CHANGED
@@ -53,7 +53,7 @@ npx create-rstack --dir my-project --template app-vanilla-ts --no-git
53
53
 
54
54
  ## Documentation
55
55
 
56
- See the [Rstack documentation](https://rstack.rs).
56
+ See the [Rstack CLI documentation](https://rstack.rs).
57
57
 
58
58
  ## License
59
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rstack",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "Create a new Rstack project",
5
5
  "homepage": "https://rstack.rs",
6
6
  "bugs": {
@@ -34,7 +34,7 @@
34
34
  "devDependencies": {
35
35
  "@types/node": "^24.13.3",
36
36
  "typescript": "^7.0.2",
37
- "rstack": "0.6.0"
37
+ "rstack": "0.6.2"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=22.12.0"
@@ -18,6 +18,6 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "happy-dom": "^20.11.2",
21
- "rstack": "^0.6.0"
21
+ "rstack": "^0.6.2"
22
22
  }
23
23
  }
@@ -1,5 +1,5 @@
1
1
  // @ts-check
2
- // Rstack configuration guide: https://rstack.rs/config
2
+ // Configuration guide: https://rstack.rs/config
3
3
  import { define } from 'rstack';
4
4
 
5
5
  define.app({
@@ -13,15 +13,13 @@ define.app({
13
13
  },
14
14
  });
15
15
 
16
- define.test({
17
- testEnvironment: 'happy-dom',
18
- });
19
-
20
- define.lint(async () => {
21
- const { js } = await import('rstack/lint');
22
-
23
- return [js.configs.recommended];
24
- });
16
+ define.lint(({ js, rstestPlugin }) => [
17
+ js.configs.recommended,
18
+ {
19
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
20
+ ...rstestPlugin.configs.recommended,
21
+ },
22
+ ]);
25
23
 
26
24
  define.fmt({
27
25
  singleQuote: true,
@@ -19,7 +19,7 @@
19
19
  "devDependencies": {
20
20
  "@types/node": "^24.13.3",
21
21
  "happy-dom": "^20.11.2",
22
- "rstack": "^0.6.0",
22
+ "rstack": "^0.6.2",
23
23
  "typescript": "^7.0.2"
24
24
  }
25
25
  }
@@ -1,4 +1,4 @@
1
- // Rstack configuration guide: https://rstack.rs/config
1
+ // Configuration guide: https://rstack.rs/config
2
2
  import { define } from 'rstack';
3
3
 
4
4
  define.app({
@@ -12,15 +12,14 @@ define.app({
12
12
  },
13
13
  });
14
14
 
15
- define.test({
16
- testEnvironment: 'happy-dom',
17
- });
18
-
19
- define.lint(async () => {
20
- const { js, ts } = await import('rstack/lint');
21
-
22
- return [js.configs.recommended, ts.configs.recommendedTypeChecked];
23
- });
15
+ define.lint(({ js, ts, rstestPlugin }) => [
16
+ js.configs.recommended,
17
+ ts.configs.recommendedTypeChecked,
18
+ {
19
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
20
+ ...rstestPlugin.configs.recommended,
21
+ },
22
+ ]);
24
23
 
25
24
  define.fmt({
26
25
  singleQuote: true,
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["rstack/types", "node"]
5
+ },
6
+ "include": ["./"]
7
+ }
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@rsbuild/plugin-preact": "^2.0.0",
21
- "@testing-library/jest-dom": "^7.0.0",
21
+ "@testing-library/jest-dom": "^7.0.1",
22
22
  "@testing-library/preact": "^3.2.4",
23
23
  "happy-dom": "^20.11.2",
24
- "rstack": "^0.6.0"
24
+ "rstack": "^0.6.2"
25
25
  }
26
26
  }
@@ -1,10 +1,9 @@
1
1
  // @ts-check
2
- // Rstack configuration guide: https://rstack.rs/config
2
+ // Configuration guide: https://rstack.rs/config
3
3
  import { define } from 'rstack';
4
4
 
5
5
  define.app(async () => {
6
6
  const { pluginPreact } = await import('@rsbuild/plugin-preact');
7
-
8
7
  return {
9
8
  plugins: [pluginPreact()],
10
9
  };
@@ -14,15 +13,15 @@ define.test({
14
13
  setupFiles: ['./tests/rstest.setup.js'],
15
14
  });
16
15
 
17
- define.lint(async () => {
18
- const { js, reactHooksPlugin, reactPlugin } = await import('rstack/lint');
19
-
20
- return [
21
- js.configs.recommended,
22
- reactPlugin.configs.recommended,
23
- reactHooksPlugin.configs.recommended,
24
- ];
25
- });
16
+ define.lint(({ js, reactHooksPlugin, reactPlugin, rstestPlugin }) => [
17
+ js.configs.recommended,
18
+ reactPlugin.configs.recommended,
19
+ reactHooksPlugin.configs.recommended,
20
+ {
21
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
22
+ ...rstestPlugin.configs.recommended,
23
+ },
24
+ ]);
26
25
 
27
26
  define.fmt({
28
27
  singleQuote: true,
@@ -18,11 +18,11 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@rsbuild/plugin-preact": "^2.0.0",
21
- "@testing-library/jest-dom": "^7.0.0",
21
+ "@testing-library/jest-dom": "^7.0.1",
22
22
  "@testing-library/preact": "^3.2.4",
23
23
  "@types/node": "^24.13.3",
24
24
  "happy-dom": "^20.11.2",
25
- "rstack": "^0.6.0",
25
+ "rstack": "^0.6.2",
26
26
  "typescript": "^7.0.2"
27
27
  }
28
28
  }
@@ -1,9 +1,8 @@
1
- // Rstack configuration guide: https://rstack.rs/config
1
+ // Configuration guide: https://rstack.rs/config
2
2
  import { define } from 'rstack';
3
3
 
4
4
  define.app(async () => {
5
5
  const { pluginPreact } = await import('@rsbuild/plugin-preact');
6
-
7
6
  return {
8
7
  plugins: [pluginPreact()],
9
8
  };
@@ -13,16 +12,16 @@ define.test({
13
12
  setupFiles: ['./tests/rstest.setup.ts'],
14
13
  });
15
14
 
16
- define.lint(async () => {
17
- const { js, ts, reactHooksPlugin, reactPlugin } = await import('rstack/lint');
18
-
19
- return [
20
- js.configs.recommended,
21
- ts.configs.recommendedTypeChecked,
22
- reactPlugin.configs.recommended,
23
- reactHooksPlugin.configs.recommended,
24
- ];
25
- });
15
+ define.lint(({ js, ts, reactHooksPlugin, reactPlugin, rstestPlugin }) => [
16
+ js.configs.recommended,
17
+ ts.configs.recommendedTypeChecked,
18
+ reactPlugin.configs.recommended,
19
+ reactHooksPlugin.configs.recommended,
20
+ {
21
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
22
+ ...rstestPlugin.configs.recommended,
23
+ },
24
+ ]);
26
25
 
27
26
  define.fmt({
28
27
  singleQuote: true,
@@ -20,9 +20,9 @@
20
20
  "devDependencies": {
21
21
  "@rsbuild/plugin-react": "^2.1.0",
22
22
  "@testing-library/dom": "^10.4.1",
23
- "@testing-library/jest-dom": "^7.0.0",
23
+ "@testing-library/jest-dom": "^7.0.1",
24
24
  "@testing-library/react": "^16.3.2",
25
25
  "happy-dom": "^20.11.2",
26
- "rstack": "^0.6.0"
26
+ "rstack": "^0.6.2"
27
27
  }
28
28
  }
@@ -1,10 +1,9 @@
1
1
  // @ts-check
2
- // Rstack configuration guide: https://rstack.rs/config
2
+ // Configuration guide: https://rstack.rs/config
3
3
  import { define } from 'rstack';
4
4
 
5
5
  define.app(async () => {
6
6
  const { pluginReact } = await import('@rsbuild/plugin-react');
7
-
8
7
  return {
9
8
  plugins: [pluginReact()],
10
9
  };
@@ -14,15 +13,15 @@ define.test({
14
13
  setupFiles: ['./tests/rstest.setup.js'],
15
14
  });
16
15
 
17
- define.lint(async () => {
18
- const { js, reactHooksPlugin, reactPlugin } = await import('rstack/lint');
19
-
20
- return [
21
- js.configs.recommended,
22
- reactPlugin.configs.recommended,
23
- reactHooksPlugin.configs.recommended,
24
- ];
25
- });
16
+ define.lint(({ js, reactHooksPlugin, reactPlugin, rstestPlugin }) => [
17
+ js.configs.recommended,
18
+ reactPlugin.configs.recommended,
19
+ reactHooksPlugin.configs.recommended,
20
+ {
21
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
22
+ ...rstestPlugin.configs.recommended,
23
+ },
24
+ ]);
26
25
 
27
26
  define.fmt({
28
27
  singleQuote: true,
@@ -20,13 +20,13 @@
20
20
  "devDependencies": {
21
21
  "@rsbuild/plugin-react": "^2.1.0",
22
22
  "@testing-library/dom": "^10.4.1",
23
- "@testing-library/jest-dom": "^7.0.0",
23
+ "@testing-library/jest-dom": "^7.0.1",
24
24
  "@testing-library/react": "^16.3.2",
25
25
  "@types/node": "^24.13.3",
26
26
  "@types/react": "^19.2.18",
27
27
  "@types/react-dom": "^19.2.4",
28
28
  "happy-dom": "^20.11.2",
29
- "rstack": "^0.6.0",
29
+ "rstack": "^0.6.2",
30
30
  "typescript": "^7.0.2"
31
31
  }
32
32
  }
@@ -1,9 +1,8 @@
1
- // Rstack configuration guide: https://rstack.rs/config
1
+ // Configuration guide: https://rstack.rs/config
2
2
  import { define } from 'rstack';
3
3
 
4
4
  define.app(async () => {
5
5
  const { pluginReact } = await import('@rsbuild/plugin-react');
6
-
7
6
  return {
8
7
  plugins: [pluginReact()],
9
8
  };
@@ -13,16 +12,16 @@ define.test({
13
12
  setupFiles: ['./tests/rstest.setup.ts'],
14
13
  });
15
14
 
16
- define.lint(async () => {
17
- const { js, ts, reactPlugin, reactHooksPlugin } = await import('rstack/lint');
18
-
19
- return [
20
- js.configs.recommended,
21
- ts.configs.recommendedTypeChecked,
22
- reactPlugin.configs.recommended,
23
- reactHooksPlugin.configs.recommended,
24
- ];
25
- });
15
+ define.lint(({ js, ts, reactPlugin, reactHooksPlugin, rstestPlugin }) => [
16
+ js.configs.recommended,
17
+ ts.configs.recommendedTypeChecked,
18
+ reactPlugin.configs.recommended,
19
+ reactHooksPlugin.configs.recommended,
20
+ {
21
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
22
+ ...rstestPlugin.configs.recommended,
23
+ },
24
+ ]);
26
25
 
27
26
  define.fmt({
28
27
  singleQuote: true,
@@ -14,14 +14,14 @@
14
14
  "test:watch": "rs test --watch"
15
15
  },
16
16
  "dependencies": {
17
- "solid-js": "^1.9.14"
17
+ "solid-js": "^1.9.15"
18
18
  },
19
19
  "devDependencies": {
20
- "@rsbuild/plugin-babel": "^2.0.1",
20
+ "@rsbuild/plugin-babel": "^2.1.0",
21
21
  "@rsbuild/plugin-solid": "^1.2.2",
22
22
  "@solidjs/testing-library": "^0.8.10",
23
- "@testing-library/jest-dom": "^7.0.0",
23
+ "@testing-library/jest-dom": "^7.0.1",
24
24
  "happy-dom": "^20.11.2",
25
- "rstack": "^0.6.0"
25
+ "rstack": "^0.6.2"
26
26
  }
27
27
  }
@@ -1,11 +1,10 @@
1
1
  // @ts-check
2
- // Rstack configuration guide: https://rstack.rs/config
2
+ // Configuration guide: https://rstack.rs/config
3
3
  import { define } from 'rstack';
4
4
 
5
5
  define.app(async () => {
6
6
  const { pluginBabel } = await import('@rsbuild/plugin-babel');
7
7
  const { pluginSolid } = await import('@rsbuild/plugin-solid');
8
-
9
8
  return {
10
9
  plugins: [
11
10
  pluginBabel({
@@ -20,11 +19,13 @@ define.test({
20
19
  setupFiles: ['./tests/rstest.setup.js'],
21
20
  });
22
21
 
23
- define.lint(async () => {
24
- const { js } = await import('rstack/lint');
25
-
26
- return [js.configs.recommended];
27
- });
22
+ define.lint(({ js, rstestPlugin }) => [
23
+ js.configs.recommended,
24
+ {
25
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
26
+ ...rstestPlugin.configs.recommended,
27
+ },
28
+ ]);
28
29
 
29
30
  define.fmt({
30
31
  singleQuote: true,
@@ -14,16 +14,16 @@
14
14
  "test:watch": "rs test --watch"
15
15
  },
16
16
  "dependencies": {
17
- "solid-js": "^1.9.14"
17
+ "solid-js": "^1.9.15"
18
18
  },
19
19
  "devDependencies": {
20
- "@rsbuild/plugin-babel": "^2.0.1",
20
+ "@rsbuild/plugin-babel": "^2.1.0",
21
21
  "@rsbuild/plugin-solid": "^1.2.2",
22
22
  "@solidjs/testing-library": "^0.8.10",
23
- "@testing-library/jest-dom": "^7.0.0",
23
+ "@testing-library/jest-dom": "^7.0.1",
24
24
  "@types/node": "^24.13.3",
25
25
  "happy-dom": "^20.11.2",
26
- "rstack": "^0.6.0",
26
+ "rstack": "^0.6.2",
27
27
  "typescript": "^7.0.2"
28
28
  }
29
29
  }
@@ -1,10 +1,9 @@
1
- // Rstack configuration guide: https://rstack.rs/config
1
+ // Configuration guide: https://rstack.rs/config
2
2
  import { define } from 'rstack';
3
3
 
4
4
  define.app(async () => {
5
5
  const { pluginBabel } = await import('@rsbuild/plugin-babel');
6
6
  const { pluginSolid } = await import('@rsbuild/plugin-solid');
7
-
8
7
  return {
9
8
  plugins: [
10
9
  pluginBabel({
@@ -19,11 +18,14 @@ define.test({
19
18
  setupFiles: ['./tests/rstest.setup.ts'],
20
19
  });
21
20
 
22
- define.lint(async () => {
23
- const { js, ts } = await import('rstack/lint');
24
-
25
- return [js.configs.recommended, ts.configs.recommendedTypeChecked];
26
- });
21
+ define.lint(({ js, ts, rstestPlugin }) => [
22
+ js.configs.recommended,
23
+ ts.configs.recommendedTypeChecked,
24
+ {
25
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
26
+ ...rstestPlugin.configs.recommended,
27
+ },
28
+ ]);
27
29
 
28
30
  define.fmt({
29
31
  singleQuote: true,
@@ -14,14 +14,14 @@
14
14
  "test:watch": "rs test --watch"
15
15
  },
16
16
  "dependencies": {
17
- "svelte": "^5.56.8"
17
+ "svelte": "^5.56.9"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@rsbuild/plugin-svelte": "^2.0.1",
21
- "@testing-library/jest-dom": "^7.0.0",
21
+ "@testing-library/jest-dom": "^7.0.1",
22
22
  "@testing-library/svelte": "^5.4.2",
23
23
  "happy-dom": "^20.11.2",
24
24
  "prettier-plugin-svelte": "^4.1.1",
25
- "rstack": "^0.6.0"
25
+ "rstack": "^0.6.2"
26
26
  }
27
27
  }
@@ -1,10 +1,9 @@
1
1
  // @ts-check
2
- // Rstack configuration guide: https://rstack.rs/config
2
+ // Configuration guide: https://rstack.rs/config
3
3
  import { define } from 'rstack';
4
4
 
5
5
  define.app(async () => {
6
6
  const { pluginSvelte } = await import('@rsbuild/plugin-svelte');
7
-
8
7
  return {
9
8
  plugins: [pluginSvelte()],
10
9
  };
@@ -14,11 +13,13 @@ define.test({
14
13
  setupFiles: ['./tests/rstest.setup.js'],
15
14
  });
16
15
 
17
- define.lint(async () => {
18
- const { js } = await import('rstack/lint');
19
-
20
- return [js.configs.recommended];
21
- });
16
+ define.lint(({ js, rstestPlugin }) => [
17
+ js.configs.recommended,
18
+ {
19
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
20
+ ...rstestPlugin.configs.recommended,
21
+ },
22
+ ]);
22
23
 
23
24
  define.fmt({
24
25
  plugins: ['prettier-plugin-svelte'],
@@ -14,17 +14,17 @@
14
14
  "test:watch": "rs test --watch"
15
15
  },
16
16
  "dependencies": {
17
- "svelte": "^5.56.8"
17
+ "svelte": "^5.56.9"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@rsbuild/plugin-svelte": "^2.0.1",
21
- "@testing-library/jest-dom": "^7.0.0",
21
+ "@testing-library/jest-dom": "^7.0.1",
22
22
  "@testing-library/svelte": "^5.4.2",
23
23
  "@types/node": "^24.13.3",
24
24
  "happy-dom": "^20.11.2",
25
25
  "prettier-plugin-svelte": "^4.1.1",
26
- "rstack": "^0.6.0",
27
- "svelte-check": "^4.7.5",
26
+ "rstack": "^0.6.2",
27
+ "svelte-check": "^4.7.6",
28
28
  "typescript": "^6.0.3"
29
29
  }
30
30
  }
@@ -1,9 +1,8 @@
1
- // Rstack configuration guide: https://rstack.rs/config
1
+ // Configuration guide: https://rstack.rs/config
2
2
  import { define } from 'rstack';
3
3
 
4
4
  define.app(async () => {
5
5
  const { pluginSvelte } = await import('@rsbuild/plugin-svelte');
6
-
7
6
  return {
8
7
  plugins: [pluginSvelte()],
9
8
  };
@@ -13,11 +12,14 @@ define.test({
13
12
  setupFiles: ['./tests/rstest.setup.ts'],
14
13
  });
15
14
 
16
- define.lint(async () => {
17
- const { js, ts } = await import('rstack/lint');
18
-
19
- return [js.configs.recommended, ts.configs.recommendedTypeChecked];
20
- });
15
+ define.lint(({ js, ts, rstestPlugin }) => [
16
+ js.configs.recommended,
17
+ ts.configs.recommendedTypeChecked,
18
+ {
19
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
20
+ ...rstestPlugin.configs.recommended,
21
+ },
22
+ ]);
21
23
 
22
24
  define.fmt({
23
25
  plugins: ['prettier-plugin-svelte'],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
- "types": ["rstack/types", "node", "@testing-library/jest-dom"]
4
+ "types": ["rstack/types", "node", "svelte", "@testing-library/jest-dom"]
5
5
  },
6
6
  "include": ["./"]
7
7
  }
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@testing-library/dom": "^10.4.1",
18
- "@testing-library/jest-dom": "^7.0.0",
18
+ "@testing-library/jest-dom": "^7.0.1",
19
19
  "happy-dom": "^20.11.2",
20
- "rstack": "^0.6.0"
20
+ "rstack": "^0.6.2"
21
21
  }
22
22
  }
@@ -1,5 +1,5 @@
1
1
  // @ts-check
2
- // Rstack configuration guide: https://rstack.rs/config
2
+ // Configuration guide: https://rstack.rs/config
3
3
  import { define } from 'rstack';
4
4
 
5
5
  define.app({
@@ -10,11 +10,13 @@ define.test({
10
10
  setupFiles: ['./tests/rstest.setup.js'],
11
11
  });
12
12
 
13
- define.lint(async () => {
14
- const { js } = await import('rstack/lint');
15
-
16
- return [js.configs.recommended];
17
- });
13
+ define.lint(({ js, rstestPlugin }) => [
14
+ js.configs.recommended,
15
+ {
16
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
17
+ ...rstestPlugin.configs.recommended,
18
+ },
19
+ ]);
18
20
 
19
21
  define.fmt({
20
22
  singleQuote: true,
@@ -1,7 +1,7 @@
1
1
  import { expect, test } from 'rstack/test';
2
2
  import { screen } from '@testing-library/dom';
3
3
 
4
- test('test dom', () => {
4
+ test('renders content', () => {
5
5
  document.body.innerHTML = `
6
6
  <span data-testid="not-empty"><span data-testid="empty"></span></span>
7
7
  <div data-testid="visible">Visible Example</div>
@@ -15,10 +15,10 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@testing-library/dom": "^10.4.1",
18
- "@testing-library/jest-dom": "^7.0.0",
18
+ "@testing-library/jest-dom": "^7.0.1",
19
19
  "@types/node": "^24.13.3",
20
20
  "happy-dom": "^20.11.2",
21
- "rstack": "^0.6.0",
21
+ "rstack": "^0.6.2",
22
22
  "typescript": "^7.0.2"
23
23
  }
24
24
  }
@@ -1,4 +1,4 @@
1
- // Rstack configuration guide: https://rstack.rs/config
1
+ // Configuration guide: https://rstack.rs/config
2
2
  import { define } from 'rstack';
3
3
 
4
4
  define.app({
@@ -9,11 +9,14 @@ define.test({
9
9
  setupFiles: ['./tests/rstest.setup.ts'],
10
10
  });
11
11
 
12
- define.lint(async () => {
13
- const { js, ts } = await import('rstack/lint');
14
-
15
- return [js.configs.recommended, ts.configs.recommendedTypeChecked];
16
- });
12
+ define.lint(({ js, ts, rstestPlugin }) => [
13
+ js.configs.recommended,
14
+ ts.configs.recommendedTypeChecked,
15
+ {
16
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
17
+ ...rstestPlugin.configs.recommended,
18
+ },
19
+ ]);
17
20
 
18
21
  define.fmt({
19
22
  singleQuote: true,
@@ -1,7 +1,7 @@
1
1
  import { expect, test } from 'rstack/test';
2
2
  import { screen } from '@testing-library/dom';
3
3
 
4
- test('test dom', () => {
4
+ test('renders content', () => {
5
5
  document.body.innerHTML = `
6
6
  <span data-testid="not-empty"><span data-testid="empty"></span></span>
7
7
  <div data-testid="visible">Visible Example</div>