@gadmin2n/cli 0.0.88 → 0.0.90
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/actions/new.action.js
CHANGED
|
@@ -100,7 +100,15 @@ class NewAction extends abstract_action_1.AbstractAction {
|
|
|
100
100
|
}
|
|
101
101
|
console.info();
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
if (options.find(option => option.name === 'with-web' && option.value === true)) {
|
|
104
|
+
console.info("#Change dev's coding agent(knot Agent) id:");
|
|
105
|
+
console.info(chalk.gray("vi web/.env.local"));
|
|
106
|
+
console.info();
|
|
107
|
+
}
|
|
108
|
+
console.info("#Change dev's env database config:");
|
|
109
|
+
console.info(chalk.gray("vi server/.env.local"));
|
|
110
|
+
console.info();
|
|
111
|
+
console.info("#Generate code by config/schema.prisma:");
|
|
104
112
|
console.info(chalk.gray("gadmin2 g prisma:dev"));
|
|
105
113
|
console.info();
|
|
106
114
|
if (options.find(option => option.name === 'server-framework' && option.value === 'nest')) {
|
|
@@ -16,10 +16,18 @@ class TemplateCommand extends abstract_command_1.AbstractCommand {
|
|
|
16
16
|
program
|
|
17
17
|
.command('template <subcommand>')
|
|
18
18
|
.alias('tpl')
|
|
19
|
-
.description('Compare or sync with the project template
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
.description('Compare or sync with the project template.\n\n' +
|
|
20
|
+
' Subcommands:\n' +
|
|
21
|
+
' diff Show differences between instance and template\n' +
|
|
22
|
+
' update Pull updates from template into instance\n\n' +
|
|
23
|
+
' Update strategies (per-file interactive prompt):\n' +
|
|
24
|
+
' skip Keep instance file as-is\n' +
|
|
25
|
+
' overwrite Replace with template version\n' +
|
|
26
|
+
' merge Attempt auto merge via git merge-file\n' +
|
|
27
|
+
' conflict Write conflict markers for manual resolve\n')
|
|
28
|
+
.option('--no-content', '[diff] Only show file list, skip inline diff content.')
|
|
29
|
+
.option('-d, --dry-run', '[update] Show what would be updated without making changes.')
|
|
30
|
+
.option('-y, --yes', '[update] Skip per-file prompt, use conflict markers for all.')
|
|
23
31
|
.action((subcommand, command) => __awaiter(this, void 0, void 0, function* () {
|
|
24
32
|
const inputs = [];
|
|
25
33
|
inputs.push({ name: 'subcommand', value: subcommand });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gadmin2n/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.90",
|
|
4
4
|
"description": "Gadmin - modern, fast, powerful node.js web framework (@cli)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@angular-devkit/core": "13.3.2",
|
|
48
48
|
"@angular-devkit/schematics": "13.3.2",
|
|
49
49
|
"@angular-devkit/schematics-cli": "13.3.2",
|
|
50
|
-
"@gadmin2n/schematics": "^0.0.
|
|
50
|
+
"@gadmin2n/schematics": "^0.0.71",
|
|
51
51
|
"abc": "^0.6.1",
|
|
52
52
|
"chalk": "3.0.0",
|
|
53
53
|
"chokidar": "3.5.3",
|