@skalfa/skalfa-api-core 1.0.7 → 1.0.8
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/commands/cli.js +16 -27
- package/dist/commands/cli.js.map +1 -1
- package/dist/commands/make/resource.js +4 -4
- package/dist/commands/make/resource.js.map +1 -1
- package/dist/commands/make/skalfa-controller.d.ts +2 -2
- package/dist/commands/make/skalfa-controller.js +7 -7
- package/dist/commands/make/skalfa-controller.js.map +1 -1
- package/dist/commands/make/skalfa-model.d.ts +2 -2
- package/dist/commands/make/skalfa-model.js +9 -9
- package/dist/commands/make/skalfa-model.js.map +1 -1
- package/dist/commands/runner/blueprint/controller-generation.js +2 -2
- package/dist/commands/runner/blueprint/controller-generation.js.map +1 -1
- package/dist/commands/runner/blueprint/migration-generation.js +2 -2
- package/dist/commands/runner/blueprint/migration-generation.js.map +1 -1
- package/dist/commands/runner/blueprint/model-generation.js +2 -2
- package/dist/commands/runner/blueprint/model-generation.js.map +1 -1
- package/dist/commands/runner/blueprint/runner.js +5 -6
- package/dist/commands/runner/blueprint/runner.js.map +1 -1
- package/dist/commands/runner/blueprint/seeder-generation.js +2 -2
- package/dist/commands/runner/blueprint/seeder-generation.js.map +1 -1
- package/dist/commands/runner/generate-docs.d.ts +2 -0
- package/dist/commands/runner/generate-docs.js +400 -0
- package/dist/commands/runner/generate-docs.js.map +1 -0
- package/dist/commands/stubs/index.d.ts +4 -4
- package/dist/commands/stubs/index.js +4 -4
- package/dist/commands/stubs/index.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/cli.ts +17 -29
- package/src/commands/make/basic-controller.ts +1 -1
- package/src/commands/make/resource.ts +4 -4
- package/src/commands/make/skalfa-controller.ts +7 -7
- package/src/commands/make/skalfa-model.ts +9 -9
- package/src/commands/runner/blueprint/controller-generation.ts +2 -2
- package/src/commands/runner/blueprint/migration-generation.ts +2 -2
- package/src/commands/runner/blueprint/model-generation.ts +2 -2
- package/src/commands/runner/blueprint/runner.ts +5 -6
- package/src/commands/runner/blueprint/seeder-generation.ts +2 -2
- package/src/commands/runner/generate-docs.ts +495 -0
- package/src/commands/stubs/index.ts +4 -4
|
@@ -86,7 +86,7 @@ export default class {{ className }} extends DAMigration {
|
|
|
86
86
|
}
|
|
87
87
|
`;
|
|
88
88
|
|
|
89
|
-
export const
|
|
89
|
+
export const skalfaControllerStub = `{{ marker }}
|
|
90
90
|
import type { ControllerContext } from "elysia"
|
|
91
91
|
import { permission } from '@utils'
|
|
92
92
|
import { {{ model }} } from '@models'
|
|
@@ -182,7 +182,7 @@ export class {{ name }} {
|
|
|
182
182
|
}
|
|
183
183
|
`;
|
|
184
184
|
|
|
185
|
-
export const
|
|
185
|
+
export const skalfaMigrationStub = `{{ marker }}
|
|
186
186
|
import type { Knex } from "knex"
|
|
187
187
|
|
|
188
188
|
export async function up(knex: Knex): Promise<void> {
|
|
@@ -196,7 +196,7 @@ export async function up(knex: Knex): Promise<void> {
|
|
|
196
196
|
{{ pivot }}
|
|
197
197
|
}`;
|
|
198
198
|
|
|
199
|
-
export const
|
|
199
|
+
export const skalfaModelStub = `{{ marker }}
|
|
200
200
|
import { Model, SoftDelete{{ import_utils }} } from '@utils'
|
|
201
201
|
{{ import }}
|
|
202
202
|
|
|
@@ -229,7 +229,7 @@ export class {{ name }} extends Model {
|
|
|
229
229
|
}
|
|
230
230
|
`;
|
|
231
231
|
|
|
232
|
-
export const
|
|
232
|
+
export const skalfaSeederStub = `{{ marker }}
|
|
233
233
|
import { {{ model }} } from "@models";
|
|
234
234
|
|
|
235
235
|
export default async function {{ name }}Seeder() {
|