@auto-engineer/cli 0.5.20 → 0.6.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/CHANGELOG.md +11 -0
- package/LICENSE +10 -0
- package/README.md +185 -151
- package/dist/src/index.js +254 -93
- package/dist/src/index.js.map +1 -1
- package/dist/src/manifest-types.d.ts +21 -0
- package/dist/src/manifest-types.d.ts.map +1 -0
- package/dist/src/manifest-types.js +2 -0
- package/dist/src/manifest-types.js.map +1 -0
- package/dist/src/plugin-loader.d.ts +49 -0
- package/dist/src/plugin-loader.d.ts.map +1 -0
- package/dist/src/plugin-loader.js +383 -0
- package/dist/src/plugin-loader.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +29 -28
- package/dist/src/commands/check-client.d.ts +0 -6
- package/dist/src/commands/check-client.d.ts.map +0 -1
- package/dist/src/commands/check-client.js +0 -69
- package/dist/src/commands/check-client.js.map +0 -1
- package/dist/src/commands/check-lint.d.ts +0 -5
- package/dist/src/commands/check-lint.d.ts.map +0 -1
- package/dist/src/commands/check-lint.js +0 -96
- package/dist/src/commands/check-lint.js.map +0 -1
- package/dist/src/commands/check-tests.d.ts +0 -5
- package/dist/src/commands/check-tests.d.ts.map +0 -1
- package/dist/src/commands/check-tests.js +0 -87
- package/dist/src/commands/check-tests.js.map +0 -1
- package/dist/src/commands/check-types.d.ts +0 -5
- package/dist/src/commands/check-types.d.ts.map +0 -1
- package/dist/src/commands/check-types.js +0 -83
- package/dist/src/commands/check-types.js.map +0 -1
- package/dist/src/commands/copy-example.d.ts +0 -5
- package/dist/src/commands/copy-example.d.ts.map +0 -1
- package/dist/src/commands/copy-example.js +0 -54
- package/dist/src/commands/copy-example.js.map +0 -1
- package/dist/src/commands/create-example.d.ts +0 -5
- package/dist/src/commands/create-example.d.ts.map +0 -1
- package/dist/src/commands/create-example.js +0 -60
- package/dist/src/commands/create-example.js.map +0 -1
- package/dist/src/commands/export-schema.d.ts +0 -5
- package/dist/src/commands/export-schema.d.ts.map +0 -1
- package/dist/src/commands/export-schema.js +0 -49
- package/dist/src/commands/export-schema.js.map +0 -1
- package/dist/src/commands/generate-client.d.ts +0 -5
- package/dist/src/commands/generate-client.d.ts.map +0 -1
- package/dist/src/commands/generate-client.js +0 -77
- package/dist/src/commands/generate-client.js.map +0 -1
- package/dist/src/commands/generate-gql-schema.d.ts +0 -5
- package/dist/src/commands/generate-gql-schema.d.ts.map +0 -1
- package/dist/src/commands/generate-gql-schema.js +0 -57
- package/dist/src/commands/generate-gql-schema.js.map +0 -1
- package/dist/src/commands/generate-ia.d.ts +0 -5
- package/dist/src/commands/generate-ia.d.ts.map +0 -1
- package/dist/src/commands/generate-ia.js +0 -54
- package/dist/src/commands/generate-ia.js.map +0 -1
- package/dist/src/commands/generate-server.d.ts +0 -5
- package/dist/src/commands/generate-server.d.ts.map +0 -1
- package/dist/src/commands/generate-server.js +0 -50
- package/dist/src/commands/generate-server.js.map +0 -1
- package/dist/src/commands/implement-client.d.ts +0 -5
- package/dist/src/commands/implement-client.d.ts.map +0 -1
- package/dist/src/commands/implement-client.js +0 -70
- package/dist/src/commands/implement-client.js.map +0 -1
- package/dist/src/commands/implement-server.d.ts +0 -5
- package/dist/src/commands/implement-server.d.ts.map +0 -1
- package/dist/src/commands/implement-server.js +0 -69
- package/dist/src/commands/implement-server.js.map +0 -1
- package/dist/src/commands/import-design-system.d.ts +0 -5
- package/dist/src/commands/import-design-system.d.ts.map +0 -1
- package/dist/src/commands/import-design-system.js +0 -62
- package/dist/src/commands/import-design-system.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auto-engineer/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/src/index.d.ts",
|
|
10
|
+
"import": "./dist/src/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./manifest-types": {
|
|
13
|
+
"types": "./dist/src/manifest-types.d.ts",
|
|
14
|
+
"import": "./dist/src/manifest-types.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
7
17
|
"bin": {
|
|
8
18
|
"auto-engineer": "./dist/bin/auto.js",
|
|
9
19
|
"auto": "./dist/bin/auto.js"
|
|
@@ -16,36 +26,11 @@
|
|
|
16
26
|
"engines": {
|
|
17
27
|
"node": ">=18.0.0"
|
|
18
28
|
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build": "tsc && tsx ../../scripts/fix-esm-imports.ts && chmod +x dist/bin/auto.js",
|
|
21
|
-
"build:tsx": "echo 'Using tsx runtime, no build needed'",
|
|
22
|
-
"dev": "tsc --watch",
|
|
23
|
-
"test": "vitest run",
|
|
24
|
-
"test:watch": "vitest",
|
|
25
|
-
"lint": "eslint 'src/**/*.ts' --max-warnings 0 --config ../../eslint.config.ts",
|
|
26
|
-
"type-check": "tsc --noEmit",
|
|
27
|
-
"flow": "tsx src/index.ts flow",
|
|
28
|
-
"prepublishOnly": "npm run build",
|
|
29
|
-
"format": "prettier --write \"**/*.{js,ts,json,md,yml,yaml}\" --ignore-path ../../.prettierignore",
|
|
30
|
-
"lint:fix": "eslint 'src/**/*.ts' --fix --config ../../eslint.config.ts",
|
|
31
|
-
"format:fix": "prettier --write \"**/*.{js,ts,json,md,yml,yaml}\" --ignore-path ../../.prettierignore",
|
|
32
|
-
"link:dev": "pnpm build && pnpm link --global",
|
|
33
|
-
"unlink:dev": "pnpm unlink --global"
|
|
34
|
-
},
|
|
35
29
|
"publishConfig": {
|
|
36
30
|
"access": "public"
|
|
37
31
|
},
|
|
38
32
|
"dependencies": {
|
|
39
|
-
"@auto-engineer/
|
|
40
|
-
"@auto-engineer/design-system-importer": "^0.4.9",
|
|
41
|
-
"@auto-engineer/emmett-generator": "^0.6.5",
|
|
42
|
-
"@auto-engineer/flowlang": "^0.5.7",
|
|
43
|
-
"@auto-engineer/frontend-checks": "^0.4.8",
|
|
44
|
-
"@auto-engineer/frontend-implementation": "^0.4.10",
|
|
45
|
-
"@auto-engineer/information-architect": "^0.4.4",
|
|
46
|
-
"@auto-engineer/message-bus": "^0.3.4",
|
|
47
|
-
"@auto-engineer/react-graphql-generator": "^0.2.6",
|
|
48
|
-
"@auto-engineer/server-implementer": "^0.4.8",
|
|
33
|
+
"@auto-engineer/message-bus": "^0.4.0",
|
|
49
34
|
"chalk": "^5.3.0",
|
|
50
35
|
"commander": "^12.0.0",
|
|
51
36
|
"debug": "^4.4.1",
|
|
@@ -54,6 +39,7 @@
|
|
|
54
39
|
"figlet": "^1.7.0",
|
|
55
40
|
"gradient-string": "^3.0.0",
|
|
56
41
|
"inquirer": "^9.2.15",
|
|
42
|
+
"jiti": "^2.5.1",
|
|
57
43
|
"kleur": "^4.1.5",
|
|
58
44
|
"marked": "^15.0.12",
|
|
59
45
|
"marked-terminal": "^7.3.0",
|
|
@@ -66,5 +52,20 @@
|
|
|
66
52
|
"@types/marked": "^6.0.0",
|
|
67
53
|
"@types/marked-terminal": "^6.1.1",
|
|
68
54
|
"tsx": "^4.20.3"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "tsc && tsx ../../scripts/fix-esm-imports.ts && chmod +x dist/bin/auto.js",
|
|
58
|
+
"build:tsx": "echo 'Using tsx runtime, no build needed'",
|
|
59
|
+
"dev": "tsc --watch",
|
|
60
|
+
"test": "vitest run",
|
|
61
|
+
"test:watch": "vitest",
|
|
62
|
+
"lint": "eslint 'src/**/*.ts' --max-warnings 0 --config ../../eslint.config.ts",
|
|
63
|
+
"type-check": "tsc --noEmit",
|
|
64
|
+
"flow": "tsx src/index.ts flow",
|
|
65
|
+
"format": "prettier --write \"**/*.{js,ts,json,md,yml,yaml}\" --ignore-path ../../.prettierignore",
|
|
66
|
+
"lint:fix": "eslint 'src/**/*.ts' --fix --config ../../eslint.config.ts",
|
|
67
|
+
"format:fix": "prettier --write \"**/*.{js,ts,json,md,yml,yaml}\" --ignore-path ../../.prettierignore",
|
|
68
|
+
"link:dev": "pnpm build && pnpm link --global",
|
|
69
|
+
"unlink:dev": "pnpm unlink --global"
|
|
69
70
|
}
|
|
70
|
-
}
|
|
71
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { Command } from 'commander';
|
|
3
|
-
import { Config } from '../utils/config';
|
|
4
|
-
import { Analytics } from '../utils/analytics';
|
|
5
|
-
export declare function createCheckClientCommand(config: Config, analytics: Analytics): Command;
|
|
6
|
-
//# sourceMappingURL=check-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-client.d.ts","sourceRoot":"","sources":["../../../src/commands/check-client.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAI/C,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAgEtF"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { Command } from 'commander';
|
|
3
|
-
import createDebug from 'debug';
|
|
4
|
-
const debug = createDebug('cli:check-client');
|
|
5
|
-
export function createCheckClientCommand(config, analytics) {
|
|
6
|
-
const command = new Command('check:client')
|
|
7
|
-
.description('Run frontend checks on client application')
|
|
8
|
-
.argument('<client-directory>', 'Path to the client directory')
|
|
9
|
-
.option('--skip-browser', 'Skip browser-based checks (console errors)')
|
|
10
|
-
.option('-d, --debug', 'Enable debug output')
|
|
11
|
-
.action(async (clientDirectory, options) => {
|
|
12
|
-
debug('Starting check:client command');
|
|
13
|
-
debug(' Client directory: %s', clientDirectory);
|
|
14
|
-
debug(' Options: %o', options);
|
|
15
|
-
await analytics.track({
|
|
16
|
-
command: 'check:client:start',
|
|
17
|
-
success: true,
|
|
18
|
-
});
|
|
19
|
-
try {
|
|
20
|
-
// Dynamic import to avoid circular dependency issues
|
|
21
|
-
const { handleCheckClientCommand } = await import('@auto-engineer/frontend-checks');
|
|
22
|
-
const command = {
|
|
23
|
-
type: 'CheckClient',
|
|
24
|
-
data: {
|
|
25
|
-
clientDirectory,
|
|
26
|
-
skipBrowserChecks: options.skipBrowser ?? false,
|
|
27
|
-
},
|
|
28
|
-
timestamp: new Date(),
|
|
29
|
-
requestId: `cli-${Date.now()}`,
|
|
30
|
-
};
|
|
31
|
-
debug('Executing check client command');
|
|
32
|
-
const result = await handleCheckClientCommand(command);
|
|
33
|
-
if (result.type === 'ClientChecked') {
|
|
34
|
-
const { tsErrors, buildErrors, consoleErrors, allChecksPassed } = result.data;
|
|
35
|
-
if (allChecksPassed) {
|
|
36
|
-
debug('All checks passed');
|
|
37
|
-
console.log('✅ All frontend checks passed successfully');
|
|
38
|
-
await analytics.track({ command: 'check:client', success: true });
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
debug('Some checks failed');
|
|
42
|
-
console.log('❌ Frontend checks failed:');
|
|
43
|
-
if (tsErrors > 0)
|
|
44
|
-
console.log(` - ${tsErrors} TypeScript errors`);
|
|
45
|
-
if (buildErrors > 0)
|
|
46
|
-
console.log(` - ${buildErrors} build errors`);
|
|
47
|
-
if (consoleErrors > 0)
|
|
48
|
-
console.log(` - ${consoleErrors} console errors`);
|
|
49
|
-
await analytics.track({ command: 'check:client', success: false, errorCode: 'checks_failed' });
|
|
50
|
-
process.exit(1);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
debug('Check failed: %s', result.data.error);
|
|
55
|
-
console.error(`❌ Frontend checks failed: ${result.data.error}`);
|
|
56
|
-
await analytics.track({ command: 'check:client', success: false, errorCode: result.data.error });
|
|
57
|
-
process.exit(1);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
catch (error) {
|
|
61
|
-
debug('Command error: %O', error);
|
|
62
|
-
console.error('Frontend checks failed:', error);
|
|
63
|
-
await analytics.track({ command: 'check:client', success: false, errorCode: 'exception' });
|
|
64
|
-
process.exit(1);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
return command;
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=check-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-client.js","sourceRoot":"","sources":["../../../src/commands/check-client.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,WAAW,MAAM,OAAO,CAAC;AAIhC,MAAM,KAAK,GAAG,WAAW,CAAC,kBAAkB,CAAC,CAAC;AAE9C,MAAM,UAAU,wBAAwB,CAAC,MAAc,EAAE,SAAoB;IAC3E,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,cAAc,CAAC;SACxC,WAAW,CAAC,2CAA2C,CAAC;SACxD,QAAQ,CAAC,oBAAoB,EAAE,8BAA8B,CAAC;SAC9D,MAAM,CAAC,gBAAgB,EAAE,4CAA4C,CAAC;SACtE,MAAM,CAAC,aAAa,EAAE,qBAAqB,CAAC;SAC5C,MAAM,CAAC,KAAK,EAAE,eAAuB,EAAE,OAAmD,EAAE,EAAE;QAC7F,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACvC,KAAK,CAAC,wBAAwB,EAAE,eAAe,CAAC,CAAC;QACjD,KAAK,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QAEhC,MAAM,SAAS,CAAC,KAAK,CAAC;YACpB,OAAO,EAAE,oBAAoB;YAC7B,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;QAEH,IAAI,CAAC;YACH,qDAAqD;YACrD,MAAM,EAAE,wBAAwB,EAAE,GAAG,M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AAc,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC,CAAC;oBAC/F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAClB,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,KAAK,CAAC,kBAAkB,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAC7C,OAAO,CAAC,KAAK,CAAC,6BAA6B,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;gBAChE,MAAM,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;gBACjG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;YAClC,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;YAChD,MAAM,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,CAAC;YAC3F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import type { Analytics } from '../utils/analytics';
|
|
3
|
-
import { Config } from '../utils/config';
|
|
4
|
-
export declare const createCheckLintCommand: (config: Config, analytics: Analytics) => Command;
|
|
5
|
-
//# sourceMappingURL=check-lint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-lint.d.ts","sourceRoot":"","sources":["../../../src/commands/check-lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAkEzC,eAAO,MAAM,sBAAsB,WAAY,MAAM,aAAa,SAAS,KAAG,OA6C7E,CAAC"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { createOutput } from '../utils/terminal.js';
|
|
4
|
-
import { handleError } from '../utils/errors.js';
|
|
5
|
-
const determineTargetDirectory = (directoryArg, options) => {
|
|
6
|
-
let targetDirectory = './server';
|
|
7
|
-
if (directoryArg !== undefined && directoryArg !== null && directoryArg.trim() !== '') {
|
|
8
|
-
targetDirectory = directoryArg;
|
|
9
|
-
}
|
|
10
|
-
else if (options?.directory !== undefined && options.directory !== null && options.directory.trim() !== '') {
|
|
11
|
-
targetDirectory = options.directory;
|
|
12
|
-
}
|
|
13
|
-
return path.resolve(targetDirectory);
|
|
14
|
-
};
|
|
15
|
-
const handleLintCheck = async (resolvedDirectory, scope, fix, output, analytics) => {
|
|
16
|
-
output.info(`🎨 Running ESLint on: ${resolvedDirectory}`);
|
|
17
|
-
output.info(` Scope: ${scope}`);
|
|
18
|
-
if (fix) {
|
|
19
|
-
output.info(` Auto-fix: enabled`);
|
|
20
|
-
}
|
|
21
|
-
// Dynamic import to avoid circular dependency issues
|
|
22
|
-
const { handleCheckLintCommand } = await import('@auto-engineer/backend-checks');
|
|
23
|
-
const checkCommand = {
|
|
24
|
-
type: 'CheckLint',
|
|
25
|
-
data: {
|
|
26
|
-
targetDirectory: resolvedDirectory,
|
|
27
|
-
scope,
|
|
28
|
-
fix,
|
|
29
|
-
},
|
|
30
|
-
timestamp: new Date(),
|
|
31
|
-
requestId: `check-lint-${Date.now()}`,
|
|
32
|
-
correlationId: `check-lint-${Date.now()}`,
|
|
33
|
-
};
|
|
34
|
-
const result = await handleCheckLintCommand(checkCommand);
|
|
35
|
-
if (result.type === 'LintCheckPassed') {
|
|
36
|
-
output.success('✅ Lint check passed');
|
|
37
|
-
output.info(` Files checked: ${result.data.filesChecked}`);
|
|
38
|
-
if (result.data.filesFixed !== undefined) {
|
|
39
|
-
output.info(` Files fixed: ${result.data.filesFixed}`);
|
|
40
|
-
}
|
|
41
|
-
await analytics.track({ command: 'check:lint:complete', success: true });
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
output.error(`❌ Lint check failed`);
|
|
45
|
-
output.error(` Errors: ${result.data.errorCount}`);
|
|
46
|
-
output.error(` Warnings: ${result.data.warningCount}`);
|
|
47
|
-
if (result.data.filesWithIssues.length > 0) {
|
|
48
|
-
output.error(` Files with issues: ${result.data.filesWithIssues.join(', ')}`);
|
|
49
|
-
}
|
|
50
|
-
if (result.data.errors) {
|
|
51
|
-
output.error(` Details:\n${result.data.errors.substring(0, 500)}`);
|
|
52
|
-
}
|
|
53
|
-
await analytics.track({ command: 'check:lint:failed', success: false });
|
|
54
|
-
process.exit(1);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
export const createCheckLintCommand = (config, analytics) => {
|
|
58
|
-
const output = createOutput(config);
|
|
59
|
-
const command = new Command('check:lint');
|
|
60
|
-
command
|
|
61
|
-
.description('Run ESLint checks on backend TypeScript code')
|
|
62
|
-
.argument('[directory]', 'Path to the directory to lint (defaults to ./server)')
|
|
63
|
-
.option('-d, --directory <path>', 'Target directory path (alternative to argument)')
|
|
64
|
-
.option('-s, --scope <scope>', 'Lint scope: "slice" (target dir only) or "project" (entire project)', 'slice')
|
|
65
|
-
.option('-f, --fix', 'Automatically fix problems where possible')
|
|
66
|
-
.action(async (directoryArg, options) => {
|
|
67
|
-
try {
|
|
68
|
-
await analytics.track({ command: 'check:lint:start', success: true });
|
|
69
|
-
const resolvedDirectory = determineTargetDirectory(directoryArg, options);
|
|
70
|
-
const scope = options?.scope === 'project' ? 'project' : 'slice';
|
|
71
|
-
const fix = Boolean(options?.fix);
|
|
72
|
-
await handleLintCheck(resolvedDirectory, scope, fix, output, analytics);
|
|
73
|
-
}
|
|
74
|
-
catch (error) {
|
|
75
|
-
await analytics.track({ command: 'check:lint:error', success: false });
|
|
76
|
-
handleError(error);
|
|
77
|
-
process.exit(1);
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
command.addHelpText('after', `
|
|
81
|
-
Examples:
|
|
82
|
-
$ auto check:lint
|
|
83
|
-
$ auto check:lint ./server
|
|
84
|
-
$ auto check:lint --directory ./backend
|
|
85
|
-
$ auto check:lint ./server --fix
|
|
86
|
-
$ auto check:lint ./server --scope project --fix
|
|
87
|
-
|
|
88
|
-
Notes:
|
|
89
|
-
- By default lints only the specified directory (slice scope)
|
|
90
|
-
- Use --scope project to lint the entire project
|
|
91
|
-
- Use --fix to automatically fix problems where possible
|
|
92
|
-
- Exit code 0 on success, 1 on failure
|
|
93
|
-
`);
|
|
94
|
-
return command;
|
|
95
|
-
};
|
|
96
|
-
//# sourceMappingURL=check-lint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-lint.js","sourceRoot":"","sources":["../../../src/commands/check-lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,wBAAwB,GAAG,CAAC,YAAqB,EAAE,OAAgD,EAAU,EAAE;IACnH,IAAI,eAAe,GAAG,UAAU,CAAC;IACjC,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACtF,eAAe,GAAG,YAAY,CAAC;IAC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,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import type { Analytics } from '../utils/analytics';
|
|
3
|
-
import { Config } from '../utils/config';
|
|
4
|
-
export declare const createCheckTestsCommand: (config: Config, analytics: Analytics) => Command;
|
|
5
|
-
//# sourceMappingURL=check-tests.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-tests.d.ts","sourceRoot":"","sources":["../../../src/commands/check-tests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AA2DzC,eAAO,MAAM,uBAAuB,WAAY,MAAM,aAAa,SAAS,KAAG,OA0C9E,CAAC"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { createOutput } from '../utils/terminal.js';
|
|
4
|
-
import { handleError } from '../utils/errors.js';
|
|
5
|
-
const determineTargetDirectory = (directoryArg, options) => {
|
|
6
|
-
let targetDirectory = './server';
|
|
7
|
-
if (directoryArg !== undefined && directoryArg !== null && directoryArg.trim() !== '') {
|
|
8
|
-
targetDirectory = directoryArg;
|
|
9
|
-
}
|
|
10
|
-
else if (options?.directory !== undefined && options.directory !== null && options.directory.trim() !== '') {
|
|
11
|
-
targetDirectory = options.directory;
|
|
12
|
-
}
|
|
13
|
-
return path.resolve(targetDirectory);
|
|
14
|
-
};
|
|
15
|
-
const handleTestsCheck = async (resolvedDirectory, scope, output, analytics) => {
|
|
16
|
-
output.info(`🧪 Running tests on: ${resolvedDirectory}`);
|
|
17
|
-
output.info(` Scope: ${scope}`);
|
|
18
|
-
// Dynamic import to avoid circular dependency issues
|
|
19
|
-
const { handleCheckTestsCommand } = await import('@auto-engineer/backend-checks');
|
|
20
|
-
const checkCommand = {
|
|
21
|
-
type: 'CheckTests',
|
|
22
|
-
data: {
|
|
23
|
-
targetDirectory: resolvedDirectory,
|
|
24
|
-
scope,
|
|
25
|
-
},
|
|
26
|
-
timestamp: new Date(),
|
|
27
|
-
requestId: `check-tests-${Date.now()}`,
|
|
28
|
-
correlationId: `check-tests-${Date.now()}`,
|
|
29
|
-
};
|
|
30
|
-
const result = await handleCheckTestsCommand(checkCommand);
|
|
31
|
-
if (result.type === 'TestsCheckPassed') {
|
|
32
|
-
output.success('✅ All tests passed');
|
|
33
|
-
output.info(` Tests run: ${result.data.testsRun}`);
|
|
34
|
-
output.info(` Tests passed: ${result.data.testsPassed}`);
|
|
35
|
-
await analytics.track({ command: 'check:tests:complete', success: true });
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
output.error(`❌ Tests failed`);
|
|
39
|
-
output.error(` Tests run: ${result.data.testsRun}`);
|
|
40
|
-
output.error(` Tests failed: ${result.data.testsFailed}`);
|
|
41
|
-
if (result.data.failedTests.length > 0) {
|
|
42
|
-
output.error(` Failed files: ${result.data.failedTests.join(', ')}`);
|
|
43
|
-
}
|
|
44
|
-
if (result.data.errors) {
|
|
45
|
-
output.error(` Errors:\n${result.data.errors.substring(0, 500)}`);
|
|
46
|
-
}
|
|
47
|
-
await analytics.track({ command: 'check:tests:failed', success: false });
|
|
48
|
-
process.exit(1);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
export const createCheckTestsCommand = (config, analytics) => {
|
|
52
|
-
const output = createOutput(config);
|
|
53
|
-
const command = new Command('check:tests');
|
|
54
|
-
command
|
|
55
|
-
.description('Run tests on backend code using Vitest')
|
|
56
|
-
.argument('[directory]', 'Path to the directory to test (defaults to ./server)')
|
|
57
|
-
.option('-d, --directory <path>', 'Target directory path (alternative to argument)')
|
|
58
|
-
.option('-s, --scope <scope>', 'Test scope: "slice" (target dir only) or "project" (entire project)', 'slice')
|
|
59
|
-
.action(async (directoryArg, options) => {
|
|
60
|
-
try {
|
|
61
|
-
await analytics.track({ command: 'check:tests:start', success: true });
|
|
62
|
-
const resolvedDirectory = determineTargetDirectory(directoryArg, options);
|
|
63
|
-
const scope = options?.scope === 'project' ? 'project' : 'slice';
|
|
64
|
-
await handleTestsCheck(resolvedDirectory, scope, output, analytics);
|
|
65
|
-
}
|
|
66
|
-
catch (error) {
|
|
67
|
-
await analytics.track({ command: 'check:tests:error', success: false });
|
|
68
|
-
handleError(error);
|
|
69
|
-
process.exit(1);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
command.addHelpText('after', `
|
|
73
|
-
Examples:
|
|
74
|
-
$ auto check:tests
|
|
75
|
-
$ auto check:tests ./server
|
|
76
|
-
$ auto check:tests --directory ./backend
|
|
77
|
-
$ auto check:tests ./server --scope project
|
|
78
|
-
|
|
79
|
-
Notes:
|
|
80
|
-
- By default runs tests only in the specified directory (slice scope)
|
|
81
|
-
- Use --scope project to run all project tests
|
|
82
|
-
- Uses Vitest as the test runner
|
|
83
|
-
- Exit code 0 on success, 1 on failure
|
|
84
|
-
`);
|
|
85
|
-
return command;
|
|
86
|
-
};
|
|
87
|
-
//# sourceMappingURL=check-tests.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-tests.js","sourceRoot":"","sources":["../../../src/commands/check-tests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,wBAAwB,GAAG,CAAC,YAAqB,EAAE,OAAgD,EAAU,EAAE;IACnH,IAAI,eAAe,GAAG,UAAU,CAAC;IACjC,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACtF,eAAe,GA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,wBAAwB,EAAE,iDAAiD,CAAC;SACnF,MAAM,CAAC,qBAAqB,EAAE,qEAAqE,EAAE,OAAO,CAAC;SAC7G,MAAM,CAAC,KAAK,EAAE,YAAqB,EAAE,OAAgD,EAAE,EAAE;QACxF,IAAI,CAAC;YACH,MAAM,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;YAEvE,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAC1E,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;YAEjE,MAAM,gBAAgB,CAAC,iBAAiB,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;QACtE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;YACxE,WAAW,CAAC,KAAc,CAAC,CAAC;YAC5B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,OAAO,CAAC,WAAW,CACjB,OAAO,EACP;;;;;;;;;;;;KAYC,CACF,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import type { Analytics } from '../utils/analytics';
|
|
3
|
-
import { Config } from '../utils/config';
|
|
4
|
-
export declare const createCheckTypesCommand: (config: Config, analytics: Analytics) => Command;
|
|
5
|
-
//# sourceMappingURL=check-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-types.d.ts","sourceRoot":"","sources":["../../../src/commands/check-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAwDzC,eAAO,MAAM,uBAAuB,WAAY,MAAM,aAAa,SAAS,KAAG,OAyC9E,CAAC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { createOutput } from '../utils/terminal.js';
|
|
4
|
-
import { handleError } from '../utils/errors.js';
|
|
5
|
-
const determineTargetDirectory = (directoryArg, options) => {
|
|
6
|
-
let targetDirectory = './server';
|
|
7
|
-
if (directoryArg !== undefined && directoryArg !== null && directoryArg.trim() !== '') {
|
|
8
|
-
targetDirectory = directoryArg;
|
|
9
|
-
}
|
|
10
|
-
else if (options?.directory !== undefined && options.directory !== null && options.directory.trim() !== '') {
|
|
11
|
-
targetDirectory = options.directory;
|
|
12
|
-
}
|
|
13
|
-
return path.resolve(targetDirectory);
|
|
14
|
-
};
|
|
15
|
-
const handleTypeCheck = async (resolvedDirectory, scope, output, analytics) => {
|
|
16
|
-
output.info(`🔍 Running TypeScript type check on: ${resolvedDirectory}`);
|
|
17
|
-
output.info(` Scope: ${scope}`);
|
|
18
|
-
// Dynamic import to avoid circular dependency issues
|
|
19
|
-
const { handleCheckTypesCommand } = await import('@auto-engineer/backend-checks');
|
|
20
|
-
const checkCommand = {
|
|
21
|
-
type: 'CheckTypes',
|
|
22
|
-
data: {
|
|
23
|
-
targetDirectory: resolvedDirectory,
|
|
24
|
-
scope,
|
|
25
|
-
},
|
|
26
|
-
timestamp: new Date(),
|
|
27
|
-
requestId: `check-types-${Date.now()}`,
|
|
28
|
-
correlationId: `check-types-${Date.now()}`,
|
|
29
|
-
};
|
|
30
|
-
const result = await handleCheckTypesCommand(checkCommand);
|
|
31
|
-
if (result.type === 'TypeCheckPassed') {
|
|
32
|
-
output.success('✅ Type check passed');
|
|
33
|
-
output.info(` Checked ${result.data.checkedFiles} files`);
|
|
34
|
-
await analytics.track({ command: 'check:types:complete', success: true });
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
output.error(`❌ Type check failed`);
|
|
38
|
-
if (result.data.failedFiles.length > 0) {
|
|
39
|
-
output.error(` Failed files: ${result.data.failedFiles.join(', ')}`);
|
|
40
|
-
}
|
|
41
|
-
if (result.data.errors) {
|
|
42
|
-
output.error(` Errors:\n${result.data.errors.substring(0, 500)}`);
|
|
43
|
-
}
|
|
44
|
-
await analytics.track({ command: 'check:types:failed', success: false });
|
|
45
|
-
process.exit(1);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
export const createCheckTypesCommand = (config, analytics) => {
|
|
49
|
-
const output = createOutput(config);
|
|
50
|
-
const command = new Command('check:types');
|
|
51
|
-
command
|
|
52
|
-
.description('Run TypeScript type checking on backend code')
|
|
53
|
-
.argument('[directory]', 'Path to the directory to check (defaults to ./server)')
|
|
54
|
-
.option('-d, --directory <path>', 'Target directory path (alternative to argument)')
|
|
55
|
-
.option('-s, --scope <scope>', 'Check scope: "slice" (target dir only) or "project" (entire project)', 'slice')
|
|
56
|
-
.action(async (directoryArg, options) => {
|
|
57
|
-
try {
|
|
58
|
-
await analytics.track({ command: 'check:types:start', success: true });
|
|
59
|
-
const resolvedDirectory = determineTargetDirectory(directoryArg, options);
|
|
60
|
-
const scope = options?.scope === 'project' ? 'project' : 'slice';
|
|
61
|
-
await handleTypeCheck(resolvedDirectory, scope, output, analytics);
|
|
62
|
-
}
|
|
63
|
-
catch (error) {
|
|
64
|
-
await analytics.track({ command: 'check:types:error', success: false });
|
|
65
|
-
handleError(error);
|
|
66
|
-
process.exit(1);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
command.addHelpText('after', `
|
|
70
|
-
Examples:
|
|
71
|
-
$ auto check:types
|
|
72
|
-
$ auto check:types ./server
|
|
73
|
-
$ auto check:types --directory ./backend
|
|
74
|
-
$ auto check:types ./server --scope project
|
|
75
|
-
|
|
76
|
-
Notes:
|
|
77
|
-
- By default checks only the specified directory (slice scope)
|
|
78
|
-
- Use --scope project to check the entire project
|
|
79
|
-
- Exit code 0 on success, 1 on failure
|
|
80
|
-
`);
|
|
81
|
-
return command;
|
|
82
|
-
};
|
|
83
|
-
//# sourceMappingURL=check-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-types.js","sourceRoot":"","sources":["../../../src/commands/check-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,wBAAwB,GAAG,CAAC,YAAqB,EAAE,OAAgD,EAAU,EAAE;IACnH,IAAI,eAAe,GAAG,UAAU,CAAC;IACjC,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACtF,eAAe,GAAG,YAAY,CAAC;IACjC,CAAC;SAAM,IAAI,OAAO,EAAE,SAAS,KAAK,SAAS,IAAI,OAAO,CAAC,SAAS,KAAK,IAAI,IAAI,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC7G,eAAe,GAAG,OAAO,CAAC,SAAS,CAAC;IACtC,CAAC;IACD,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,KAAK,EAC3B,iBAAyB,EACzB,KAA0B,EAC1B,MAAuC,EACvC,SAAoB,EACL,EAAE;IACjB,MAAM,CAAC,IAAI,CAAC,wCAAwC,iBAAiB,EAAE,CAAC,CAAC;I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O,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,OAAO,CAAC,WAAW,CACjB,OAAO,EACP;;;;;;;;;;;KAWC,CACF,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import { Config } from '../utils/config';
|
|
3
|
-
import { Analytics } from '../utils/analytics';
|
|
4
|
-
export declare const createCopyExampleCommand: (config: Config, analytics: Analytics) => Command;
|
|
5
|
-
//# sourceMappingURL=copy-example.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"copy-example.d.ts","sourceRoot":"","sources":["../../../src/commands/copy-example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,eAAO,MAAM,wBAAwB,WAAY,MAAM,aAAa,SAAS,KAAG,OAyD/E,CAAC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import { createOutput } from '../utils/terminal.js';
|
|
3
|
-
import { handleError } from '../utils/errors.js';
|
|
4
|
-
export const createCopyExampleCommand = (config, analytics) => {
|
|
5
|
-
const output = createOutput(config);
|
|
6
|
-
const command = new Command('copy:example');
|
|
7
|
-
command
|
|
8
|
-
.description('Copy a starter template to the current directory')
|
|
9
|
-
.argument('<starter-name>', 'Name of the starter to copy (shadcn-starter or mui-starter)')
|
|
10
|
-
.option('--directory <path>', 'Target directory (defaults to current directory)')
|
|
11
|
-
.action(async (starterName, options) => {
|
|
12
|
-
try {
|
|
13
|
-
await analytics.track({ command: 'copy:example:start', success: true });
|
|
14
|
-
const targetDirectory = options.directory ?? process.cwd();
|
|
15
|
-
output.info(`Copying starter "${starterName}" to ${targetDirectory}/.auto/${starterName}...`);
|
|
16
|
-
// Import the handler
|
|
17
|
-
const { handleCopyExampleCommand } = await import('@auto-engineer/react-graphql-generator');
|
|
18
|
-
const copyCommand = {
|
|
19
|
-
type: 'CopyExample',
|
|
20
|
-
data: {
|
|
21
|
-
starterName,
|
|
22
|
-
targetDir: targetDirectory,
|
|
23
|
-
},
|
|
24
|
-
timestamp: new Date(),
|
|
25
|
-
requestId: `copy-example-${Date.now()}`,
|
|
26
|
-
};
|
|
27
|
-
const result = await handleCopyExampleCommand(copyCommand);
|
|
28
|
-
if (result.type === 'ExampleCopied') {
|
|
29
|
-
output.success(`✅ Starter "${starterName}" copied successfully to ${result.data.targetDir}`);
|
|
30
|
-
output.info('');
|
|
31
|
-
output.info('Next steps:');
|
|
32
|
-
output.info(`1. Navigate to the starter: cd ${result.data.targetDir}`);
|
|
33
|
-
output.info('2. Install dependencies: npm install');
|
|
34
|
-
output.info('3. Start development: npm run dev');
|
|
35
|
-
await analytics.track({ command: 'copy:example', success: true });
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
output.error(`❌ Failed to copy starter: ${result.data.error}`);
|
|
39
|
-
await analytics.track({ command: 'copy:example', success: false, errorCode: result.data.error });
|
|
40
|
-
process.exit(1);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
catch (error) {
|
|
44
|
-
await analytics.track({
|
|
45
|
-
command: 'copy:example',
|
|
46
|
-
success: false,
|
|
47
|
-
errorCode: error instanceof Error ? error.message : String(error),
|
|
48
|
-
});
|
|
49
|
-
handleError(error instanceof Error ? error : new Error(String(error)));
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
return command;
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=copy-example.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"copy-example.js","sourceRoot":"","sources":["../../../src/commands/copy-example.ts"],"names":[],"mappings":"AAAA,OAAO,E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CAAC,CAAC;QACzE,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import { Config } from '../utils/config';
|
|
3
|
-
import { Analytics } from '../utils/analytics';
|
|
4
|
-
export declare const createCreateExampleCommand: (config: Config, analytics: Analytics) => Command;
|
|
5
|
-
//# sourceMappingURL=create-example.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-example.d.ts","sourceRoot":"","sources":["../../../src/commands/create-example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,eAAO,MAAM,0BAA0B,WAAY,MAAM,aAAa,SAAS,KAAG,OA+DjF,CAAC"}
|