@kargojs/cli 0.1.0 → 0.1.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.
|
@@ -3,7 +3,7 @@ import pc from 'picocolors';
|
|
|
3
3
|
import { log } from '../utils/log.js';
|
|
4
4
|
import { writeGeneratedFile } from '../utils/fs.js';
|
|
5
5
|
function panelTemplate(id, path) {
|
|
6
|
-
return `import { Panel, registerPanel } from '@kargojs/core';
|
|
6
|
+
return `import { Color, Panel, registerPanel } from '@kargojs/core';
|
|
7
7
|
|
|
8
8
|
export const ${id.replace(/-/g, '_')}Panel = registerPanel(
|
|
9
9
|
Panel.make({
|
|
@@ -13,7 +13,7 @@ export const ${id.replace(/-/g, '_')}Panel = registerPanel(
|
|
|
13
13
|
databaseNotifications: false,
|
|
14
14
|
})
|
|
15
15
|
.colors({
|
|
16
|
-
primary:
|
|
16
|
+
primary: Color.Blue,
|
|
17
17
|
}),
|
|
18
18
|
);
|
|
19
19
|
`;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Command } from 'commander';
|
|
|
2
2
|
import { create } from './commands/create.js';
|
|
3
3
|
import { makeResource } from './commands/make-resource.js';
|
|
4
4
|
import { makePanel } from './commands/make-panel.js';
|
|
5
|
-
const VERSION = '0.1.
|
|
5
|
+
const VERSION = '0.1.2';
|
|
6
6
|
export async function main() {
|
|
7
7
|
const program = new Command();
|
|
8
8
|
program
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/templates/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnE,yFAAyF;AACzF,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,QAAQ,GAAE,gBAA2B,GACpC,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/templates/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnE,yFAAyF;AACzF,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,QAAQ,GAAE,gBAA2B,GACpC,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAke1C"}
|
|
@@ -63,13 +63,15 @@ export function projectFiles(name, database = 'sqlite') {
|
|
|
63
63
|
'db:seed': 'tsx prisma/seed.ts',
|
|
64
64
|
},
|
|
65
65
|
dependencies: {
|
|
66
|
-
'@kargojs/
|
|
67
|
-
'@kargojs/
|
|
68
|
-
'@kargojs/
|
|
69
|
-
'@kargojs/
|
|
70
|
-
'@kargojs/
|
|
66
|
+
'@kargojs/auth': '^0.1.1',
|
|
67
|
+
'@kargojs/core': '^0.1.0',
|
|
68
|
+
'@kargojs/forms': '^0.1.0',
|
|
69
|
+
'@kargojs/nestjs': '^0.1.0',
|
|
70
|
+
'@kargojs/prisma': '^0.1.0',
|
|
71
|
+
'@kargojs/tables': '^0.1.0',
|
|
71
72
|
'@nestjs/common': '^12.0.0',
|
|
72
73
|
'@nestjs/core': '^12.0.0',
|
|
74
|
+
'@nestjs/jwt': '^12.0.0',
|
|
73
75
|
'@nestjs/platform-express': '^12.0.0',
|
|
74
76
|
[db.adapterPackage]: '^7.10.0',
|
|
75
77
|
'@prisma/client': '^7.10.0',
|
|
@@ -350,8 +352,8 @@ export class ExampleService extends PrismaResourceService<Example> {
|
|
|
350
352
|
lint: 'next lint',
|
|
351
353
|
},
|
|
352
354
|
dependencies: {
|
|
353
|
-
'@kargojs/core': '
|
|
354
|
-
'@kargojs/next': '
|
|
355
|
+
'@kargojs/core': '^0.1.0',
|
|
356
|
+
'@kargojs/next': '^0.1.0',
|
|
355
357
|
next: '^16.0.0',
|
|
356
358
|
react: '^19.0.0',
|
|
357
359
|
'react-dom': '^19.0.0',
|