zova-cli-set-front 1.1.170 → 1.1.172
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/cli/templates/create/component/boilerplate/controller.ts_ +2 -10
- package/cli/templates/create/component/boilerplate/index.vue_ +4 -5
- package/cli/templates/refactor/componentEmits/snippets/1-index.cjs +19 -0
- package/cli/templates/refactor/componentEmits/snippets/2-controller.cjs +23 -0
- package/cli/templates/refactor/componentGeneric/snippets/{index.cjs → 1-index.cjs} +2 -6
- package/cli/templates/refactor/componentGeneric/snippets/{controller.cjs → 2-controller.cjs} +11 -8
- package/cli/templates/refactor/componentProps/snippets/1-index.cjs +24 -0
- package/cli/templates/refactor/componentProps/snippets/2-controller.cjs +31 -0
- package/cli/templates/refactor/componentSlots/snippets/1-controller.cjs +35 -0
- package/cli/templates/refactor/pageParams/snippets/1-controller.cjs +29 -0
- package/cli/templates/refactor/pageQuery/snippets/1-controller.cjs +28 -0
- package/dist/lib/bean/cli.refactor.componentEmits.d.ts +14 -0
- package/dist/lib/bean/cli.refactor.componentEmits.d.ts.map +1 -0
- package/dist/lib/bean/cli.refactor.componentEmits.js +40 -0
- package/dist/lib/bean/cli.refactor.componentEmits.js.map +1 -0
- package/dist/lib/bean/cli.refactor.componentGeneric.js +2 -2
- package/dist/lib/bean/cli.refactor.componentGeneric.js.map +1 -1
- package/dist/lib/bean/cli.refactor.componentProps.d.ts +14 -0
- package/dist/lib/bean/cli.refactor.componentProps.d.ts.map +1 -0
- package/dist/lib/bean/cli.refactor.componentProps.js +40 -0
- package/dist/lib/bean/cli.refactor.componentProps.js.map +1 -0
- package/dist/lib/bean/cli.refactor.componentSlots.d.ts +14 -0
- package/dist/lib/bean/cli.refactor.componentSlots.d.ts.map +1 -0
- package/dist/lib/bean/cli.refactor.componentSlots.js +40 -0
- package/dist/lib/bean/cli.refactor.componentSlots.js.map +1 -0
- package/dist/lib/beans.d.ts +6 -0
- package/dist/lib/beans.d.ts.map +1 -1
- package/dist/lib/beans.js +6 -0
- package/dist/lib/beans.js.map +1 -1
- package/dist/lib/command/refactor.componentEmits.d.ts +35 -0
- package/dist/lib/command/refactor.componentEmits.d.ts.map +1 -0
- package/dist/lib/command/refactor.componentEmits.js +34 -0
- package/dist/lib/command/refactor.componentEmits.js.map +1 -0
- package/dist/lib/command/refactor.componentProps.d.ts +35 -0
- package/dist/lib/command/refactor.componentProps.d.ts.map +1 -0
- package/dist/lib/command/refactor.componentProps.js +34 -0
- package/dist/lib/command/refactor.componentProps.js.map +1 -0
- package/dist/lib/command/refactor.componentSlots.d.ts +35 -0
- package/dist/lib/command/refactor.componentSlots.d.ts.map +1 -0
- package/dist/lib/command/refactor.componentSlots.js +34 -0
- package/dist/lib/command/refactor.componentSlots.js.map +1 -0
- package/dist/lib/commands.d.ts +99 -0
- package/dist/lib/commands.d.ts.map +1 -1
- package/dist/lib/commands.js +6 -0
- package/dist/lib/commands.js.map +1 -1
- package/package.json +2 -2
- package/cli/templates/refactor/pageParams/snippets/controller.cjs +0 -36
- package/cli/templates/refactor/pageQuery/snippets/controller.cjs +0 -35
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import { BeanControllerBase, Local
|
|
1
|
+
import { BeanControllerBase, Local } from 'zova';
|
|
2
2
|
import { ScopeModule } from '<%=cli.helper.slashPrefixForPath(argv.nameMeta.parts.length+1)%>.metadata/this.js';
|
|
3
3
|
|
|
4
|
-
export interface Props extends PropsBase<Controller<%=argv.nameMeta.fullCapitalize%>, Slots> {}
|
|
5
|
-
|
|
6
|
-
export type Emits = {};
|
|
7
|
-
|
|
8
|
-
export interface Slots {}
|
|
9
|
-
|
|
10
4
|
@Local()
|
|
11
|
-
export class Controller<%=argv.nameMeta.fullCapitalize%> extends BeanControllerBase<ScopeModule
|
|
12
|
-
static $propsDefault = {};
|
|
13
|
-
|
|
5
|
+
export class Controller<%=argv.nameMeta.fullCapitalize%> extends BeanControllerBase<ScopeModule> {
|
|
14
6
|
protected async __init__() {}
|
|
15
7
|
}
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script setup lang="ts">
|
|
6
|
-
import { useController } from 'zova';
|
|
7
|
-
import { Controller<%=argv.nameMeta.fullCapitalize
|
|
6
|
+
import { useController, PropsBase } from 'zova';
|
|
7
|
+
import { Controller<%=argv.nameMeta.fullCapitalize%> } from './controller.js';
|
|
8
8
|
import { Render<%=argv.nameMeta.fullCapitalize%> } from './render.jsx';
|
|
9
9
|
import { Style<%=argv.nameMeta.fullCapitalize%> } from './style.js';
|
|
10
|
-
const props =
|
|
11
|
-
|
|
12
|
-
useController(props, emit, Controller<%=argv.nameMeta.fullCapitalize%>, Render<%=argv.nameMeta.fullCapitalize%>, Style<%=argv.nameMeta.fullCapitalize%>);
|
|
10
|
+
const props = defineProps<PropsBase<Controller<%=argv.nameMeta.fullCapitalize%>>>();
|
|
11
|
+
useController(props, undefined, Controller<%=argv.nameMeta.fullCapitalize%>, Render<%=argv.nameMeta.fullCapitalize%>, Style<%=argv.nameMeta.fullCapitalize%>);
|
|
13
12
|
</script>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
file: 'index.vue',
|
|
3
|
+
parseOptions: { language: 'plain' },
|
|
4
|
+
async transform({ ast }) {
|
|
5
|
+
if (ast.includes(', Emits')) throw new Error('Emits exists');
|
|
6
|
+
//
|
|
7
|
+
const hasGeneric = ast.match(/<script[^/]*?generic="[^"]*?"[^/]*?>/);
|
|
8
|
+
const genericT = hasGeneric ? '<T>' : '';
|
|
9
|
+
//
|
|
10
|
+
ast = ast
|
|
11
|
+
.replace(/import \{ ([^\}]*) \} from '.\/controller.js';/, (_, $1) => {
|
|
12
|
+
return `import { ${$1}, Emits } from './controller.js';`;
|
|
13
|
+
})
|
|
14
|
+
.replace('useController(', `const emit = defineEmits<Emits${genericT}>();\nuseController(`)
|
|
15
|
+
.replace('useController(props, undefined,', 'useController(props, emit,');
|
|
16
|
+
// ok
|
|
17
|
+
return ast;
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
file: 'controller.ts',
|
|
3
|
+
parseOptions: { language: 'plain' },
|
|
4
|
+
async transform({ ast }) {
|
|
5
|
+
if (ast.includes('export type Emits')) throw new Error('Emits exists');
|
|
6
|
+
const matchController = ast.match(/export class ([^< ]*)(.*?) extends/);
|
|
7
|
+
// const className = matchController[1];
|
|
8
|
+
const hasGeneric = !!matchController[2];
|
|
9
|
+
const genericT = hasGeneric ? '<T>' : '';
|
|
10
|
+
const genericT2 = hasGeneric ? '<_T>' : '';
|
|
11
|
+
//
|
|
12
|
+
ast = ast.replace('@Local', `export type Emits${genericT2} = {};\n\n@Local`);
|
|
13
|
+
// BeanControllerBase
|
|
14
|
+
ast = ast.replace(/BeanControllerBase<(.*?)> \{/, (_, $1) => {
|
|
15
|
+
const parts = $1.split(',');
|
|
16
|
+
if (!parts[1]) parts[1] = ' unknown';
|
|
17
|
+
parts[2] = ` Emits${genericT}`;
|
|
18
|
+
return `BeanControllerBase<${parts.join(',')}> {`;
|
|
19
|
+
});
|
|
20
|
+
// ok
|
|
21
|
+
return ast;
|
|
22
|
+
},
|
|
23
|
+
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
const __snippet_export = `export const ParamsSchema = zz.object({});
|
|
2
|
-
export type ParamsInput = zz.input<typeof ParamsSchema>;
|
|
3
|
-
export type ParamsOutput = zz.output<typeof ParamsSchema>;\n`;
|
|
4
|
-
const __snippet_type = '@Local() export class $_$0 extends $_$1<$$$1> {$$$2}';
|
|
5
|
-
|
|
6
1
|
module.exports = {
|
|
7
2
|
file: 'index.vue',
|
|
8
3
|
parseOptions: { language: 'plain' },
|
|
9
4
|
async transform({ ast }) {
|
|
10
|
-
|
|
5
|
+
const hasGeneric = ast.match(/<script[^/]*?generic="[^"]*?"[^/]*?>/);
|
|
6
|
+
if (hasGeneric) throw new Error('Generic exists');
|
|
11
7
|
ast = ast
|
|
12
8
|
.replace('<script setup lang="ts">', '<script setup lang="ts" generic="T">')
|
|
13
9
|
.replace('defineProps<Props>', 'defineProps<Props<T>>')
|
package/cli/templates/refactor/componentGeneric/snippets/{controller.cjs → 2-controller.cjs}
RENAMED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
const __snippet_export = `export const ParamsSchema = zz.object({});
|
|
2
|
-
export type ParamsInput = zz.input<typeof ParamsSchema>;
|
|
3
|
-
export type ParamsOutput = zz.output<typeof ParamsSchema>;\n`;
|
|
4
|
-
const __snippet_type = '@Local() export class $_$0 extends $_$1<$$$1> {$$$2}';
|
|
5
|
-
|
|
6
1
|
module.exports = {
|
|
7
2
|
file: 'controller.ts',
|
|
8
3
|
parseOptions: { language: 'plain' },
|
|
@@ -10,13 +5,21 @@ module.exports = {
|
|
|
10
5
|
if (ast.includes('export interface Props<')) return;
|
|
11
6
|
const matchController = ast.match(/export class (.*?) extends/);
|
|
12
7
|
const className = matchController[1];
|
|
8
|
+
const hasSlots = ast.includes('export interface Slots');
|
|
13
9
|
ast = ast
|
|
14
|
-
.replace('export interface Props',
|
|
10
|
+
.replace('export interface Props', `export interface Props${hasSlots ? '<T>' : '<_T>'}`)
|
|
15
11
|
.replace(`${className}, Slots`, `${className}<T>, Slots<T>`)
|
|
16
12
|
.replace('export type Emits', 'export type Emits<_T>')
|
|
17
13
|
.replace('export interface Slots', 'export interface Slots<_T>')
|
|
18
|
-
.replace(`export class ${className}`, `export class ${className}<T = unknown>`)
|
|
19
|
-
|
|
14
|
+
.replace(`export class ${className}`, `export class ${className}<T = unknown>`);
|
|
15
|
+
// BeanControllerBase
|
|
16
|
+
ast = ast.replace(/BeanControllerBase<(.*?)> \{/, (_, $1) => {
|
|
17
|
+
const parts = $1.split(',');
|
|
18
|
+
if (parts[1] === ' Props') parts[1] = ' Props<T>';
|
|
19
|
+
if (parts[2] === ' Emits') parts[2] = ' Emits<T>';
|
|
20
|
+
if (parts[3] === ' Slots') parts[3] = ' Slots<T>';
|
|
21
|
+
return `BeanControllerBase<${parts.join(',')}> {`;
|
|
22
|
+
});
|
|
20
23
|
// ok
|
|
21
24
|
return ast;
|
|
22
25
|
},
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
file: 'index.vue',
|
|
3
|
+
parseOptions: { language: 'plain' },
|
|
4
|
+
async transform({ ast }) {
|
|
5
|
+
if (!ast.includes(', PropsBase')) throw new Error('Props exists');
|
|
6
|
+
//
|
|
7
|
+
const hasGeneric = ast.match(/<script[^/]*?generic="[^"]*?"[^/]*?>/);
|
|
8
|
+
const genericT = hasGeneric ? '<T>' : '';
|
|
9
|
+
//
|
|
10
|
+
const matchController = ast.match(/import \{ (Controller[^, ]*)/);
|
|
11
|
+
const className = matchController[1];
|
|
12
|
+
ast = ast
|
|
13
|
+
.replace(', PropsBase', '')
|
|
14
|
+
.replace(/import \{ ([^\}]*) \} from '.\/controller.js';/, (_, $1) => {
|
|
15
|
+
return `import { ${$1}, Props } from './controller.js';`;
|
|
16
|
+
})
|
|
17
|
+
.replace(
|
|
18
|
+
/const props = [^;]*;/,
|
|
19
|
+
`const props = withDefaults(defineProps<Props${genericT}>(), ${className}.$propsDefault);`,
|
|
20
|
+
);
|
|
21
|
+
// ok
|
|
22
|
+
return ast;
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
file: 'controller.ts',
|
|
3
|
+
parseOptions: { language: 'plain' },
|
|
4
|
+
async transform({ ast }) {
|
|
5
|
+
if (ast.includes('export interface Props')) throw new Error('Props exists');
|
|
6
|
+
const matchController = ast.match(/export class ([^< ]*)(.*?) extends/);
|
|
7
|
+
const className = matchController[1];
|
|
8
|
+
const hasGeneric = !!matchController[2];
|
|
9
|
+
const genericT = hasGeneric ? '<T>' : '';
|
|
10
|
+
const genericT2 = hasGeneric ? '<_T>' : '';
|
|
11
|
+
const hasSlots = ast.includes('export interface Slots');
|
|
12
|
+
// PropsBase
|
|
13
|
+
if (!ast.match(/import \{[^\}]*PropsBase[^\}]*\} from 'zova';/)) {
|
|
14
|
+
ast = ast.replace(/import \{ ([^\}]*) \} from 'zova';/, (_, $1) => {
|
|
15
|
+
return `import { ${$1}, PropsBase } from 'zova';`;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
ast = ast.replace(
|
|
19
|
+
'@Local',
|
|
20
|
+
`export interface Props${hasSlots ? genericT : genericT2} extends PropsBase<${className}${genericT}${hasSlots ? `, Slots${genericT}` : ''}> {}\n\n@Local`,
|
|
21
|
+
);
|
|
22
|
+
// BeanControllerBase
|
|
23
|
+
ast = ast.replace(/BeanControllerBase<(.*?)> \{/, (_, $1) => {
|
|
24
|
+
const parts = $1.split(',');
|
|
25
|
+
parts[1] = ` Props${genericT}`;
|
|
26
|
+
return `BeanControllerBase<${parts.join(',')}> {\n static $propsDefault = {};\n\n`;
|
|
27
|
+
});
|
|
28
|
+
// ok
|
|
29
|
+
return ast;
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
file: 'controller.ts',
|
|
3
|
+
parseOptions: { language: 'plain' },
|
|
4
|
+
async transform({ ast }) {
|
|
5
|
+
if (ast.includes('export interface Slots')) throw new Error('Slots exists');
|
|
6
|
+
const matchController = ast.match(/export class ([^< ]*)(.*?) extends/);
|
|
7
|
+
// const className = matchController[1];
|
|
8
|
+
const hasGeneric = !!matchController[2];
|
|
9
|
+
const genericT = hasGeneric ? '<T>' : '';
|
|
10
|
+
const genericT2 = hasGeneric ? '<_T>' : '';
|
|
11
|
+
const hasProps = ast.includes('export interface Props');
|
|
12
|
+
// Props
|
|
13
|
+
if (hasProps) {
|
|
14
|
+
ast = ast
|
|
15
|
+
.replace(/PropsBase<(.*?)> \{/, (_, $1) => {
|
|
16
|
+
const parts = $1.split(',');
|
|
17
|
+
parts[1] = ` Slots${genericT}`;
|
|
18
|
+
return `PropsBase<${parts.join(',')}> {`;
|
|
19
|
+
})
|
|
20
|
+
.replace('Props<_T>', 'Props<T>');
|
|
21
|
+
}
|
|
22
|
+
// Slots
|
|
23
|
+
ast = ast.replace('@Local', `export interface Slots${genericT2} {}\n\n@Local`);
|
|
24
|
+
// BeanControllerBase
|
|
25
|
+
ast = ast.replace(/BeanControllerBase<(.*?)> \{/, (_, $1) => {
|
|
26
|
+
const parts = $1.split(',');
|
|
27
|
+
if (!parts[1]) parts[1] = ' unknown';
|
|
28
|
+
if (!parts[2]) parts[2] = ' unknown';
|
|
29
|
+
parts[3] = ` Slots${genericT}`;
|
|
30
|
+
return `BeanControllerBase<${parts.join(',')}> {`;
|
|
31
|
+
});
|
|
32
|
+
// ok
|
|
33
|
+
return ast;
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const __snippet_export = `export const ParamsSchema = zz.object({});
|
|
2
|
+
export type ParamsInput = zz.input<typeof ParamsSchema>;
|
|
3
|
+
export type ParamsOutput = zz.output<typeof ParamsSchema>;\n`;
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
file: 'controller.ts',
|
|
7
|
+
parseOptions: { language: 'plain' },
|
|
8
|
+
async transform({ ast }) {
|
|
9
|
+
// check if exists
|
|
10
|
+
if (ast.includes('export type ParamsInput')) throw new Error('Params exists');
|
|
11
|
+
// zz
|
|
12
|
+
if (!ast.match(/import \{[^\}]*zz[^\}]*\} from 'zova';/)) {
|
|
13
|
+
ast = ast.replace(/import \{ ([^\}]*) \} from 'zova';/, (_, $1) => {
|
|
14
|
+
return `import { ${$1}, zz } from 'zova';`;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
// export
|
|
18
|
+
ast = ast.replace('@Local', `${__snippet_export}\n@Local`);
|
|
19
|
+
// BeanControllerPageBase
|
|
20
|
+
ast = ast.replace(/BeanControllerPageBase<(.*?)> \{/, (_, $1) => {
|
|
21
|
+
const parts = $1.split(',');
|
|
22
|
+
if (!parts[1]) parts[1] = ' unknown';
|
|
23
|
+
parts[2] = ' ParamsOutput';
|
|
24
|
+
return `BeanControllerPageBase<${parts.join(',')}> {`;
|
|
25
|
+
});
|
|
26
|
+
// ok
|
|
27
|
+
return ast;
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const __snippet_export = `export const QuerySchema = zz.object({});
|
|
2
|
+
export type QueryInput = zz.input<typeof QuerySchema>;
|
|
3
|
+
export type QueryOutput = zz.output<typeof QuerySchema>;\n`;
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
file: 'controller.ts',
|
|
7
|
+
parseOptions: { language: 'plain' },
|
|
8
|
+
async transform({ ast }) {
|
|
9
|
+
// check if exists
|
|
10
|
+
if (ast.includes('export type QueryInput')) throw new Error('Query exists');
|
|
11
|
+
// zz
|
|
12
|
+
if (!ast.match(/import \{[^\}]*zz[^\}]*\} from 'zova';/)) {
|
|
13
|
+
ast = ast.replace(/import \{ ([^\}]*) \} from 'zova';/, (_, $1) => {
|
|
14
|
+
return `import { ${$1}, zz } from 'zova';`;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
// export
|
|
18
|
+
ast = ast.replace('@Local', `${__snippet_export}\n@Local`);
|
|
19
|
+
// BeanControllerPageBase
|
|
20
|
+
ast = ast.replace(/BeanControllerPageBase<(.*?)> \{/, (_, $1) => {
|
|
21
|
+
const parts = $1.split(',');
|
|
22
|
+
parts[1] = ' QueryOutput';
|
|
23
|
+
return `BeanControllerPageBase<${parts.join(',')}> {`;
|
|
24
|
+
});
|
|
25
|
+
// ok
|
|
26
|
+
return ast;
|
|
27
|
+
},
|
|
28
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BeanCliBase, NameMeta } from 'zova-cli';
|
|
2
|
+
import { IModuleInfo } from '@cabloy/module-info';
|
|
3
|
+
declare module 'zova-cli' {
|
|
4
|
+
interface ICommandArgv {
|
|
5
|
+
module: string;
|
|
6
|
+
moduleInfo: IModuleInfo;
|
|
7
|
+
componentName: string;
|
|
8
|
+
nameMeta: NameMeta;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class CliRefactorComponentEmits extends BeanCliBase {
|
|
12
|
+
execute(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=cli.refactor.componentEmits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.refactor.componentEmits.d.ts","sourceRoot":"","sources":["../../../src/lib/bean/cli.refactor.componentEmits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAU,YAAY;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,WAAW,CAAC;QACxB,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,EAAE,QAAQ,CAAC;KACpB;CACF;AAED,qBAAa,yBAA0B,SAAQ,WAAW;IAClD,OAAO;CAiCd"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BeanCliBase } from 'zova-cli';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
import { __ThisSetName__ } from '../this.js';
|
|
5
|
+
export class CliRefactorComponentEmits extends BeanCliBase {
|
|
6
|
+
async execute() {
|
|
7
|
+
const { argv } = this.context;
|
|
8
|
+
// super
|
|
9
|
+
await super.execute();
|
|
10
|
+
// module name/info
|
|
11
|
+
const moduleName = argv.module;
|
|
12
|
+
argv.moduleInfo = this.helper.parseModuleInfo(moduleName);
|
|
13
|
+
// check if exists
|
|
14
|
+
const _module = this.helper.findModule(moduleName);
|
|
15
|
+
if (!_module) {
|
|
16
|
+
throw new Error(`module does not exist: ${moduleName}`);
|
|
17
|
+
}
|
|
18
|
+
// target dir
|
|
19
|
+
const targetDir = await this.helper.ensureDir(_module.root);
|
|
20
|
+
// componentName
|
|
21
|
+
const componentName = argv.componentName;
|
|
22
|
+
// nameMeta
|
|
23
|
+
argv.nameMeta = this.helper.parseNameMeta(componentName, ['component']);
|
|
24
|
+
// directory
|
|
25
|
+
const componentDir = path.join(targetDir, 'src/component', argv.nameMeta.short);
|
|
26
|
+
if (!fs.existsSync(componentDir)) {
|
|
27
|
+
throw new Error(`component not exists: ${componentDir}`);
|
|
28
|
+
}
|
|
29
|
+
// render boilerplate
|
|
30
|
+
await this.template.renderBoilerplateAndSnippets({
|
|
31
|
+
targetDir: componentDir,
|
|
32
|
+
setName: __ThisSetName__,
|
|
33
|
+
snippetsPath: 'refactor/componentEmits/snippets',
|
|
34
|
+
boilerplatePath: null,
|
|
35
|
+
});
|
|
36
|
+
// // tools.metadata
|
|
37
|
+
// await this.helper.invokeCli([':tools:metadata', moduleName], { cwd: argv.projectPath });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=cli.refactor.componentEmits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.refactor.componentEmits.js","sourceRoot":"","sources":["../../../src/lib/bean/cli.refactor.componentEmits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,UAAU,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAW7C,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD,KAAK,CAAC,OAAO;QACX,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,QAAQ;QACR,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;QACtB,mBAAmB;QACnB,MAAM,UAAU,G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,
|
|
35
35
|
});
|
|
36
|
-
// tools.metadata
|
|
37
|
-
await this.helper.invokeCli([':tools:metadata', moduleName], { cwd: argv.projectPath });
|
|
36
|
+
// // tools.metadata
|
|
37
|
+
// await this.helper.invokeCli([':tools:metadata', moduleName], { cwd: argv.projectPath });
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
//# sourceMappingURL=cli.refactor.componentGeneric.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.refactor.componentGeneric.js","sourceRoot":"","sources":["../../../src/lib/bean/cli.refactor.componentGeneric.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,UAAU,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAW7C,MAAM,OAAO,2BAA4B,SAAQ,WAAW;IAC1D,KAAK,CAAC,OAAO;QACX,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,QAAQ;QACR,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;QACtB,mBAAmB;QACnB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAC1D,kBAAkB;QAClB,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,0BAA0B,UAAU,EAAE,CAAC,CAAC;QAC1D,CAAC;QACD,aAAa;QACb,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5D,gBAAgB;QAChB,MAAM,aAAa,GAAG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AAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,0BAA0B,UAAU,EAAE,CAAC,CAAC;QAC1D,CAAC;QACD,aAAa;QACb,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5D,gBAAgB;QAChB,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACzC,WAAW;QACX,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;QACxE,YAAY;QACZ,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChF,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,yBAAyB,YAAY,EAAE,CAAC,CAAC;QAC3D,CAAC;QACD,qBAAqB;QACrB,MAAM,IAAI,CAAC,QAAQ,CAAC,4BAA4B,CAAC;YAC/C,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,eAAe;YACxB,YAAY,EAAE,oCAAoC;YAClD,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;QACH,oBAAoB;QACpB,2FAA2F;IAC7F,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BeanCliBase, NameMeta } from 'zova-cli';
|
|
2
|
+
import { IModuleInfo } from '@cabloy/module-info';
|
|
3
|
+
declare module 'zova-cli' {
|
|
4
|
+
interface ICommandArgv {
|
|
5
|
+
module: string;
|
|
6
|
+
moduleInfo: IModuleInfo;
|
|
7
|
+
componentName: string;
|
|
8
|
+
nameMeta: NameMeta;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class CliRefactorComponentProps extends BeanCliBase {
|
|
12
|
+
execute(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=cli.refactor.componentProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.refactor.componentProps.d.ts","sourceRoot":"","sources":["../../../src/lib/bean/cli.refactor.componentProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAU,YAAY;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,WAAW,CAAC;QACxB,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,EAAE,QAAQ,CAAC;KACpB;CACF;AAED,qBAAa,yBAA0B,SAAQ,WAAW;IAClD,OAAO;CAiCd"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BeanCliBase } from 'zova-cli';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
import { __ThisSetName__ } from '../this.js';
|
|
5
|
+
export class CliRefactorComponentProps extends BeanCliBase {
|
|
6
|
+
async execute() {
|
|
7
|
+
const { argv } = this.context;
|
|
8
|
+
// super
|
|
9
|
+
await super.execute();
|
|
10
|
+
// module name/info
|
|
11
|
+
const moduleName = argv.module;
|
|
12
|
+
argv.moduleInfo = this.helper.parseModuleInfo(moduleName);
|
|
13
|
+
// check if exists
|
|
14
|
+
const _module = this.helper.findModule(moduleName);
|
|
15
|
+
if (!_module) {
|
|
16
|
+
throw new Error(`module does not exist: ${moduleName}`);
|
|
17
|
+
}
|
|
18
|
+
// target dir
|
|
19
|
+
const targetDir = await this.helper.ensureDir(_module.root);
|
|
20
|
+
// componentName
|
|
21
|
+
const componentName = argv.componentName;
|
|
22
|
+
// nameMeta
|
|
23
|
+
argv.nameMeta = this.helper.parseNameMeta(componentName, ['component']);
|
|
24
|
+
// directory
|
|
25
|
+
const componentDir = path.join(targetDir, 'src/component', argv.nameMeta.short);
|
|
26
|
+
if (!fs.existsSync(componentDir)) {
|
|
27
|
+
throw new Error(`component not exists: ${componentDir}`);
|
|
28
|
+
}
|
|
29
|
+
// render boilerplate
|
|
30
|
+
await this.template.renderBoilerplateAndSnippets({
|
|
31
|
+
targetDir: componentDir,
|
|
32
|
+
setName: __ThisSetName__,
|
|
33
|
+
snippetsPath: 'refactor/componentProps/snippets',
|
|
34
|
+
boilerplatePath: null,
|
|
35
|
+
});
|
|
36
|
+
// // tools.metadata
|
|
37
|
+
// await this.helper.invokeCli([':tools:metadata', moduleName], { cwd: argv.projectPath });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=cli.refactor.componentProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.refactor.componentProps.js","sourceRoot":"","sources":["../../../src/lib/bean/cli.refactor.componentProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,UAAU,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAW7C,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD,KAAK,CAAC,OAAO;QACX,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,QAAQ;QACR,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;QACtB,mBAAmB;QACnB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAC1D,kBAAkB;QAClB,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,0BAA0B,UAAU,EAAE,CAAC,CAAC;QAC1D,CAAC;QACD,aAAa;QACb,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5D,gBAAgB;QAChB,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACzC,WAAW;QACX,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;QACxE,YAAY;QACZ,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChF,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,yBAAyB,YAAY,EAAE,CAAC,CAAC;QAC3D,CAAC;QACD,qBAAqB;QACrB,MAAM,IAAI,CAAC,QAAQ,CAAC,4BAA4B,CAAC;YAC/C,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,eAAe;YACxB,YAAY,EAAE,kCAAkC;YAChD,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;QACH,oBAAoB;QACpB,2FAA2F;IAC7F,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BeanCliBase, NameMeta } from 'zova-cli';
|
|
2
|
+
import { IModuleInfo } from '@cabloy/module-info';
|
|
3
|
+
declare module 'zova-cli' {
|
|
4
|
+
interface ICommandArgv {
|
|
5
|
+
module: string;
|
|
6
|
+
moduleInfo: IModuleInfo;
|
|
7
|
+
componentName: string;
|
|
8
|
+
nameMeta: NameMeta;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class CliRefactorComponentSlots extends BeanCliBase {
|
|
12
|
+
execute(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=cli.refactor.componentSlots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.refactor.componentSlots.d.ts","sourceRoot":"","sources":["../../../src/lib/bean/cli.refactor.componentSlots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAU,YAAY;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,WAAW,CAAC;QACxB,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,EAAE,QAAQ,CAAC;KACpB;CACF;AAED,qBAAa,yBAA0B,SAAQ,WAAW;IAClD,OAAO;CAiCd"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BeanCliBase } from 'zova-cli';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
import { __ThisSetName__ } from '../this.js';
|
|
5
|
+
export class CliRefactorComponentSlots extends BeanCliBase {
|
|
6
|
+
async execute() {
|
|
7
|
+
const { argv } = this.context;
|
|
8
|
+
// super
|
|
9
|
+
await super.execute();
|
|
10
|
+
// module name/info
|
|
11
|
+
const moduleName = argv.module;
|
|
12
|
+
argv.moduleInfo = this.helper.parseModuleInfo(moduleName);
|
|
13
|
+
// check if exists
|
|
14
|
+
const _module = this.helper.findModule(moduleName);
|
|
15
|
+
if (!_module) {
|
|
16
|
+
throw new Error(`module does not exist: ${moduleName}`);
|
|
17
|
+
}
|
|
18
|
+
// target dir
|
|
19
|
+
const targetDir = await this.helper.ensureDir(_module.root);
|
|
20
|
+
// componentName
|
|
21
|
+
const componentName = argv.componentName;
|
|
22
|
+
// nameMeta
|
|
23
|
+
argv.nameMeta = this.helper.parseNameMeta(componentName, ['component']);
|
|
24
|
+
// directory
|
|
25
|
+
const componentDir = path.join(targetDir, 'src/component', argv.nameMeta.short);
|
|
26
|
+
if (!fs.existsSync(componentDir)) {
|
|
27
|
+
throw new Error(`component not exists: ${componentDir}`);
|
|
28
|
+
}
|
|
29
|
+
// render boilerplate
|
|
30
|
+
await this.template.renderBoilerplateAndSnippets({
|
|
31
|
+
targetDir: componentDir,
|
|
32
|
+
setName: __ThisSetName__,
|
|
33
|
+
snippetsPath: 'refactor/componentSlots/snippets',
|
|
34
|
+
boilerplatePath: null,
|
|
35
|
+
});
|
|
36
|
+
// // tools.metadata
|
|
37
|
+
// await this.helper.invokeCli([':tools:metadata', moduleName], { cwd: argv.projectPath });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=cli.refactor.componentSlots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.refactor.componentSlots.js","sourceRoot":"","sources":["../../../src/lib/bean/cli.refactor.componentSlots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,UAAU,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAW7C,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD,KAAK,CAAC,OAAO;QACX,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,QAAQ;QACR,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;QACtB,mBAAmB;QACnB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAC1D,kBAAkB;QAClB,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,0BAA0B,UAAU,EAAE,CAAC,CAAC;QAC1D,CAAC;QACD,aAAa;QACb,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5D,gBAAgB;QAChB,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACzC,WAAW;QACX,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;QACxE,YAAY;QACZ,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChF,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,yBAAyB,YAAY,EAAE,CAAC,CAAC;QAC3D,CAAC;QACD,qBAAqB;QACrB,MAAM,IAAI,CAAC,QAAQ,CAAC,4BAA4B,CAAC;YAC/C,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,eAAe;YACxB,YAAY,EAAE,kCAAkC;YAChD,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;QACH,oBAAoB;QACpB,2FAA2F;IAC7F,CAAC;CACF"}
|
package/dist/lib/beans.d.ts
CHANGED
|
@@ -28,6 +28,9 @@ import { CliRefactorPageParams } from './bean/cli.refactor.pageParams.js';
|
|
|
28
28
|
import { CliRefactorComponentGeneric } from './bean/cli.refactor.componentGeneric.js';
|
|
29
29
|
import { CliRefactorAnotherRender } from './bean/cli.refactor.anotherRender.js';
|
|
30
30
|
import { CliRefactorAnotherStyle } from './bean/cli.refactor.anotherStyle.js';
|
|
31
|
+
import { CliRefactorComponentProps } from './bean/cli.refactor.componentProps.js';
|
|
32
|
+
import { CliRefactorComponentEmits } from './bean/cli.refactor.componentEmits.js';
|
|
33
|
+
import { CliRefactorComponentSlots } from './bean/cli.refactor.componentSlots.js';
|
|
31
34
|
import { CliRefactorRenameComponent } from './bean/cli.refactor.renameComponent.js';
|
|
32
35
|
export declare const beans: {
|
|
33
36
|
'default.list': typeof CliDefaultList;
|
|
@@ -57,6 +60,9 @@ export declare const beans: {
|
|
|
57
60
|
'refactor.componentGeneric': typeof CliRefactorComponentGeneric;
|
|
58
61
|
'refactor.anotherRender': typeof CliRefactorAnotherRender;
|
|
59
62
|
'refactor.anotherStyle': typeof CliRefactorAnotherStyle;
|
|
63
|
+
'refactor.componentProps': typeof CliRefactorComponentProps;
|
|
64
|
+
'refactor.componentEmits': typeof CliRefactorComponentEmits;
|
|
65
|
+
'refactor.componentSlots': typeof CliRefactorComponentSlots;
|
|
60
66
|
'refactor.renameComponent': typeof CliRefactorRenameComponent;
|
|
61
67
|
'tools.icon': typeof CliToolsIcon;
|
|
62
68
|
'tools.metadata': typeof CliToolsMetadata;
|
package/dist/lib/beans.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beans.d.ts","sourceRoot":"","sources":["../../src/lib/beans.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,cAAc,EA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;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAEpF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCjB,CAAC"}
|
package/dist/lib/beans.js
CHANGED
|
@@ -28,6 +28,9 @@ import { CliRefactorPageParams } from './bean/cli.refactor.pageParams.js';
|
|
|
28
28
|
import { CliRefactorComponentGeneric } from './bean/cli.refactor.componentGeneric.js';
|
|
29
29
|
import { CliRefactorAnotherRender } from './bean/cli.refactor.anotherRender.js';
|
|
30
30
|
import { CliRefactorAnotherStyle } from './bean/cli.refactor.anotherStyle.js';
|
|
31
|
+
import { CliRefactorComponentProps } from './bean/cli.refactor.componentProps.js';
|
|
32
|
+
import { CliRefactorComponentEmits } from './bean/cli.refactor.componentEmits.js';
|
|
33
|
+
import { CliRefactorComponentSlots } from './bean/cli.refactor.componentSlots.js';
|
|
31
34
|
import { CliRefactorRenameComponent } from './bean/cli.refactor.renameComponent.js';
|
|
32
35
|
export const beans = {
|
|
33
36
|
'default.list': CliDefaultList,
|
|
@@ -57,6 +60,9 @@ export const beans = {
|
|
|
57
60
|
'refactor.componentGeneric': CliRefactorComponentGeneric,
|
|
58
61
|
'refactor.anotherRender': CliRefactorAnotherRender,
|
|
59
62
|
'refactor.anotherStyle': CliRefactorAnotherStyle,
|
|
63
|
+
'refactor.componentProps': CliRefactorComponentProps,
|
|
64
|
+
'refactor.componentEmits': CliRefactorComponentEmits,
|
|
65
|
+
'refactor.componentSlots': CliRefactorComponentSlots,
|
|
60
66
|
'refactor.renameComponent': CliRefactorRenameComponent,
|
|
61
67
|
'tools.icon': CliToolsIcon,
|
|
62
68
|
'tools.metadata': CliToolsMetadata,
|
package/dist/lib/beans.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beans.js","sourceRoot":"","sources":["../../src/lib/beans.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,a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;IAC9B,gBAAgB,EAAE,gBAAgB;IAClC,cAAc,EAAE,cAAc;IAC9B,eAAe,EAAE,eAAe;IAChC,aAAa,EAAE,aAAa;IAC5B,kBAAkB,EAAE,kBAAkB;IACtC,aAAa,EAAE,aAAa;IAC5B,cAAc,EAAE,cAAc;IAC9B,cAAc,EAAE,cAAc;IAC9B,cAAc,EAAE,cAAc;IAC9B,cAAc,EAAE,cAAc;IAC9B,aAAa,EAAE,aAAa;IAC5B,cAAc,EAAE,cAAc;IAC9B,gBAAgB,EAAE,gBAAgB;IAClC,aAAa,EAAE,aAAa;IAC5B,WAAW,EAAE,WAAW;IACxB,aAAa,EAAE,aAAa;IAC5B,eAAe,EAAE,eAAe;IAChC,aAAa,EAAE,aAAa;IAC5B,YAAY,EAAE,YAAY;IAC1B,aAAa,EAAE,aAAa;IAC5B,aAAa,EAAE,aAAa;IAC5B,oBAAoB,EAAE,oBAAoB;IAC1C,qBAAqB,EAAE,qBAAqB;IAC5C,2BAA2B,EAAE,2BAA2B;IACxD,wBAAwB,EAAE,wBAAwB;IAClD,uBAAuB,EAAE,uBAAuB;IAChD,yBAAyB,EAAE,yBAAyB;IACpD,yBAAyB,EAAE,yBAAyB;IACpD,yBAAyB,EAAE,yBAAyB;IACpD,0BAA0B,EAAE,0BAA0B;IACtD,YAAY,EAAE,YAAY;IAC1B,gBAAgB,EAAE,gBAAgB;IAClC,YAAY,EAAE,YAAY;CAC3B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
bean: string;
|
|
3
|
+
info: {
|
|
4
|
+
version: string;
|
|
5
|
+
title: string;
|
|
6
|
+
usage: string;
|
|
7
|
+
};
|
|
8
|
+
options: {
|
|
9
|
+
module: {
|
|
10
|
+
description: string;
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
groups: {
|
|
15
|
+
default: {
|
|
16
|
+
questions: {
|
|
17
|
+
componentName: {
|
|
18
|
+
type: string;
|
|
19
|
+
message: string;
|
|
20
|
+
initial: {
|
|
21
|
+
expression: string;
|
|
22
|
+
};
|
|
23
|
+
required: boolean;
|
|
24
|
+
};
|
|
25
|
+
module: {
|
|
26
|
+
type: string;
|
|
27
|
+
message: string;
|
|
28
|
+
required: boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default _default;
|
|
35
|
+
//# sourceMappingURL=refactor.componentEmits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refactor.componentEmits.d.ts","sourceRoot":"","sources":["../../../src/lib/command/refactor.componentEmits.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAgCE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
bean: 'refactor.componentEmits',
|
|
3
|
+
info: {
|
|
4
|
+
version: '5.0.0',
|
|
5
|
+
title: 'Cli: Refactor: ComponentEmits',
|
|
6
|
+
usage: 'zova :refactor:componentEmits componentName [--module=]',
|
|
7
|
+
},
|
|
8
|
+
options: {
|
|
9
|
+
module: {
|
|
10
|
+
description: 'module name',
|
|
11
|
+
type: 'string',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
groups: {
|
|
15
|
+
default: {
|
|
16
|
+
questions: {
|
|
17
|
+
componentName: {
|
|
18
|
+
type: 'input',
|
|
19
|
+
message: 'componentName',
|
|
20
|
+
initial: {
|
|
21
|
+
expression: 'context.argv._[0]',
|
|
22
|
+
},
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
module: {
|
|
26
|
+
type: 'input',
|
|
27
|
+
message: 'module name',
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=refactor.componentEmits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refactor.componentEmits.js","sourceRoot":"","sources":["../../../src/lib/command/refactor.componentEmits.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,+BAA+B;QACtC,KAAK,EAAE,yDAAyD;KACjE;IACD,OAAO,EAAE;QACP,MAAM,EAAE;YACN,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,QAAQ;SACf;KACF;IACD,MAAM,EAAE;QACN,OAAO,EAAE;YACP,SAAS,EAAE;gBACT,aAAa,EAAE;oBACb,IAAI,EAAE,OAAO;oBACb,OAAO,EAAE,eAAe;oBACxB,OAAO,EAAE;wBACP,UAAU,EAAE,mBAAmB;qBAChC;oBACD,QAAQ,EAAE,IAAI;iBACf;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,OAAO;oBACb,OAAO,EAAE,aAAa;oBACtB,QAAQ,EAAE,IAAI;iBACf;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
bean: string;
|
|
3
|
+
info: {
|
|
4
|
+
version: string;
|
|
5
|
+
title: string;
|
|
6
|
+
usage: string;
|
|
7
|
+
};
|
|
8
|
+
options: {
|
|
9
|
+
module: {
|
|
10
|
+
description: string;
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
groups: {
|
|
15
|
+
default: {
|
|
16
|
+
questions: {
|
|
17
|
+
componentName: {
|
|
18
|
+
type: string;
|
|
19
|
+
message: string;
|
|
20
|
+
initial: {
|
|
21
|
+
expression: string;
|
|
22
|
+
};
|
|
23
|
+
required: boolean;
|
|
24
|
+
};
|
|
25
|
+
module: {
|
|
26
|
+
type: string;
|
|
27
|
+
message: string;
|
|
28
|
+
required: boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default _default;
|
|
35
|
+
//# sourceMappingURL=refactor.componentProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refactor.componentProps.d.ts","sourceRoot":"","sources":["../../../src/lib/command/refactor.componentProps.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAgCE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
bean: 'refactor.componentProps',
|
|
3
|
+
info: {
|
|
4
|
+
version: '5.0.0',
|
|
5
|
+
title: 'Cli: Refactor: ComponentProps',
|
|
6
|
+
usage: 'zova :refactor:componentProps componentName [--module=]',
|
|
7
|
+
},
|
|
8
|
+
options: {
|
|
9
|
+
module: {
|
|
10
|
+
description: 'module name',
|
|
11
|
+
type: 'string',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
groups: {
|
|
15
|
+
default: {
|
|
16
|
+
questions: {
|
|
17
|
+
componentName: {
|
|
18
|
+
type: 'input',
|
|
19
|
+
message: 'componentName',
|
|
20
|
+
initial: {
|
|
21
|
+
expression: 'context.argv._[0]',
|
|
22
|
+
},
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
module: {
|
|
26
|
+
type: 'input',
|
|
27
|
+
message: 'module name',
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=refactor.componentProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refactor.componentProps.js","sourceRoot":"","sources":["../../../src/lib/command/refactor.componentProps.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,+BAA+B;QACtC,KAAK,EAAE,yDAAyD;KACjE;IACD,OAAO,EAAE;QACP,MAAM,EAAE;YACN,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,QAAQ;SACf;KACF;IACD,MAAM,EAAE;QACN,OAAO,EAAE;YACP,SAAS,EAAE;gBACT,aAAa,EAAE;oBACb,IAAI,EAAE,OAAO;oBACb,OAAO,EAAE,eAAe;oBACxB,OAAO,EAAE;wBACP,UAAU,EAAE,mBAAmB;qBAChC;oBACD,QAAQ,EAAE,IAAI;iBACf;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,OAAO;oBACb,OAAO,EAAE,aAAa;oBACtB,QAAQ,EAAE,IAAI;iBACf;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
bean: string;
|
|
3
|
+
info: {
|
|
4
|
+
version: string;
|
|
5
|
+
title: string;
|
|
6
|
+
usage: string;
|
|
7
|
+
};
|
|
8
|
+
options: {
|
|
9
|
+
module: {
|
|
10
|
+
description: string;
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
groups: {
|
|
15
|
+
default: {
|
|
16
|
+
questions: {
|
|
17
|
+
componentName: {
|
|
18
|
+
type: string;
|
|
19
|
+
message: string;
|
|
20
|
+
initial: {
|
|
21
|
+
expression: string;
|
|
22
|
+
};
|
|
23
|
+
required: boolean;
|
|
24
|
+
};
|
|
25
|
+
module: {
|
|
26
|
+
type: string;
|
|
27
|
+
message: string;
|
|
28
|
+
required: boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default _default;
|
|
35
|
+
//# sourceMappingURL=refactor.componentSlots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refactor.componentSlots.d.ts","sourceRoot":"","sources":["../../../src/lib/command/refactor.componentSlots.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAgCE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
bean: 'refactor.componentSlots',
|
|
3
|
+
info: {
|
|
4
|
+
version: '5.0.0',
|
|
5
|
+
title: 'Cli: Refactor: ComponentSlots',
|
|
6
|
+
usage: 'zova :refactor:componentSlots componentName [--module=]',
|
|
7
|
+
},
|
|
8
|
+
options: {
|
|
9
|
+
module: {
|
|
10
|
+
description: 'module name',
|
|
11
|
+
type: 'string',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
groups: {
|
|
15
|
+
default: {
|
|
16
|
+
questions: {
|
|
17
|
+
componentName: {
|
|
18
|
+
type: 'input',
|
|
19
|
+
message: 'componentName',
|
|
20
|
+
initial: {
|
|
21
|
+
expression: 'context.argv._[0]',
|
|
22
|
+
},
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
module: {
|
|
26
|
+
type: 'input',
|
|
27
|
+
message: 'module name',
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=refactor.componentSlots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refactor.componentSlots.js","sourceRoot":"","sources":["../../../src/lib/command/refactor.componentSlots.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,+BAA+B;QACtC,KAAK,EAAE,yDAAyD;KACjE;IACD,OAAO,EAAE;QACP,MAAM,EAAE;YACN,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,QAAQ;SACf;KACF;IACD,MAAM,EAAE;QACN,OAAO,EAAE;YACP,SAAS,EAAE;gBACT,aAAa,EAAE;oBACb,IAAI,EAAE,OAAO;oBACb,OAAO,EAAE,eAAe;oBACxB,OAAO,EAAE;wBACP,UAAU,EAAE,mBAAmB;qBAChC;oBACD,QAAQ,EAAE,IAAI;iBACf;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,OAAO;oBACb,OAAO,EAAE,aAAa;oBACtB,QAAQ,EAAE,IAAI;iBACf;aACF;SACF;KACF;CACF,CAAC"}
|
package/dist/lib/commands.d.ts
CHANGED
|
@@ -743,6 +743,105 @@ export declare const commands: {
|
|
|
743
743
|
};
|
|
744
744
|
};
|
|
745
745
|
};
|
|
746
|
+
componentProps: {
|
|
747
|
+
bean: string;
|
|
748
|
+
info: {
|
|
749
|
+
version: string;
|
|
750
|
+
title: string;
|
|
751
|
+
usage: string;
|
|
752
|
+
};
|
|
753
|
+
options: {
|
|
754
|
+
module: {
|
|
755
|
+
description: string;
|
|
756
|
+
type: string;
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
groups: {
|
|
760
|
+
default: {
|
|
761
|
+
questions: {
|
|
762
|
+
componentName: {
|
|
763
|
+
type: string;
|
|
764
|
+
message: string;
|
|
765
|
+
initial: {
|
|
766
|
+
expression: string;
|
|
767
|
+
};
|
|
768
|
+
required: boolean;
|
|
769
|
+
};
|
|
770
|
+
module: {
|
|
771
|
+
type: string;
|
|
772
|
+
message: string;
|
|
773
|
+
required: boolean;
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
componentEmits: {
|
|
780
|
+
bean: string;
|
|
781
|
+
info: {
|
|
782
|
+
version: string;
|
|
783
|
+
title: string;
|
|
784
|
+
usage: string;
|
|
785
|
+
};
|
|
786
|
+
options: {
|
|
787
|
+
module: {
|
|
788
|
+
description: string;
|
|
789
|
+
type: string;
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
groups: {
|
|
793
|
+
default: {
|
|
794
|
+
questions: {
|
|
795
|
+
componentName: {
|
|
796
|
+
type: string;
|
|
797
|
+
message: string;
|
|
798
|
+
initial: {
|
|
799
|
+
expression: string;
|
|
800
|
+
};
|
|
801
|
+
required: boolean;
|
|
802
|
+
};
|
|
803
|
+
module: {
|
|
804
|
+
type: string;
|
|
805
|
+
message: string;
|
|
806
|
+
required: boolean;
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
componentSlots: {
|
|
813
|
+
bean: string;
|
|
814
|
+
info: {
|
|
815
|
+
version: string;
|
|
816
|
+
title: string;
|
|
817
|
+
usage: string;
|
|
818
|
+
};
|
|
819
|
+
options: {
|
|
820
|
+
module: {
|
|
821
|
+
description: string;
|
|
822
|
+
type: string;
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
groups: {
|
|
826
|
+
default: {
|
|
827
|
+
questions: {
|
|
828
|
+
componentName: {
|
|
829
|
+
type: string;
|
|
830
|
+
message: string;
|
|
831
|
+
initial: {
|
|
832
|
+
expression: string;
|
|
833
|
+
};
|
|
834
|
+
required: boolean;
|
|
835
|
+
};
|
|
836
|
+
module: {
|
|
837
|
+
type: string;
|
|
838
|
+
message: string;
|
|
839
|
+
required: boolean;
|
|
840
|
+
};
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
};
|
|
746
845
|
renameComponent: {
|
|
747
846
|
bean: string;
|
|
748
847
|
info: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/lib/commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/lib/commands.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CpB,CAAC"}
|
package/dist/lib/commands.js
CHANGED
|
@@ -25,6 +25,9 @@ import refactorPageParams from './command/refactor.pageParams.js';
|
|
|
25
25
|
import refactorComponentGeneric from './command/refactor.componentGeneric.js';
|
|
26
26
|
import refactorAnotherRender from './command/refactor.anotherRender.js';
|
|
27
27
|
import refactorAnotherStyle from './command/refactor.anotherStyle.js';
|
|
28
|
+
import refactorComponentProps from './command/refactor.componentProps.js';
|
|
29
|
+
import refactorComponentEmits from './command/refactor.componentEmits.js';
|
|
30
|
+
import refactorComponentSlots from './command/refactor.componentSlots.js';
|
|
28
31
|
import refactorRenameComponent from './command/refactor.renameComponent.js';
|
|
29
32
|
// import toolsIcon from './command/tools.icon.js';
|
|
30
33
|
import toolsMetadata from './command/tools.metadata.js';
|
|
@@ -64,6 +67,9 @@ export const commands = {
|
|
|
64
67
|
componentGeneric: refactorComponentGeneric,
|
|
65
68
|
anotherRender: refactorAnotherRender,
|
|
66
69
|
anotherStyle: refactorAnotherStyle,
|
|
70
|
+
componentProps: refactorComponentProps,
|
|
71
|
+
componentEmits: refactorComponentEmits,
|
|
72
|
+
componentSlots: refactorComponentSlots,
|
|
67
73
|
renameComponent: refactorRenameComponent,
|
|
68
74
|
},
|
|
69
75
|
tools: {
|
package/dist/lib/commands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/lib/commands.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,YAAY,MAAM,4BAA4B,CAAC;AACtD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,UAAU,MAAM,0BAA0B,CA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;QACtC,cAAc,EAAE,sBAAsB;QACtC,eAAe,EAAE,uBAAuB;KACzC;IACD,KAAK,EAAE;QACL,mBAAmB;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,SAAS;KAChB;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-cli-set-front",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.172",
|
|
4
4
|
"description": "zova cli-set-front",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"zova-shared": "^1.0.4",
|
|
49
49
|
"zova-vite": "^1.0.172"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "18c64ec6d8ff83c8d5e8238d4f9a257194ddf2ff"
|
|
52
52
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const __snippet_export = `export const ParamsSchema = zz.object({});
|
|
2
|
-
export type ParamsInput = zz.input<typeof ParamsSchema>;
|
|
3
|
-
export type ParamsOutput = zz.output<typeof ParamsSchema>;\n`;
|
|
4
|
-
const __snippet_type = '@Local() export class $_$0 extends $_$1<$$$1> {$$$2}';
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
file: 'controller.ts',
|
|
8
|
-
async transform({ cli, ast }) {
|
|
9
|
-
// check if exists
|
|
10
|
-
if (ast.has('export type ParamsInput = zz.input<typeof ParamsSchema>')) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
// export
|
|
14
|
-
const code = await cli.template.renderContent({ content: __snippet_export });
|
|
15
|
-
ast.find('@Local() export class $_$0 {}').before(code);
|
|
16
|
-
// zz
|
|
17
|
-
if (!ast.has("import { $$$0, zz } from 'zova'")) {
|
|
18
|
-
ast.replace("import { $$$0 } from 'zova'", "import { $$$0, zz } from 'zova'");
|
|
19
|
-
}
|
|
20
|
-
// type
|
|
21
|
-
const res = ast.find(__snippet_type);
|
|
22
|
-
const typeNames = res.match['$$$1'].map(item => item.typeName?.name);
|
|
23
|
-
if (!typeNames[0]) typeNames[0] = 'ScopeModule';
|
|
24
|
-
if (!typeNames[1]) typeNames[1] = 'unknown';
|
|
25
|
-
if (!typeNames[2]) typeNames[2] = 'ParamsOutput';
|
|
26
|
-
ast.replace(
|
|
27
|
-
__snippet_type,
|
|
28
|
-
__snippet_type
|
|
29
|
-
.replace('$_$0', res.match[0][0].value)
|
|
30
|
-
.replace('$_$1', res.match[1][0].value)
|
|
31
|
-
.replace('$$$1', typeNames.join(', ')),
|
|
32
|
-
);
|
|
33
|
-
// ok
|
|
34
|
-
return ast;
|
|
35
|
-
},
|
|
36
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
const __snippet_export = `export const QuerySchema = zz.object({});
|
|
2
|
-
export type QueryInput = zz.input<typeof QuerySchema>;
|
|
3
|
-
export type QueryOutput = zz.output<typeof QuerySchema>;\n`;
|
|
4
|
-
const __snippet_type = '@Local() export class $_$0 extends $_$1<$$$1> {$$$2}';
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
file: 'controller.ts',
|
|
8
|
-
async transform({ cli, ast }) {
|
|
9
|
-
// check if exists
|
|
10
|
-
if (ast.has('export type QueryInput = zz.input<typeof QuerySchema>')) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
// export
|
|
14
|
-
const code = await cli.template.renderContent({ content: __snippet_export });
|
|
15
|
-
ast.find('@Local() export class $_$0 {}').before(code);
|
|
16
|
-
// zz
|
|
17
|
-
if (!ast.has("import { $$$0, zz } from 'zova'")) {
|
|
18
|
-
ast.replace("import { $$$0 } from 'zova'", "import { $$$0, zz } from 'zova'");
|
|
19
|
-
}
|
|
20
|
-
// type
|
|
21
|
-
const res = ast.find(__snippet_type);
|
|
22
|
-
const typeNames = res.match['$$$1'].map(item => item.typeName?.name);
|
|
23
|
-
if (!typeNames[0]) typeNames[0] = 'ScopeModule';
|
|
24
|
-
if (!typeNames[1]) typeNames[1] = 'QueryOutput';
|
|
25
|
-
ast.replace(
|
|
26
|
-
__snippet_type,
|
|
27
|
-
__snippet_type
|
|
28
|
-
.replace('$_$0', res.match[0][0].value)
|
|
29
|
-
.replace('$_$1', res.match[1][0].value)
|
|
30
|
-
.replace('$$$1', typeNames.join(', ')),
|
|
31
|
-
);
|
|
32
|
-
// ok
|
|
33
|
-
return ast;
|
|
34
|
-
},
|
|
35
|
-
};
|