create-rstack 3.0.0 → 3.1.0

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 (128) hide show
  1. package/README.md +13 -13
  2. package/dist/index.js +40 -48
  3. package/package.json +3 -3
  4. package/{template-app-lit-js → template-app-lit}/package.json +3 -3
  5. package/template-app-lit-ts/package.json +2 -2
  6. package/{template-app-preact-js → template-app-preact}/package.json +3 -3
  7. package/template-app-preact-ts/package.json +2 -2
  8. package/{template-app-react-js → template-app-react}/package.json +3 -3
  9. package/template-app-react-ts/package.json +2 -2
  10. package/{template-app-solid-js → template-app-solid}/package.json +3 -3
  11. package/template-app-solid-ts/package.json +2 -2
  12. package/{template-app-svelte-js → template-app-svelte}/package.json +3 -3
  13. package/template-app-svelte-ts/package.json +2 -2
  14. package/{template-app-vanilla-js → template-app-vanilla}/package.json +3 -3
  15. package/template-app-vanilla-ts/package.json +2 -2
  16. package/{template-app-vue-js → template-app-vue}/package.json +3 -3
  17. package/template-app-vue-ts/package.json +2 -2
  18. package/template-common/README.md +10 -19
  19. package/template-doc/README.md +23 -0
  20. package/{template-doc-basic → template-doc}/package.json +3 -3
  21. package/template-doc-i18n/README.md +8 -19
  22. package/template-doc-i18n/package.json +2 -2
  23. package/template-lib-node/README.md +24 -0
  24. package/{template-lib-node-js → template-lib-node}/package.json +3 -3
  25. package/template-lib-node-ts/README.md +9 -25
  26. package/template-lib-node-ts/package.json +2 -2
  27. package/template-lib-react/README.md +24 -0
  28. package/{template-lib-react-js → template-lib-react}/package.json +3 -3
  29. package/template-lib-react-ts/README.md +9 -25
  30. package/template-lib-react-ts/package.json +2 -2
  31. package/template-lib-solid/README.md +24 -0
  32. package/{template-lib-solid-js → template-lib-solid}/package.json +3 -3
  33. package/template-lib-solid-ts/README.md +9 -25
  34. package/template-lib-solid-ts/package.json +2 -2
  35. package/template-lib-svelte/README.md +24 -0
  36. package/{template-lib-svelte-js → template-lib-svelte}/package.json +3 -3
  37. package/template-lib-svelte-ts/README.md +9 -25
  38. package/template-lib-svelte-ts/package.json +2 -2
  39. package/template-lib-vue/README.md +24 -0
  40. package/{template-lib-vue-js → template-lib-vue}/package.json +3 -3
  41. package/template-lib-vue-ts/README.md +9 -25
  42. package/template-lib-vue-ts/package.json +2 -2
  43. package/template-doc-basic/README.md +0 -34
  44. package/template-lib-node-js/README.md +0 -40
  45. package/template-lib-react-js/README.md +0 -40
  46. package/template-lib-solid-js/README.md +0 -40
  47. package/template-lib-svelte-js/README.md +0 -40
  48. package/template-lib-vue-js/README.md +0 -40
  49. /package/{template-app-lit-js → template-app-lit}/rstack.config.js +0 -0
  50. /package/{template-app-lit-js → template-app-lit}/src/index.css +0 -0
  51. /package/{template-app-lit-js → template-app-lit}/src/index.html +0 -0
  52. /package/{template-app-lit-js → template-app-lit}/src/index.js +0 -0
  53. /package/{template-app-lit-js → template-app-lit}/src/my-element.js +0 -0
  54. /package/{template-app-lit-js → template-app-lit}/tests/index.test.js +0 -0
  55. /package/{template-app-preact-js → template-app-preact}/rstack.config.js +0 -0
  56. /package/{template-app-preact-js → template-app-preact}/src/App.css +0 -0
  57. /package/{template-app-preact-js → template-app-preact}/src/App.jsx +0 -0
  58. /package/{template-app-preact-js → template-app-preact}/src/index.jsx +0 -0
  59. /package/{template-app-preact-js → template-app-preact}/tests/index.test.jsx +0 -0
  60. /package/{template-app-preact-js → template-app-preact}/tests/rstest.setup.js +0 -0
  61. /package/{template-app-react-js → template-app-react}/rstack.config.js +0 -0
  62. /package/{template-app-react-js → template-app-react}/src/App.css +0 -0
  63. /package/{template-app-react-js → template-app-react}/src/App.jsx +0 -0
  64. /package/{template-app-react-js → template-app-react}/src/index.jsx +0 -0
  65. /package/{template-app-react-js → template-app-react}/tests/index.test.jsx +0 -0
  66. /package/{template-app-react-js → template-app-react}/tests/rstest.setup.js +0 -0
  67. /package/{template-app-solid-js → template-app-solid}/rstack.config.js +0 -0
  68. /package/{template-app-solid-js → template-app-solid}/src/App.css +0 -0
  69. /package/{template-app-solid-js → template-app-solid}/src/App.jsx +0 -0
  70. /package/{template-app-solid-js → template-app-solid}/src/index.jsx +0 -0
  71. /package/{template-app-solid-js → template-app-solid}/tests/index.test.jsx +0 -0
  72. /package/{template-app-solid-js → template-app-solid}/tests/rstest.setup.js +0 -0
  73. /package/{template-app-svelte-js → template-app-svelte}/pnpm-workspace.yaml +0 -0
  74. /package/{template-app-svelte-js → template-app-svelte}/rstack.config.js +0 -0
  75. /package/{template-app-svelte-js → template-app-svelte}/src/App.svelte +0 -0
  76. /package/{template-app-svelte-js → template-app-svelte}/src/index.css +0 -0
  77. /package/{template-app-svelte-js → template-app-svelte}/src/index.js +0 -0
  78. /package/{template-app-svelte-js → template-app-svelte}/tests/index.test.js +0 -0
  79. /package/{template-app-svelte-js → template-app-svelte}/tests/rstest.setup.js +0 -0
  80. /package/{template-app-vanilla-js → template-app-vanilla}/rstack.config.js +0 -0
  81. /package/{template-app-vanilla-js → template-app-vanilla}/src/index.css +0 -0
  82. /package/{template-app-vanilla-js → template-app-vanilla}/src/index.js +0 -0
  83. /package/{template-app-vanilla-js → template-app-vanilla}/tests/dom.test.js +0 -0
  84. /package/{template-app-vanilla-js → template-app-vanilla}/tests/rstest.setup.js +0 -0
  85. /package/{template-app-vue-js → template-app-vue}/rstack.config.js +0 -0
  86. /package/{template-app-vue-js → template-app-vue}/src/App.vue +0 -0
  87. /package/{template-app-vue-js → template-app-vue}/src/index.css +0 -0
  88. /package/{template-app-vue-js → template-app-vue}/src/index.js +0 -0
  89. /package/{template-app-vue-js → template-app-vue}/tests/index.test.js +0 -0
  90. /package/{template-app-vue-js → template-app-vue}/tests/rstest.setup.js +0 -0
  91. /package/{template-doc-basic → template-doc}/docs/_nav.json +0 -0
  92. /package/{template-doc-basic → template-doc}/docs/api/_meta.json +0 -0
  93. /package/{template-doc-basic → template-doc}/docs/api/commands.mdx +0 -0
  94. /package/{template-doc-basic → template-doc}/docs/api/index.mdx +0 -0
  95. /package/{template-doc-basic → template-doc}/docs/guide/_meta.json +0 -0
  96. /package/{template-doc-basic → template-doc}/docs/guide/start/_meta.json +0 -0
  97. /package/{template-doc-basic → template-doc}/docs/guide/start/introduction.md +0 -0
  98. /package/{template-doc-basic → template-doc}/docs/index.md +0 -0
  99. /package/{template-doc-basic → template-doc}/gitignore +0 -0
  100. /package/{template-doc-basic → template-doc}/rstack.config.ts +0 -0
  101. /package/{template-doc-basic → template-doc}/tsconfig.json +0 -0
  102. /package/{template-lib-node-js → template-lib-node}/rstack.config.js +0 -0
  103. /package/{template-lib-node-js → template-lib-node}/src/index.js +0 -0
  104. /package/{template-lib-node-js → template-lib-node}/tests/index.test.js +0 -0
  105. /package/{template-lib-react-js → template-lib-react}/rstack.config.js +0 -0
  106. /package/{template-lib-react-js → template-lib-react}/src/Button.jsx +0 -0
  107. /package/{template-lib-react-js → template-lib-react}/src/button.css +0 -0
  108. /package/{template-lib-react-js → template-lib-react}/src/index.jsx +0 -0
  109. /package/{template-lib-react-js → template-lib-react}/tests/index.test.jsx +0 -0
  110. /package/{template-lib-react-js → template-lib-react}/tests/rstest.setup.js +0 -0
  111. /package/{template-lib-solid-js → template-lib-solid}/rstack.config.js +0 -0
  112. /package/{template-lib-solid-js → template-lib-solid}/src/Button.jsx +0 -0
  113. /package/{template-lib-solid-js → template-lib-solid}/src/button.css +0 -0
  114. /package/{template-lib-solid-js → template-lib-solid}/src/index.jsx +0 -0
  115. /package/{template-lib-solid-js → template-lib-solid}/tests/index.test.jsx +0 -0
  116. /package/{template-lib-solid-js → template-lib-solid}/tests/rstest.setup.js +0 -0
  117. /package/{template-lib-svelte-js → template-lib-svelte}/pnpm-workspace.yaml +0 -0
  118. /package/{template-lib-svelte-js → template-lib-svelte}/rstack.config.js +0 -0
  119. /package/{template-lib-svelte-js → template-lib-svelte}/src/Button.svelte +0 -0
  120. /package/{template-lib-svelte-js → template-lib-svelte}/src/button.css +0 -0
  121. /package/{template-lib-svelte-js → template-lib-svelte}/src/index.js +0 -0
  122. /package/{template-lib-svelte-js → template-lib-svelte}/tests/index.test.js +0 -0
  123. /package/{template-lib-vue-js → template-lib-vue}/rstack.config.js +0 -0
  124. /package/{template-lib-vue-js → template-lib-vue}/src/Button.vue +0 -0
  125. /package/{template-lib-vue-js → template-lib-vue}/src/button.css +0 -0
  126. /package/{template-lib-vue-js → template-lib-vue}/src/index.js +0 -0
  127. /package/{template-lib-vue-js → template-lib-vue}/tests/index.test.js +0 -0
  128. /package/{template-lib-vue-js → template-lib-vue}/tests/rstest.setup.js +0 -0
package/README.md CHANGED
@@ -24,31 +24,31 @@ npx create-rstack --dir my-project --template app-vanilla-ts --no-git
24
24
 
25
25
  ## Templates
26
26
 
27
- - `app-vanilla-js` - JavaScript Vanilla application
27
+ - `app-vanilla` - JavaScript Vanilla application
28
28
  - `app-vanilla-ts` - TypeScript Vanilla application
29
- - `app-react-js` - JavaScript React application
29
+ - `app-react` - JavaScript React application
30
30
  - `app-react-ts` - TypeScript React application
31
- - `app-preact-js` - JavaScript Preact application
31
+ - `app-preact` - JavaScript Preact application
32
32
  - `app-preact-ts` - TypeScript Preact application
33
- - `app-vue-js` - JavaScript Vue application
33
+ - `app-vue` - JavaScript Vue application
34
34
  - `app-vue-ts` - TypeScript Vue application
35
- - `app-lit-js` - JavaScript Lit application
35
+ - `app-lit` - JavaScript Lit application
36
36
  - `app-lit-ts` - TypeScript Lit application
37
- - `app-svelte-js` - JavaScript Svelte application
37
+ - `app-svelte` - JavaScript Svelte application
38
38
  - `app-svelte-ts` - TypeScript Svelte application
39
- - `app-solid-js` - JavaScript Solid application
39
+ - `app-solid` - JavaScript Solid application
40
40
  - `app-solid-ts` - TypeScript Solid application
41
- - `lib-node-js` - JavaScript Node.js library
41
+ - `lib-node` - JavaScript Node.js library
42
42
  - `lib-node-ts` - TypeScript Node.js library
43
- - `lib-react-js` - JavaScript React library
43
+ - `lib-react` - JavaScript React library
44
44
  - `lib-react-ts` - TypeScript React library
45
- - `lib-vue-js` - JavaScript Vue library
45
+ - `lib-vue` - JavaScript Vue library
46
46
  - `lib-vue-ts` - TypeScript Vue library
47
- - `lib-svelte-js` - JavaScript Svelte library
47
+ - `lib-svelte` - JavaScript Svelte library
48
48
  - `lib-svelte-ts` - TypeScript Svelte library
49
- - `lib-solid-js` - JavaScript Solid library
49
+ - `lib-solid` - JavaScript Solid library
50
50
  - `lib-solid-ts` - TypeScript Solid library
51
- - `doc-basic` - Basic documentation site
51
+ - `doc` - Basic documentation site
52
52
  - `doc-i18n` - Multilingual documentation site
53
53
 
54
54
  ## Documentation
package/dist/index.js CHANGED
@@ -1,25 +1,43 @@
1
1
  import { checkCancel, create, select as create_toolkit_select } from "@rstackjs/create-toolkit";
2
- import { appendFile, mkdir, readFile, writeFile } from "node:fs/promises";
2
+ import { access, appendFile, mkdir, readFile, writeFile } from "node:fs/promises";
3
3
  import node_path from "node:path";
4
4
  const packageRoot = node_path.join(import.meta.dirname, '..');
5
+ const templateNames = [
6
+ 'app-vanilla',
7
+ 'app-vanilla-ts',
8
+ 'app-react',
9
+ 'app-react-ts',
10
+ 'app-preact',
11
+ 'app-preact-ts',
12
+ 'app-vue',
13
+ 'app-vue-ts',
14
+ 'app-lit',
15
+ 'app-lit-ts',
16
+ 'app-svelte',
17
+ 'app-svelte-ts',
18
+ 'app-solid',
19
+ 'app-solid-ts',
20
+ 'lib-node',
21
+ 'lib-node-ts',
22
+ 'lib-react',
23
+ 'lib-react-ts',
24
+ 'lib-vue',
25
+ 'lib-vue-ts',
26
+ 'lib-svelte',
27
+ 'lib-svelte-ts',
28
+ 'lib-solid',
29
+ 'lib-solid-ts',
30
+ 'doc',
31
+ 'doc-i18n'
32
+ ];
33
+ const resolveTemplateName = (template)=>{
34
+ if (!templateNames.includes(template)) throw new Error(`Invalid input: template "${template}" not found.`);
35
+ return template;
36
+ };
5
37
  const getTemplateName = async ({ template })=>{
6
38
  if ('string' == typeof template) {
7
- if ('app' === template || template.startsWith('app-')) {
8
- const [, framework = 'vanilla', language = 'js'] = template.split('-');
9
- if ('js' === framework || 'ts' === framework) return `app-vanilla-${framework}`;
10
- return `app-${framework}-${language}`;
11
- }
12
- if ('lib' === template || template.startsWith('lib-')) {
13
- const [, libraryType = 'node', language = 'js'] = template.split('-');
14
- if ('js' === libraryType || 'ts' === libraryType) return `lib-node-${libraryType}`;
15
- return `lib-${libraryType}-${language}`;
16
- }
17
- if ('doc' === template || template.startsWith('doc-')) {
18
- const [, documentationType = 'basic'] = template.split('-');
19
- return `doc-${documentationType}`;
20
- }
21
- const [type, language = 'js'] = template.split('-');
22
- return `${type}-${language}`;
39
+ if (/^(?:app|lib|doc)(?:-|$)/u.test(template)) return resolveTemplateName(template);
40
+ return template;
23
41
  }
24
42
  const projectType = checkCancel(await create_toolkit_select({
25
43
  message: 'Select project type',
@@ -55,7 +73,7 @@ const getTemplateName = async ({ template })=>{
55
73
  }
56
74
  ]
57
75
  }));
58
- return `doc-${documentationType}`;
76
+ return resolveTemplateName('basic' === documentationType ? 'doc' : 'doc-i18n');
59
77
  }
60
78
  const templateType = checkCancel(await create_toolkit_select({
61
79
  message: 'app' === projectType ? 'Select framework' : 'Select library type',
@@ -124,7 +142,8 @@ const getTemplateName = async ({ template })=>{
124
142
  }
125
143
  ]
126
144
  }));
127
- return `${projectType}-${templateType}-${language}`;
145
+ const templateName = `${projectType}-${templateType}${'ts' === language ? '-ts' : ''}`;
146
+ return resolveTemplateName(templateName);
128
147
  };
129
148
  const getStagedConfig = (templateName)=>{
130
149
  const scriptExtensions = [
@@ -166,7 +185,7 @@ const getStagedConfig = (templateName)=>{
166
185
  };
167
186
  const injectStagedSetup = async ({ templateName, distFolder, gitEnabled, isGitRoot })=>{
168
187
  if (!gitEnabled || !isGitRoot) return;
169
- const configExtension = templateName.endsWith('-js') ? 'js' : 'ts';
188
+ const configExtension = await access(node_path.join(distFolder, 'rstack.config.ts')).then(()=>'ts', ()=>'js');
170
189
  const packageJsonPath = node_path.join(distFolder, 'package.json');
171
190
  const packageJson = JSON.parse(await readFile(packageJsonPath, 'utf8'));
172
191
  packageJson.scripts = Object.fromEntries(Object.entries({
@@ -186,34 +205,7 @@ const injectStagedSetup = async ({ templateName, distFolder, gitEnabled, isGitRo
186
205
  await create({
187
206
  root: packageRoot,
188
207
  name: 'rstack',
189
- templates: [
190
- 'app-vanilla-js',
191
- 'app-vanilla-ts',
192
- 'app-react-js',
193
- 'app-react-ts',
194
- 'app-preact-js',
195
- 'app-preact-ts',
196
- 'app-vue-js',
197
- 'app-vue-ts',
198
- 'app-lit-js',
199
- 'app-lit-ts',
200
- 'app-svelte-js',
201
- 'app-svelte-ts',
202
- 'app-solid-js',
203
- 'app-solid-ts',
204
- 'lib-node-js',
205
- 'lib-node-ts',
206
- 'lib-react-js',
207
- 'lib-react-ts',
208
- 'lib-vue-js',
209
- 'lib-vue-ts',
210
- 'lib-svelte-js',
211
- 'lib-svelte-ts',
212
- 'lib-solid-js',
213
- 'lib-solid-ts',
214
- 'doc-basic',
215
- 'doc-i18n'
216
- ],
208
+ templates: templateNames,
217
209
  builtinTools: [],
218
210
  getTemplateName: getTemplateName,
219
211
  onGitResolved: injectStagedSetup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rstack",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Create a new Rstack project",
5
5
  "homepage": "https://rstack.rs",
6
6
  "bugs": {
@@ -29,12 +29,12 @@
29
29
  "bin.js"
30
30
  ],
31
31
  "dependencies": {
32
- "@rstackjs/create-toolkit": "2.2.2"
32
+ "@rstackjs/create-toolkit": "2.2.3"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "^24.13.3",
36
36
  "typescript": "^7.0.2",
37
- "rstack": "0.5.0-alpha.1"
37
+ "rstack": "0.5.0"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=22.12.0"
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "rstack-app-lit-js",
2
+ "name": "rstack-app-lit",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint && rs fmt --check",
8
+ "check": "rs check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -18,6 +18,6 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "happy-dom": "^20.11.2",
21
- "rstack": "^0.4.0"
21
+ "rstack": "^0.5.0"
22
22
  }
23
23
  }
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint --type-check && rs fmt --check",
8
+ "check": "rs check --type-check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -19,7 +19,7 @@
19
19
  "devDependencies": {
20
20
  "@types/node": "^24.13.3",
21
21
  "happy-dom": "^20.11.2",
22
- "rstack": "^0.4.0",
22
+ "rstack": "^0.5.0",
23
23
  "typescript": "^7.0.2"
24
24
  }
25
25
  }
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "rstack-app-preact-js",
2
+ "name": "rstack-app-preact",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint && rs fmt --check",
8
+ "check": "rs check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -21,6 +21,6 @@
21
21
  "@testing-library/jest-dom": "^7.0.0",
22
22
  "@testing-library/preact": "^3.2.4",
23
23
  "happy-dom": "^20.11.2",
24
- "rstack": "^0.4.0"
24
+ "rstack": "^0.5.0"
25
25
  }
26
26
  }
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint --type-check && rs fmt --check",
8
+ "check": "rs check --type-check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -22,7 +22,7 @@
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.4.0",
25
+ "rstack": "^0.5.0",
26
26
  "typescript": "^7.0.2"
27
27
  }
28
28
  }
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "rstack-app-react-js",
2
+ "name": "rstack-app-react",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint && rs fmt --check",
8
+ "check": "rs check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -23,6 +23,6 @@
23
23
  "@testing-library/jest-dom": "^7.0.0",
24
24
  "@testing-library/react": "^16.3.2",
25
25
  "happy-dom": "^20.11.2",
26
- "rstack": "^0.4.0"
26
+ "rstack": "^0.5.0"
27
27
  }
28
28
  }
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint --type-check && rs fmt --check",
8
+ "check": "rs check --type-check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -26,7 +26,7 @@
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.4.0",
29
+ "rstack": "^0.5.0",
30
30
  "typescript": "^7.0.2"
31
31
  }
32
32
  }
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "rstack-app-solid-js",
2
+ "name": "rstack-app-solid",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint && rs fmt --check",
8
+ "check": "rs check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -22,6 +22,6 @@
22
22
  "@solidjs/testing-library": "^0.8.10",
23
23
  "@testing-library/jest-dom": "^7.0.0",
24
24
  "happy-dom": "^20.11.2",
25
- "rstack": "^0.4.0"
25
+ "rstack": "^0.5.0"
26
26
  }
27
27
  }
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint --type-check && rs fmt --check",
8
+ "check": "rs check --type-check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -23,7 +23,7 @@
23
23
  "@testing-library/jest-dom": "^7.0.0",
24
24
  "@types/node": "^24.13.3",
25
25
  "happy-dom": "^20.11.2",
26
- "rstack": "^0.4.0",
26
+ "rstack": "^0.5.0",
27
27
  "typescript": "^7.0.2"
28
28
  }
29
29
  }
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "rstack-app-svelte-js",
2
+ "name": "rstack-app-svelte",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint && rs fmt --check",
8
+ "check": "rs check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -22,6 +22,6 @@
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.4.0"
25
+ "rstack": "^0.5.0"
26
26
  }
27
27
  }
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "svelte-check && rs build",
8
- "check": "rs lint && rs fmt --check",
8
+ "check": "rs check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -23,7 +23,7 @@
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.4.0",
26
+ "rstack": "^0.5.0",
27
27
  "svelte-check": "^4.7.5",
28
28
  "typescript": "^6.0.3"
29
29
  }
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "rstack-app-vanilla-js",
2
+ "name": "rstack-app-vanilla",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint && rs fmt --check",
8
+ "check": "rs check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -17,6 +17,6 @@
17
17
  "@testing-library/dom": "^10.4.1",
18
18
  "@testing-library/jest-dom": "^7.0.0",
19
19
  "happy-dom": "^20.11.2",
20
- "rstack": "^0.4.0"
20
+ "rstack": "^0.5.0"
21
21
  }
22
22
  }
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint --type-check && rs fmt --check",
8
+ "check": "rs check --type-check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -18,7 +18,7 @@
18
18
  "@testing-library/jest-dom": "^7.0.0",
19
19
  "@types/node": "^24.13.3",
20
20
  "happy-dom": "^20.11.2",
21
- "rstack": "^0.4.0",
21
+ "rstack": "^0.5.0",
22
22
  "typescript": "^7.0.2"
23
23
  }
24
24
  }
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "rstack-app-vue-js",
2
+ "name": "rstack-app-vue",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs build",
8
- "check": "rs lint && rs fmt --check",
8
+ "check": "rs check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -21,6 +21,6 @@
21
21
  "@testing-library/jest-dom": "^7.0.0",
22
22
  "@vue/test-utils": "^2.4.11",
23
23
  "happy-dom": "^20.11.2",
24
- "rstack": "^0.4.0"
24
+ "rstack": "^0.5.0"
25
25
  }
26
26
  }
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "vue-tsc && rs build",
8
- "check": "rs lint && rs fmt --check",
8
+ "check": "rs check",
9
9
  "dev": "rs dev",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -22,7 +22,7 @@
22
22
  "@types/node": "^24.13.3",
23
23
  "@vue/test-utils": "^2.4.11",
24
24
  "happy-dom": "^20.11.2",
25
- "rstack": "^0.4.0",
25
+ "rstack": "^0.5.0",
26
26
  "typescript": "^6.0.3",
27
27
  "vue-tsc": "^3.3.9"
28
28
  }
@@ -8,25 +8,16 @@ Install the dependencies:
8
8
  {{ packageManager }} install
9
9
  ```
10
10
 
11
- ## Get started
12
-
13
- Start the development server:
14
-
15
- ```bash
16
- {{ packageManager }} run dev
17
- ```
18
-
19
- Build the app for production:
20
-
21
- ```bash
22
- {{ packageManager }} run build
23
- ```
24
-
25
- Preview the production build locally:
26
-
27
- ```bash
28
- {{ packageManager }} run preview
29
- ```
11
+ ## Scripts
12
+
13
+ - `{{ packageManager }} run build`: Build the app for production.
14
+ - `{{ packageManager }} run check`: Run static checks, including lint and format.
15
+ - `{{ packageManager }} run dev`: Run the app dev server.
16
+ - `{{ packageManager }} run format`: Format code.
17
+ - `{{ packageManager }} run lint`: Lint code.
18
+ - `{{ packageManager }} run preview`: Preview the app production build.
19
+ - `{{ packageManager }} run test`: Run tests.
20
+ - `{{ packageManager }} run test:watch`: Run tests in watch mode.
30
21
 
31
22
  ## Learn more
32
23
 
@@ -0,0 +1,23 @@
1
+ # Rstack documentation site
2
+
3
+ ## Setup
4
+
5
+ Install the dependencies:
6
+
7
+ ```bash
8
+ {{ packageManager }} install
9
+ ```
10
+
11
+ ## Scripts
12
+
13
+ - `{{ packageManager }} run build`: Build the documentation site for production.
14
+ - `{{ packageManager }} run check`: Run static checks, including lint and format.
15
+ - `{{ packageManager }} run dev`: Start the documentation dev server.
16
+ - `{{ packageManager }} run format`: Format code.
17
+ - `{{ packageManager }} run lint`: Lint code.
18
+ - `{{ packageManager }} run preview`: Preview the production build locally.
19
+
20
+ ## Learn more
21
+
22
+ - [Rstack documentation](https://rstack.rs)
23
+ - [Rspress documentation](https://rspress.rs)
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "rstack-doc-basic",
2
+ "name": "rstack-doc",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs doc build",
8
- "check": "rs lint --type-check && rs fmt --check",
8
+ "check": "rs check --type-check",
9
9
  "dev": "rs doc",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -18,7 +18,7 @@
18
18
  "@types/react-dom": "^19.2.4",
19
19
  "react": "^19.2.8",
20
20
  "react-dom": "^19.2.8",
21
- "rstack": "^0.4.0",
21
+ "rstack": "^0.5.0",
22
22
  "typescript": "^7.0.2"
23
23
  }
24
24
  }
@@ -8,25 +8,14 @@ Install the dependencies:
8
8
  {{ packageManager }} install
9
9
  ```
10
10
 
11
- ## Get started
12
-
13
- Start the development server:
14
-
15
- ```bash
16
- {{ packageManager }} run dev
17
- ```
18
-
19
- Build the website for production:
20
-
21
- ```bash
22
- {{ packageManager }} run build
23
- ```
24
-
25
- Preview the production build locally:
26
-
27
- ```bash
28
- {{ packageManager }} run preview
29
- ```
11
+ ## Scripts
12
+
13
+ - `{{ packageManager }} run build`: Build the documentation site for production.
14
+ - `{{ packageManager }} run check`: Run static checks, including lint and format.
15
+ - `{{ packageManager }} run dev`: Start the documentation dev server.
16
+ - `{{ packageManager }} run format`: Format code.
17
+ - `{{ packageManager }} run lint`: Lint code.
18
+ - `{{ packageManager }} run preview`: Preview the production build locally.
30
19
 
31
20
  ## Learn more
32
21
 
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rs doc build",
8
- "check": "rs lint --type-check && rs fmt --check",
8
+ "check": "rs check --type-check",
9
9
  "dev": "rs doc",
10
10
  "format": "rs fmt",
11
11
  "lint": "rs lint",
@@ -18,7 +18,7 @@
18
18
  "@types/react-dom": "^19.2.4",
19
19
  "react": "^19.2.8",
20
20
  "react-dom": "^19.2.8",
21
- "rstack": "^0.4.0",
21
+ "rstack": "^0.5.0",
22
22
  "typescript": "^7.0.2"
23
23
  }
24
24
  }
@@ -0,0 +1,24 @@
1
+ # Rstack library
2
+
3
+ ## Setup
4
+
5
+ Install the dependencies:
6
+
7
+ ```bash
8
+ {{ packageManager }} install
9
+ ```
10
+
11
+ ## Scripts
12
+
13
+ - `{{ packageManager }} run build`: Build the library.
14
+ - `{{ packageManager }} run check`: Run static checks, including lint and format.
15
+ - `{{ packageManager }} run dev`: Build the library in watch mode.
16
+ - `{{ packageManager }} run format`: Format code.
17
+ - `{{ packageManager }} run lint`: Lint code.
18
+ - `{{ packageManager }} run test`: Run tests.
19
+ - `{{ packageManager }} run test:watch`: Run tests in watch mode.
20
+
21
+ ## Learn more
22
+
23
+ - [Rstack documentation](https://rstack.rs)
24
+ - [Rslib documentation](https://rslib.rs)