@vobs/cli 0.2.0 → 0.3.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.
- package/dist/enterprise-template.d.ts +1 -1
- package/dist/enterprise-template.js +14 -11
- package/dist/scaffold.js +13 -10
- package/package.json +12 -12
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const enterpriseFiles: readonly [{
|
|
6
6
|
readonly path: "package.json";
|
|
7
|
-
readonly content: "{\n \"name\": \"{{packageName}}\",\n \"version\": \"0.1.0\",\n \"private\": true,\n \"type\": \"module\",\n \"scripts\": {\n \"dev\": \"vite\",\n \"build\": \"tsc --noEmit && vite build\",\n \"preview\": \"vite preview\",\n \"typecheck\": \"tsc --noEmit\"\n },\n \"dependencies\": {\n \"@vobs/di\": \"
|
|
7
|
+
readonly content: "{\n \"name\": \"{{packageName}}\",\n \"version\": \"0.1.0\",\n \"private\": true,\n \"type\": \"module\",\n \"engines\": {\n \"node\": \">=22.12.0\"\n },\n \"scripts\": {\n \"dev\": \"vite\",\n \"build\": \"tsc --noEmit && vite build\",\n \"preview\": \"vite preview\",\n \"typecheck\": \"tsc --noEmit\"\n },\n \"dependencies\": {\n \"@vobs/di\": \"0.1.0\",\n \"@vobs/authorization\": \"0.1.0\",\n \"@vobs/forms\": \"0.1.0\",\n \"@vobs/i18n\": \"0.1.0\",\n \"@vobs/reactivity\": \"0.1.0\",\n \"@vobs/router\": \"0.1.0\",\n \"@vobs/runtime-dom\": \"0.1.0\",\n \"@vobs/server-renderer\": \"0.1.0\",\n \"@vobs/ui\": \"0.2.0\"\n },\n \"devDependencies\": {\n \"@vobs/vite-plugin\": \"0.1.0\",\n \"typescript\": \"^5.7.0\",\n \"vite\": \"^8.0.0\"\n }\n}\n";
|
|
8
8
|
}, {
|
|
9
9
|
readonly path: "tsconfig.json";
|
|
10
10
|
readonly content: "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"module\": \"ESNext\",\n \"moduleResolution\": \"Bundler\",\n \"lib\": [\"ES2022\", \"DOM\", \"DOM.Iterable\"],\n \"strict\": true,\n \"skipLibCheck\": true,\n \"isolatedModules\": true,\n \"verbatimModuleSyntax\": true,\n \"types\": [\"@vobs/vite-plugin/client\"]\n },\n \"include\": [\"src/**/*.ts\", \"vite.config.ts\"]\n}\n";
|
|
@@ -7,6 +7,9 @@ const packageJson = `{
|
|
|
7
7
|
"version": "0.1.0",
|
|
8
8
|
"private": true,
|
|
9
9
|
"type": "module",
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=22.12.0"
|
|
12
|
+
},
|
|
10
13
|
"scripts": {
|
|
11
14
|
"dev": "vite",
|
|
12
15
|
"build": "tsc --noEmit && vite build",
|
|
@@ -14,20 +17,20 @@ const packageJson = `{
|
|
|
14
17
|
"typecheck": "tsc --noEmit"
|
|
15
18
|
},
|
|
16
19
|
"dependencies": {
|
|
17
|
-
"@vobs/di": "
|
|
18
|
-
"@vobs/authorization": "
|
|
19
|
-
"@vobs/forms": "
|
|
20
|
-
"@vobs/i18n": "
|
|
21
|
-
"@vobs/reactivity": "
|
|
22
|
-
"@vobs/router": "
|
|
23
|
-
"@vobs/runtime-dom": "
|
|
24
|
-
"@vobs/server-renderer": "
|
|
25
|
-
"@vobs/ui": "
|
|
20
|
+
"@vobs/di": "0.1.0",
|
|
21
|
+
"@vobs/authorization": "0.1.0",
|
|
22
|
+
"@vobs/forms": "0.1.0",
|
|
23
|
+
"@vobs/i18n": "0.1.0",
|
|
24
|
+
"@vobs/reactivity": "0.1.0",
|
|
25
|
+
"@vobs/router": "0.1.0",
|
|
26
|
+
"@vobs/runtime-dom": "0.1.0",
|
|
27
|
+
"@vobs/server-renderer": "0.1.0",
|
|
28
|
+
"@vobs/ui": "0.2.0"
|
|
26
29
|
},
|
|
27
30
|
"devDependencies": {
|
|
28
|
-
"@vobs/vite-plugin": "
|
|
31
|
+
"@vobs/vite-plugin": "0.1.0",
|
|
29
32
|
"typescript": "^5.7.0",
|
|
30
|
-
"vite": "^
|
|
33
|
+
"vite": "^8.0.0"
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
`;
|
package/dist/scaffold.js
CHANGED
|
@@ -142,6 +142,9 @@ function appPackageJson(_withDi) {
|
|
|
142
142
|
"version": "0.1.0",
|
|
143
143
|
"private": true,
|
|
144
144
|
"type": "module",
|
|
145
|
+
"engines": {
|
|
146
|
+
"node": ">=22.12.0"
|
|
147
|
+
},
|
|
145
148
|
"scripts": {
|
|
146
149
|
"dev": "vite",
|
|
147
150
|
"build": "tsc --noEmit && vite build",
|
|
@@ -149,12 +152,12 @@ function appPackageJson(_withDi) {
|
|
|
149
152
|
"typecheck": "tsc --noEmit"
|
|
150
153
|
},
|
|
151
154
|
"dependencies": {
|
|
152
|
-
"vobs": "
|
|
155
|
+
"@vobs/vobs": "0.2.0"
|
|
153
156
|
},
|
|
154
157
|
"devDependencies": {
|
|
155
|
-
"@vobs/vite-plugin": "
|
|
158
|
+
"@vobs/vite-plugin": "0.1.0",
|
|
156
159
|
"typescript": "^5.7.0",
|
|
157
|
-
"vite": "^
|
|
160
|
+
"vite": "^8.0.0"
|
|
158
161
|
}
|
|
159
162
|
}
|
|
160
163
|
`;
|
|
@@ -191,7 +194,7 @@ import './styles/global.css';
|
|
|
191
194
|
|
|
192
195
|
await app.mount('#app');
|
|
193
196
|
`;
|
|
194
|
-
const appModule = `import { createVobsApp } from 'vobs';
|
|
197
|
+
const appModule = `import { createVobsApp } from '@vobs/vobs';
|
|
195
198
|
import router from 'vobs:routes';
|
|
196
199
|
|
|
197
200
|
const reportAppError = (error: unknown): void => {
|
|
@@ -209,7 +212,7 @@ const app = createVobsApp({
|
|
|
209
212
|
|
|
210
213
|
export { app };
|
|
211
214
|
`;
|
|
212
|
-
const appModuleWithDi = `import { createInjectionScope, createVobsApp } from 'vobs';
|
|
215
|
+
const appModuleWithDi = `import { createInjectionScope, createVobsApp } from '@vobs/vobs';
|
|
213
216
|
import router from 'vobs:routes';
|
|
214
217
|
import { registerServices } from './app/di.js';
|
|
215
218
|
|
|
@@ -235,7 +238,7 @@ export { app };
|
|
|
235
238
|
const appDiFiles = [
|
|
236
239
|
{
|
|
237
240
|
path: 'src/app/di.ts',
|
|
238
|
-
content: `import type { InjectionScope } from 'vobs';
|
|
241
|
+
content: `import type { InjectionScope } from '@vobs/vobs';
|
|
239
242
|
import { createToastService, ToastServiceKey } from '../services/toast.js';
|
|
240
243
|
|
|
241
244
|
export function registerServices(scope: InjectionScope): void {
|
|
@@ -250,7 +253,7 @@ export function registerServices(scope: InjectionScope): void {
|
|
|
250
253
|
},
|
|
251
254
|
{
|
|
252
255
|
path: 'src/services/toast.ts',
|
|
253
|
-
content: `import { createInjectionKey, inject } from 'vobs';
|
|
256
|
+
content: `import { createInjectionKey, inject } from '@vobs/vobs';
|
|
254
257
|
|
|
255
258
|
export interface ToastService {
|
|
256
259
|
success(message: string): void;
|
|
@@ -272,7 +275,7 @@ export function useToast(): ToastService {
|
|
|
272
275
|
`,
|
|
273
276
|
},
|
|
274
277
|
];
|
|
275
|
-
const indexPage = `import { definePage, signal } from 'vobs';
|
|
278
|
+
const indexPage = `import { definePage, signal } from '@vobs/vobs';
|
|
276
279
|
import template from './index.html';
|
|
277
280
|
|
|
278
281
|
export default definePage({
|
|
@@ -288,7 +291,7 @@ export default definePage({
|
|
|
288
291
|
},
|
|
289
292
|
});
|
|
290
293
|
`;
|
|
291
|
-
const indexPageWithDi = `import { definePage, signal } from 'vobs';
|
|
294
|
+
const indexPageWithDi = `import { definePage, signal } from '@vobs/vobs';
|
|
292
295
|
import { useToast } from '../services/toast.js';
|
|
293
296
|
import template from './index.html';
|
|
294
297
|
|
|
@@ -346,7 +349,7 @@ function libPackageJson(withDi) {
|
|
|
346
349
|
},
|
|
347
350
|
${withDi ? ' "peerDependencies": {\n "@vobs/di": "^0.1.0"\n },\n' : ''} "files": ["dist"],
|
|
348
351
|
"devDependencies": {
|
|
349
|
-
${withDi ? ' "@vobs/di": "
|
|
352
|
+
${withDi ? ' "@vobs/di": "0.1.0",\n' : ''} "typescript": "^5.7.0"
|
|
350
353
|
}
|
|
351
354
|
}
|
|
352
355
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vobs/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Command line diagnostics for vobs projects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"chalk": "^5.3.0",
|
|
22
22
|
"typescript": "^5.7.0",
|
|
23
|
-
"@vobs/ai-contracts": "0.
|
|
24
|
-
"@vobs/ui": "0.
|
|
25
|
-
"@vobs/
|
|
26
|
-
"@vobs/
|
|
27
|
-
"@vobs/
|
|
28
|
-
"@vobs/
|
|
29
|
-
"@vobs/
|
|
30
|
-
"@vobs/
|
|
31
|
-
"@vobs/
|
|
32
|
-
"@vobs/
|
|
23
|
+
"@vobs/ai-contracts": "0.3.0",
|
|
24
|
+
"@vobs/ui": "0.3.0",
|
|
25
|
+
"@vobs/vite-plugin": "0.3.0",
|
|
26
|
+
"@vobs/compiler-dom": "0.3.0",
|
|
27
|
+
"@vobs/server-renderer": "0.3.0",
|
|
28
|
+
"@vobs/runtime-dom": "0.3.0",
|
|
29
|
+
"@vobs/reactivity": "0.3.0",
|
|
30
|
+
"@vobs/router": "0.3.0",
|
|
31
|
+
"@vobs/di": "0.3.0",
|
|
32
|
+
"@vobs/forms": "0.3.0"
|
|
33
33
|
},
|
|
34
34
|
"bin": {
|
|
35
35
|
"vobs": "./dist/index.js"
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"main": "./dist/index.js",
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
52
|
+
"node": ">=22.12.0"
|
|
53
53
|
}
|
|
54
54
|
}
|