@lakutata/cli 2.13.0 → 2.14.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 +19 -0
- package/dist/CLIApp.js +6 -4
- package/dist/controllers/CommandLineController.d.ts.map +1 -1
- package/dist/controllers/CommandLineController.js +0 -25
- package/dist/lib/ConvertDTO2Inquirer.js +3 -3
- package/dist/lib/GetDataDirectory.d.ts +2 -0
- package/dist/lib/GetDataDirectory.d.ts.map +1 -0
- package/dist/lib/GetDataDirectory.js +11 -0
- package/dist/lib/GetLocalDataFilename.d.ts +2 -0
- package/dist/lib/GetLocalDataFilename.d.ts.map +1 -0
- package/dist/lib/GetLocalDataFilename.js +12 -0
- package/dist/lib/ListTemplateNames.d.ts +2 -0
- package/dist/lib/ListTemplateNames.d.ts.map +1 -0
- package/dist/lib/ListTemplateNames.js +44 -0
- package/dist/lib/providers/TemplateManager.d.ts +0 -6
- package/dist/lib/providers/TemplateManager.d.ts.map +1 -1
- package/dist/lib/providers/TemplateManager.js +2 -22
- package/dist/options/CreateProjectOptions.d.ts.map +1 -1
- package/dist/options/CreateProjectOptions.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.14.1](https://github.com/lakutata/lakutata-packages/compare/@lakutata/cli@2.14.0...@lakutata/cli@2.14.1) (2025-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @lakutata/cli
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [2.14.0](https://github.com/lakutata/lakutata-packages/compare/@lakutata/cli@2.13.0...@lakutata/cli@2.14.0) (2025-07-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **cli:** refactor template management and DTO conversion ([7072c41](https://github.com/lakutata/lakutata-packages/commit/7072c4100419db43f00dc49cdfd9e48e0ec4cb0f))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# 2.13.0 (2025-07-11)
|
|
7
26
|
|
|
8
27
|
|
package/dist/CLIApp.js
CHANGED
|
@@ -27,17 +27,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
const
|
|
31
|
-
const console = __importStar(require("node:console"));
|
|
30
|
+
const GetDataDirectory_1 = require("./lib/GetDataDirectory");
|
|
32
31
|
const node_path_1 = __importDefault(require("node:path"));
|
|
32
|
+
const console = __importStar(require("node:console"));
|
|
33
|
+
const node_process_1 = __importDefault(require("node:process"));
|
|
34
|
+
const lakutata_1 = require("lakutata");
|
|
33
35
|
const Config_1 = require("./config/Config");
|
|
34
36
|
lakutata_1.Application
|
|
35
37
|
.alias({
|
|
36
38
|
'@packageJson': node_path_1.default.resolve(__dirname, '../package.json'),
|
|
37
|
-
'@data':
|
|
39
|
+
'@data': (0, GetDataDirectory_1.GetDataDirectory)()
|
|
38
40
|
}, true)
|
|
39
41
|
.run(Config_1.Config)
|
|
40
42
|
.onUncaughtException((error) => {
|
|
41
43
|
console.error(`error: ${error.message}`);
|
|
42
|
-
return
|
|
44
|
+
return node_process_1.default.exit(1);
|
|
43
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandLineController.d.ts","sourceRoot":"","sources":["../../src/controllers/CommandLineController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,KAAK,aAAa,EAAM,MAAM,UAAU,CAAA;AAGhD,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"CommandLineController.d.ts","sourceRoot":"","sources":["../../src/controllers/CommandLineController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,KAAK,aAAa,EAAM,MAAM,UAAU,CAAA;AAGhD,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAA;AAIhE,qBAAa,qBAAsB,SAAQ,UAAU;IAGjD,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAA;IAG1C,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAA;IAG7C,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAA;IAEnD;;OAEG;IAEU,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIpC;;;OAGG;IAEU,SAAS,CAAC,GAAG,EAAE,aAAa,CAAC,oBAAoB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/E;;OAEG;IAEU,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
|
|
@@ -1,33 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
7
|
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
-
__setModuleDefault(result, mod);
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
32
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
33
10
|
};
|
|
@@ -43,13 +20,11 @@ const ListTemplatesOptions_1 = require("../options/ListTemplatesOptions");
|
|
|
43
20
|
const TemplateManager_1 = require("../lib/providers/TemplateManager");
|
|
44
21
|
const CreateProjectOptions_1 = require("../options/CreateProjectOptions");
|
|
45
22
|
const ConvertDTO2Inquirer_1 = require("../lib/ConvertDTO2Inquirer");
|
|
46
|
-
const process = __importStar(require("node:process"));
|
|
47
23
|
class CommandLineController extends entrypoint_1.Controller {
|
|
48
24
|
/**
|
|
49
25
|
* Create project
|
|
50
26
|
*/
|
|
51
27
|
async create() {
|
|
52
|
-
process.env.LAKUTATA_TEMPLATE_NAMES = JSON.stringify(await this.templateManager.listNames());
|
|
53
28
|
await this.projectCreator.create(await (0, ConvertDTO2Inquirer_1.ConvertDTO2Inquirer)(CreateProjectOptions_1.CreateProjectOptions));
|
|
54
29
|
}
|
|
55
30
|
/**
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ConvertDTO2Inquirer = void 0;
|
|
7
7
|
const inquirer_1 = __importDefault(require("inquirer"));
|
|
8
8
|
async function ConvertDTO2Inquirer(dto) {
|
|
9
|
-
const jsonSchema = dto.
|
|
9
|
+
const jsonSchema = dto.toOpenAPIJsonSchema();
|
|
10
10
|
const prompts = [];
|
|
11
11
|
for (const propertyName in jsonSchema.properties) {
|
|
12
12
|
const propertyInfo = jsonSchema.properties[propertyName];
|
|
@@ -25,8 +25,8 @@ async function ConvertDTO2Inquirer(dto) {
|
|
|
25
25
|
break;
|
|
26
26
|
case 'string':
|
|
27
27
|
default: {
|
|
28
|
-
if (propertyInfo.
|
|
29
|
-
const enums = propertyInfo.
|
|
28
|
+
if (propertyInfo.enum) {
|
|
29
|
+
const enums = propertyInfo.enum;
|
|
30
30
|
prompts.push({
|
|
31
31
|
name: propertyName,
|
|
32
32
|
type: 'list',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetDataDirectory.d.ts","sourceRoot":"","sources":["../../src/lib/GetDataDirectory.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.GetDataDirectory = void 0;
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
function GetDataDirectory() {
|
|
9
|
+
return node_path_1.default.resolve(__dirname, '../../node_modules/.data');
|
|
10
|
+
}
|
|
11
|
+
exports.GetDataDirectory = GetDataDirectory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetLocalDataFilename.d.ts","sourceRoot":"","sources":["../../src/lib/GetLocalDataFilename.ts"],"names":[],"mappings":"AAGA,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.GetLocalDataFilename = void 0;
|
|
7
|
+
const GetDataDirectory_1 = require("./GetDataDirectory");
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
+
function GetLocalDataFilename() {
|
|
10
|
+
return node_path_1.default.resolve((0, GetDataDirectory_1.GetDataDirectory)(), 'templates.db');
|
|
11
|
+
}
|
|
12
|
+
exports.GetLocalDataFilename = GetLocalDataFilename;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListTemplateNames.d.ts","sourceRoot":"","sources":["../../src/lib/ListTemplateNames.ts"],"names":[],"mappings":"AAIA,wBAAgB,iBAAiB,IAAI,MAAM,EAAE,CAY5C"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ListTemplateNames = void 0;
|
|
27
|
+
const lakutata_1 = require("lakutata");
|
|
28
|
+
const fs = __importStar(require("node:fs"));
|
|
29
|
+
const GetLocalDataFilename_1 = require("./GetLocalDataFilename");
|
|
30
|
+
function ListTemplateNames() {
|
|
31
|
+
const localDataFilename = (0, GetLocalDataFilename_1.GetLocalDataFilename)();
|
|
32
|
+
const isLocalDataExists = fs.existsSync(localDataFilename);
|
|
33
|
+
let cache = {
|
|
34
|
+
templates: [],
|
|
35
|
+
updatedAt: lakutata_1.Time.now()
|
|
36
|
+
};
|
|
37
|
+
if (isLocalDataExists) {
|
|
38
|
+
cache = JSON.parse(fs.readFileSync(localDataFilename, { encoding: 'utf-8' }));
|
|
39
|
+
}
|
|
40
|
+
if (!cache)
|
|
41
|
+
return [];
|
|
42
|
+
return cache.templates.map((template) => template.name);
|
|
43
|
+
}
|
|
44
|
+
exports.ListTemplateNames = ListTemplateNames;
|
|
@@ -14,11 +14,6 @@ export declare class TemplateManager extends Provider {
|
|
|
14
14
|
protected readonly apiHost: string;
|
|
15
15
|
protected readonly repoPrefix: string;
|
|
16
16
|
protected readonly localDataFilename: string;
|
|
17
|
-
/**
|
|
18
|
-
* Initializer
|
|
19
|
-
* @protected
|
|
20
|
-
*/
|
|
21
|
-
protected init(): Promise<void>;
|
|
22
17
|
/**
|
|
23
18
|
* Fetch template repository list from remote
|
|
24
19
|
* @protected
|
|
@@ -29,7 +24,6 @@ export declare class TemplateManager extends Provider {
|
|
|
29
24
|
* @param options
|
|
30
25
|
*/
|
|
31
26
|
list(options: ListTemplatesOptions): Promise<void>;
|
|
32
|
-
listNames(): Promise<string[]>;
|
|
33
27
|
/**
|
|
34
28
|
* Print template information to console
|
|
35
29
|
* @param templateInfos
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateManager.d.ts","sourceRoot":"","sources":["../../../src/lib/providers/TemplateManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAO,QAAQ,EAAO,MAAM,UAAU,CAAA;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAA;AAQvE,OAAO,EAAC,MAAM,EAAC,MAAM,qBAAqB,CAAA;AAE1C,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"TemplateManager.d.ts","sourceRoot":"","sources":["../../../src/lib/providers/TemplateManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAO,QAAQ,EAAO,MAAM,UAAU,CAAA;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAA;AAQvE,OAAO,EAAC,MAAM,EAAC,MAAM,qBAAqB,CAAA;AAE1C,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAA;AAI7C,KAAK,YAAY,GAAG;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA;AAQD,qBAAa,eAAgB,SAAQ,QAAQ;IAGzC,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAA;IAGnC,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IAG9B,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IAGnC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IAGlC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAErC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAyB;IAErE;;;OAGG;cACa,kBAAkB,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IA0B7D;;;OAGG;IAEU,IAAI,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAyB/D;;;;;OAKG;IACH,SAAS,CAAC,cAAc,CAAC,aAAa,EAAE,YAAY,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;CAmBnF"}
|
|
@@ -49,16 +49,11 @@ const logger_1 = require("lakutata/com/logger");
|
|
|
49
49
|
const helper_1 = require("lakutata/helper");
|
|
50
50
|
const Spinner_1 = require("../components/Spinner");
|
|
51
51
|
const promises_1 = require("node:fs/promises");
|
|
52
|
+
const GetLocalDataFilename_1 = require("../GetLocalDataFilename");
|
|
52
53
|
class TemplateManager extends lakutata_1.Provider {
|
|
53
54
|
constructor() {
|
|
54
55
|
super(...arguments);
|
|
55
|
-
this.localDataFilename =
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Initializer
|
|
59
|
-
* @protected
|
|
60
|
-
*/
|
|
61
|
-
async init() {
|
|
56
|
+
this.localDataFilename = (0, GetLocalDataFilename_1.GetLocalDataFilename)();
|
|
62
57
|
}
|
|
63
58
|
/**
|
|
64
59
|
* Fetch template repository list from remote
|
|
@@ -117,21 +112,6 @@ class TemplateManager extends lakutata_1.Provider {
|
|
|
117
112
|
}
|
|
118
113
|
this.printTemplates(cache.templates, cache.updatedAt);
|
|
119
114
|
}
|
|
120
|
-
async listNames() {
|
|
121
|
-
const { version } = JSON.parse(await (0, promises_1.readFile)(node_path_1.default.resolve('@packageJson'), { encoding: 'utf-8' }));
|
|
122
|
-
const isLocalDataExists = await (0, helper_1.IsExists)(this.localDataFilename);
|
|
123
|
-
let cache = {
|
|
124
|
-
templates: [],
|
|
125
|
-
version: version,
|
|
126
|
-
updatedAt: lakutata_1.Time.now()
|
|
127
|
-
};
|
|
128
|
-
if (isLocalDataExists) {
|
|
129
|
-
cache = JSON.parse(await (0, promises_1.readFile)(this.localDataFilename, { encoding: 'utf-8' }));
|
|
130
|
-
}
|
|
131
|
-
if (!cache)
|
|
132
|
-
return [];
|
|
133
|
-
return cache.templates.map(template => template.name);
|
|
134
|
-
}
|
|
135
115
|
/**
|
|
136
116
|
* Print template information to console
|
|
137
117
|
* @param templateInfos
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateProjectOptions.d.ts","sourceRoot":"","sources":["../../src/options/CreateProjectOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"CreateProjectOptions.d.ts","sourceRoot":"","sources":["../../src/options/CreateProjectOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,UAAU,CAAA;AAK5B;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,GAAG;IAQlC,IAAI,EAAE,MAAM,CAAA;IASZ,EAAE,EAAE,MAAM,CAAA;IAUV,QAAQ,EAAE,MAAM,CAAA;IAShB,IAAI,EAAE,MAAM,CAAA;IAUZ,SAAS,EAAE,OAAO,CAAA;IASlB,WAAW,EAAE,MAAM,CAAA;IASnB,MAAM,EAAE,MAAM,CAAA;IASd,OAAO,EAAE,MAAM,CAAA;CACzB"}
|
|
@@ -16,6 +16,7 @@ exports.CreateProjectOptions = void 0;
|
|
|
16
16
|
const lakutata_1 = require("lakutata");
|
|
17
17
|
const dto_1 = require("lakutata/decorator/dto");
|
|
18
18
|
const node_process_1 = __importDefault(require("node:process"));
|
|
19
|
+
const ListTemplateNames_1 = require("../lib/ListTemplateNames");
|
|
19
20
|
/**
|
|
20
21
|
* Create project options
|
|
21
22
|
*/
|
|
@@ -42,7 +43,7 @@ __decorate([
|
|
|
42
43
|
(0, dto_1.Expect)(lakutata_1.DTO
|
|
43
44
|
.String()
|
|
44
45
|
.required()
|
|
45
|
-
.allow((
|
|
46
|
+
.allow(...(0, ListTemplateNames_1.ListTemplateNames)())
|
|
46
47
|
.only()
|
|
47
48
|
.description('Choose a template for this project')),
|
|
48
49
|
__metadata("design:type", String)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lakutata/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.1",
|
|
4
4
|
"description": "Lakutata CLI tool",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lakutata",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/degit": "^2.8.6"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "134e4e8468039341f9e309935f4a1b796ecb40b2"
|
|
54
54
|
}
|