create-rstack 3.0.0 → 3.1.1
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/README.md +13 -13
- package/dist/index.js +40 -48
- package/package.json +3 -3
- package/{template-app-lit-js → template-app-lit}/package.json +3 -3
- package/template-app-lit-ts/package.json +2 -2
- package/{template-app-preact-js → template-app-preact}/package.json +3 -3
- package/template-app-preact-ts/package.json +2 -2
- package/{template-app-react-js → template-app-react}/package.json +3 -3
- package/template-app-react-ts/package.json +2 -2
- package/{template-app-solid-js → template-app-solid}/package.json +3 -3
- package/template-app-solid-ts/package.json +2 -2
- package/{template-app-svelte-js → template-app-svelte}/package.json +3 -3
- package/template-app-svelte-ts/package.json +2 -2
- package/{template-app-vanilla-js → template-app-vanilla}/package.json +3 -3
- package/template-app-vanilla-ts/package.json +2 -2
- package/{template-app-vue-js → template-app-vue}/package.json +3 -3
- package/template-app-vue-ts/package.json +2 -2
- package/template-common/README.md +10 -19
- package/template-doc/README.md +23 -0
- package/{template-doc-basic → template-doc}/package.json +3 -3
- package/template-doc-i18n/README.md +8 -19
- package/template-doc-i18n/package.json +2 -2
- package/template-lib-node/README.md +24 -0
- package/{template-lib-node-js → template-lib-node}/package.json +3 -3
- package/template-lib-node-ts/README.md +9 -25
- package/template-lib-node-ts/package.json +2 -2
- package/template-lib-react/README.md +24 -0
- package/{template-lib-react-js → template-lib-react}/package.json +3 -3
- package/template-lib-react-ts/README.md +9 -25
- package/template-lib-react-ts/package.json +2 -2
- package/template-lib-solid/README.md +24 -0
- package/{template-lib-solid-js → template-lib-solid}/package.json +3 -3
- package/template-lib-solid-ts/README.md +9 -25
- package/template-lib-solid-ts/package.json +2 -2
- package/template-lib-svelte/README.md +24 -0
- package/{template-lib-svelte-js → template-lib-svelte}/package.json +3 -3
- package/template-lib-svelte-ts/README.md +9 -25
- package/template-lib-svelte-ts/package.json +2 -2
- package/template-lib-vue/README.md +24 -0
- package/{template-lib-vue-js → template-lib-vue}/package.json +3 -3
- package/template-lib-vue-ts/README.md +9 -25
- package/template-lib-vue-ts/package.json +2 -2
- package/template-doc-basic/README.md +0 -34
- package/template-lib-node-js/README.md +0 -40
- package/template-lib-react-js/README.md +0 -40
- package/template-lib-solid-js/README.md +0 -40
- package/template-lib-svelte-js/README.md +0 -40
- package/template-lib-vue-js/README.md +0 -40
- /package/{template-app-lit-js → template-app-lit}/rstack.config.js +0 -0
- /package/{template-app-lit-js → template-app-lit}/src/index.css +0 -0
- /package/{template-app-lit-js → template-app-lit}/src/index.html +0 -0
- /package/{template-app-lit-js → template-app-lit}/src/index.js +0 -0
- /package/{template-app-lit-js → template-app-lit}/src/my-element.js +0 -0
- /package/{template-app-lit-js → template-app-lit}/tests/index.test.js +0 -0
- /package/{template-app-preact-js → template-app-preact}/rstack.config.js +0 -0
- /package/{template-app-preact-js → template-app-preact}/src/App.css +0 -0
- /package/{template-app-preact-js → template-app-preact}/src/App.jsx +0 -0
- /package/{template-app-preact-js → template-app-preact}/src/index.jsx +0 -0
- /package/{template-app-preact-js → template-app-preact}/tests/index.test.jsx +0 -0
- /package/{template-app-preact-js → template-app-preact}/tests/rstest.setup.js +0 -0
- /package/{template-app-react-js → template-app-react}/rstack.config.js +0 -0
- /package/{template-app-react-js → template-app-react}/src/App.css +0 -0
- /package/{template-app-react-js → template-app-react}/src/App.jsx +0 -0
- /package/{template-app-react-js → template-app-react}/src/index.jsx +0 -0
- /package/{template-app-react-js → template-app-react}/tests/index.test.jsx +0 -0
- /package/{template-app-react-js → template-app-react}/tests/rstest.setup.js +0 -0
- /package/{template-app-solid-js → template-app-solid}/rstack.config.js +0 -0
- /package/{template-app-solid-js → template-app-solid}/src/App.css +0 -0
- /package/{template-app-solid-js → template-app-solid}/src/App.jsx +0 -0
- /package/{template-app-solid-js → template-app-solid}/src/index.jsx +0 -0
- /package/{template-app-solid-js → template-app-solid}/tests/index.test.jsx +0 -0
- /package/{template-app-solid-js → template-app-solid}/tests/rstest.setup.js +0 -0
- /package/{template-app-svelte-js → template-app-svelte}/pnpm-workspace.yaml +0 -0
- /package/{template-app-svelte-js → template-app-svelte}/rstack.config.js +0 -0
- /package/{template-app-svelte-js → template-app-svelte}/src/App.svelte +0 -0
- /package/{template-app-svelte-js → template-app-svelte}/src/index.css +0 -0
- /package/{template-app-svelte-js → template-app-svelte}/src/index.js +0 -0
- /package/{template-app-svelte-js → template-app-svelte}/tests/index.test.js +0 -0
- /package/{template-app-svelte-js → template-app-svelte}/tests/rstest.setup.js +0 -0
- /package/{template-app-vanilla-js → template-app-vanilla}/rstack.config.js +0 -0
- /package/{template-app-vanilla-js → template-app-vanilla}/src/index.css +0 -0
- /package/{template-app-vanilla-js → template-app-vanilla}/src/index.js +0 -0
- /package/{template-app-vanilla-js → template-app-vanilla}/tests/dom.test.js +0 -0
- /package/{template-app-vanilla-js → template-app-vanilla}/tests/rstest.setup.js +0 -0
- /package/{template-app-vue-js → template-app-vue}/rstack.config.js +0 -0
- /package/{template-app-vue-js → template-app-vue}/src/App.vue +0 -0
- /package/{template-app-vue-js → template-app-vue}/src/index.css +0 -0
- /package/{template-app-vue-js → template-app-vue}/src/index.js +0 -0
- /package/{template-app-vue-js → template-app-vue}/tests/index.test.js +0 -0
- /package/{template-app-vue-js → template-app-vue}/tests/rstest.setup.js +0 -0
- /package/{template-doc-basic → template-doc}/docs/_nav.json +0 -0
- /package/{template-doc-basic → template-doc}/docs/api/_meta.json +0 -0
- /package/{template-doc-basic → template-doc}/docs/api/commands.mdx +0 -0
- /package/{template-doc-basic → template-doc}/docs/api/index.mdx +0 -0
- /package/{template-doc-basic → template-doc}/docs/guide/_meta.json +0 -0
- /package/{template-doc-basic → template-doc}/docs/guide/start/_meta.json +0 -0
- /package/{template-doc-basic → template-doc}/docs/guide/start/introduction.md +0 -0
- /package/{template-doc-basic → template-doc}/docs/index.md +0 -0
- /package/{template-doc-basic → template-doc}/gitignore +0 -0
- /package/{template-doc-basic → template-doc}/rstack.config.ts +0 -0
- /package/{template-doc-basic → template-doc}/tsconfig.json +0 -0
- /package/{template-lib-node-js → template-lib-node}/rstack.config.js +0 -0
- /package/{template-lib-node-js → template-lib-node}/src/index.js +0 -0
- /package/{template-lib-node-js → template-lib-node}/tests/index.test.js +0 -0
- /package/{template-lib-react-js → template-lib-react}/rstack.config.js +0 -0
- /package/{template-lib-react-js → template-lib-react}/src/Button.jsx +0 -0
- /package/{template-lib-react-js → template-lib-react}/src/button.css +0 -0
- /package/{template-lib-react-js → template-lib-react}/src/index.jsx +0 -0
- /package/{template-lib-react-js → template-lib-react}/tests/index.test.jsx +0 -0
- /package/{template-lib-react-js → template-lib-react}/tests/rstest.setup.js +0 -0
- /package/{template-lib-solid-js → template-lib-solid}/rstack.config.js +0 -0
- /package/{template-lib-solid-js → template-lib-solid}/src/Button.jsx +0 -0
- /package/{template-lib-solid-js → template-lib-solid}/src/button.css +0 -0
- /package/{template-lib-solid-js → template-lib-solid}/src/index.jsx +0 -0
- /package/{template-lib-solid-js → template-lib-solid}/tests/index.test.jsx +0 -0
- /package/{template-lib-solid-js → template-lib-solid}/tests/rstest.setup.js +0 -0
- /package/{template-lib-svelte-js → template-lib-svelte}/pnpm-workspace.yaml +0 -0
- /package/{template-lib-svelte-js → template-lib-svelte}/rstack.config.js +0 -0
- /package/{template-lib-svelte-js → template-lib-svelte}/src/Button.svelte +0 -0
- /package/{template-lib-svelte-js → template-lib-svelte}/src/button.css +0 -0
- /package/{template-lib-svelte-js → template-lib-svelte}/src/index.js +0 -0
- /package/{template-lib-svelte-js → template-lib-svelte}/tests/index.test.js +0 -0
- /package/{template-lib-vue-js → template-lib-vue}/rstack.config.js +0 -0
- /package/{template-lib-vue-js → template-lib-vue}/src/Button.vue +0 -0
- /package/{template-lib-vue-js → template-lib-vue}/src/button.css +0 -0
- /package/{template-lib-vue-js → template-lib-vue}/src/index.js +0 -0
- /package/{template-lib-vue-js → template-lib-vue}/tests/index.test.js +0 -0
- /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
|
|
27
|
+
- `app-vanilla` - JavaScript Vanilla application
|
|
28
28
|
- `app-vanilla-ts` - TypeScript Vanilla application
|
|
29
|
-
- `app-react
|
|
29
|
+
- `app-react` - JavaScript React application
|
|
30
30
|
- `app-react-ts` - TypeScript React application
|
|
31
|
-
- `app-preact
|
|
31
|
+
- `app-preact` - JavaScript Preact application
|
|
32
32
|
- `app-preact-ts` - TypeScript Preact application
|
|
33
|
-
- `app-vue
|
|
33
|
+
- `app-vue` - JavaScript Vue application
|
|
34
34
|
- `app-vue-ts` - TypeScript Vue application
|
|
35
|
-
- `app-lit
|
|
35
|
+
- `app-lit` - JavaScript Lit application
|
|
36
36
|
- `app-lit-ts` - TypeScript Lit application
|
|
37
|
-
- `app-svelte
|
|
37
|
+
- `app-svelte` - JavaScript Svelte application
|
|
38
38
|
- `app-svelte-ts` - TypeScript Svelte application
|
|
39
|
-
- `app-solid
|
|
39
|
+
- `app-solid` - JavaScript Solid application
|
|
40
40
|
- `app-solid-ts` - TypeScript Solid application
|
|
41
|
-
- `lib-node
|
|
41
|
+
- `lib-node` - JavaScript Node.js library
|
|
42
42
|
- `lib-node-ts` - TypeScript Node.js library
|
|
43
|
-
- `lib-react
|
|
43
|
+
- `lib-react` - JavaScript React library
|
|
44
44
|
- `lib-react-ts` - TypeScript React library
|
|
45
|
-
- `lib-vue
|
|
45
|
+
- `lib-vue` - JavaScript Vue library
|
|
46
46
|
- `lib-vue-ts` - TypeScript Vue library
|
|
47
|
-
- `lib-svelte
|
|
47
|
+
- `lib-svelte` - JavaScript Svelte library
|
|
48
48
|
- `lib-svelte-ts` - TypeScript Svelte library
|
|
49
|
-
- `lib-solid
|
|
49
|
+
- `lib-solid` - JavaScript Solid library
|
|
50
50
|
- `lib-solid-ts` - TypeScript Solid library
|
|
51
|
-
- `doc
|
|
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 (
|
|
8
|
-
|
|
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
|
|
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
|
-
|
|
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 =
|
|
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.
|
|
3
|
+
"version": "3.1.1",
|
|
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.
|
|
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.
|
|
37
|
+
"rstack": "0.5.1"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=22.12.0"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "rstack-app-lit
|
|
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
|
|
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.
|
|
21
|
+
"rstack": "^0.5.1"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rs build",
|
|
8
|
-
"check": "rs
|
|
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.
|
|
22
|
+
"rstack": "^0.5.1",
|
|
23
23
|
"typescript": "^7.0.2"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "rstack-app-preact
|
|
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
|
|
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.
|
|
24
|
+
"rstack": "^0.5.1"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rs build",
|
|
8
|
-
"check": "rs
|
|
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.
|
|
25
|
+
"rstack": "^0.5.1",
|
|
26
26
|
"typescript": "^7.0.2"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "rstack-app-react
|
|
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
|
|
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.
|
|
26
|
+
"rstack": "^0.5.1"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rs build",
|
|
8
|
-
"check": "rs
|
|
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.
|
|
29
|
+
"rstack": "^0.5.1",
|
|
30
30
|
"typescript": "^7.0.2"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "rstack-app-solid
|
|
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
|
|
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.
|
|
25
|
+
"rstack": "^0.5.1"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rs build",
|
|
8
|
-
"check": "rs
|
|
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.
|
|
26
|
+
"rstack": "^0.5.1",
|
|
27
27
|
"typescript": "^7.0.2"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "rstack-app-svelte
|
|
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
|
|
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.
|
|
25
|
+
"rstack": "^0.5.1"
|
|
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
|
|
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.
|
|
26
|
+
"rstack": "^0.5.1",
|
|
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
|
|
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
|
|
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.
|
|
20
|
+
"rstack": "^0.5.1"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rs build",
|
|
8
|
-
"check": "rs
|
|
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.
|
|
21
|
+
"rstack": "^0.5.1",
|
|
22
22
|
"typescript": "^7.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "rstack-app-vue
|
|
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
|
|
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.
|
|
24
|
+
"rstack": "^0.5.1"
|
|
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
|
|
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.
|
|
25
|
+
"rstack": "^0.5.1",
|
|
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
|
-
##
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
{{ packageManager }} run
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
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
|
|
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.
|
|
21
|
+
"rstack": "^0.5.1",
|
|
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
|
-
##
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
{{ packageManager }} run
|
|
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
|
|
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.
|
|
21
|
+
"rstack": "^0.5.1",
|
|
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)
|