@ldsg/constants 0.1.0-alpha.10
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/LICENSE +22 -0
- package/README.md +1 -0
- package/dist/constants.d.ts +16 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +67 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/manifests/app.json +1 -0
- package/dist/manifests/index.d.ts +42 -0
- package/dist/manifests/index.d.ts.map +1 -0
- package/dist/manifests/index.js +8 -0
- package/dist/scripts/generate.d.ts +2 -0
- package/dist/scripts/generate.d.ts.map +1 -0
- package/dist/scripts/generate.js +51 -0
- package/dist/utils/get-constants.d.ts +5 -0
- package/dist/utils/get-constants.d.ts.map +1 -0
- package/dist/utils/get-constants.js +13 -0
- package/dist/utils/get-constants.test.d.ts +2 -0
- package/dist/utils/get-constants.test.d.ts.map +1 -0
- package/dist/utils/get-constants.test.js +21 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +17 -0
- package/package.json +35 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# LDSG Constants
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as application from "@ldsg/application";
|
|
2
|
+
import * as handler from "@ldsg/handler";
|
|
3
|
+
import { Manifest } from "@ldsg/resource";
|
|
4
|
+
import * as resourceDefinition from "@ldsg/resource-definition";
|
|
5
|
+
export declare const ROOT_RESOURCE_ID = "root";
|
|
6
|
+
/**
|
|
7
|
+
* 基础层资源类型组
|
|
8
|
+
*/
|
|
9
|
+
export declare const BASE_RESOURCE_KINDS: (typeof handler | typeof resourceDefinition)[];
|
|
10
|
+
/**
|
|
11
|
+
* 应用层资源类型组
|
|
12
|
+
*/
|
|
13
|
+
export declare const APPLICATION_RESOURCE_KINDS: (typeof application)[];
|
|
14
|
+
export declare const RESOURCE_KINDS: (typeof application | typeof handler | typeof resourceDefinition)[];
|
|
15
|
+
export declare const RESOURCE_KINDS_RESOURCES: Manifest.Resource[];
|
|
16
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAGhE,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,mBAAmB,gDAAgC,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,0BAA0B,wBAAgB,CAAC;AAExD,eAAO,MAAM,cAAc,qEAG1B,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,QAAQ,EA4BvD,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.RESOURCE_KINDS_RESOURCES = exports.RESOURCE_KINDS = exports.APPLICATION_RESOURCE_KINDS = exports.BASE_RESOURCE_KINDS = exports.ROOT_RESOURCE_ID = void 0;
|
|
30
|
+
const application = __importStar(require("@ldsg/application"));
|
|
31
|
+
const handler = __importStar(require("@ldsg/handler"));
|
|
32
|
+
const resourceDefinition = __importStar(require("@ldsg/resource-definition"));
|
|
33
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
34
|
+
exports.ROOT_RESOURCE_ID = "root";
|
|
35
|
+
/**
|
|
36
|
+
* 基础层资源类型组
|
|
37
|
+
*/
|
|
38
|
+
exports.BASE_RESOURCE_KINDS = [resourceDefinition, handler];
|
|
39
|
+
/**
|
|
40
|
+
* 应用层资源类型组
|
|
41
|
+
*/
|
|
42
|
+
exports.APPLICATION_RESOURCE_KINDS = [application];
|
|
43
|
+
exports.RESOURCE_KINDS = [
|
|
44
|
+
...exports.BASE_RESOURCE_KINDS,
|
|
45
|
+
...exports.APPLICATION_RESOURCE_KINDS,
|
|
46
|
+
];
|
|
47
|
+
exports.RESOURCE_KINDS_RESOURCES = lodash_1.default.flatMap(exports.RESOURCE_KINDS.map((value) => {
|
|
48
|
+
const { resourceDefinitionResourceSettings, handlerResourceSettings } = value;
|
|
49
|
+
const resourceKind = lodash_1.default.kebabCase(resourceDefinitionResourceSettings.kind);
|
|
50
|
+
const resourceDefinitionResourceId = `${resourceKind}-resource-definition`;
|
|
51
|
+
const handlerResourceId = `${resourceKind}-resource-handler`;
|
|
52
|
+
const res = [
|
|
53
|
+
{
|
|
54
|
+
id: resourceDefinitionResourceId,
|
|
55
|
+
kind: "RESOURCE_DEFINITION",
|
|
56
|
+
parentId: exports.ROOT_RESOURCE_ID,
|
|
57
|
+
settings: resourceDefinitionResourceSettings,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: handlerResourceId,
|
|
61
|
+
kind: "HANDLER",
|
|
62
|
+
parentId: resourceDefinitionResourceId,
|
|
63
|
+
settings: handlerResourceSettings,
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
return res;
|
|
67
|
+
}));
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./constants"), exports);
|
|
18
|
+
__exportStar(require("./manifests"), exports);
|
|
19
|
+
__exportStar(require("./utils"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "resources": [{ "id": "resource-definition-resource-definition", "kind": "RESOURCE_DEFINITION", "parentId": "root", "settings": { "title": "资源定义类型资源定义", "description": "", "kind": "RESOURCE_DEFINITION", "subKinds": [] } }, { "id": "resource-definition-resource-handler", "kind": "HANDLER", "parentId": "resource-definition-resource-definition", "settings": { "title": "资源定义类型资源处理程序", "description": "", "code": "export * from \"@ldsg/resource-definition\";", "dependencies": [{ "name": "@ldsg/resource-definition" }] } }, { "id": "handler-resource-definition", "kind": "RESOURCE_DEFINITION", "parentId": "root", "settings": { "title": "处理程序类型资源定义", "description": "主要包含引入模块列表与相应的处理程序代码,处理程序类型资源无子级资源。", "kind": "HANDLER", "subKinds": [] } }, { "id": "handler-resource-handler", "kind": "HANDLER", "parentId": "handler-resource-definition", "settings": { "title": "处理程序类型资源处理程序", "description": "包含处理程序相应的模块,此模块主要通过", "code": "export * from \"@ldsg/handler\";", "dependencies": [{ "name": "@ldsg/handler" }] } }, { "id": "application-resource-definition", "kind": "RESOURCE_DEFINITION", "parentId": "root", "settings": { "title": "应用类型资源定义", "description": "", "kind": "APPLICATION", "subKinds": [] } }, { "id": "application-resource-handler", "kind": "HANDLER", "parentId": "application-resource-definition", "settings": { "title": "应用类型资源处理程序", "description": "", "code": "export * from \"@ldsg/application\";", "dependencies": [{ "name": "@ldsg/application" }] } }, { "id": "main-app", "kind": "APPLICATION", "parentId": "root", "settings": { "title": "主要应用", "description": "" } }] }
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const appManifest: {
|
|
2
|
+
resources: ({
|
|
3
|
+
id: string;
|
|
4
|
+
kind: string;
|
|
5
|
+
parentId: string;
|
|
6
|
+
settings: {
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
kind: string;
|
|
10
|
+
subKinds: never[];
|
|
11
|
+
code?: undefined;
|
|
12
|
+
dependencies?: undefined;
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
id: string;
|
|
16
|
+
kind: string;
|
|
17
|
+
parentId: string;
|
|
18
|
+
settings: {
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
code: string;
|
|
22
|
+
dependencies: {
|
|
23
|
+
name: string;
|
|
24
|
+
}[];
|
|
25
|
+
kind?: undefined;
|
|
26
|
+
subKinds?: undefined;
|
|
27
|
+
};
|
|
28
|
+
} | {
|
|
29
|
+
id: string;
|
|
30
|
+
kind: string;
|
|
31
|
+
parentId: string;
|
|
32
|
+
settings: {
|
|
33
|
+
title: string;
|
|
34
|
+
description: string;
|
|
35
|
+
kind?: undefined;
|
|
36
|
+
subKinds?: undefined;
|
|
37
|
+
code?: undefined;
|
|
38
|
+
dependencies?: undefined;
|
|
39
|
+
};
|
|
40
|
+
})[];
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/manifests/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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.appManifest = void 0;
|
|
7
|
+
const app_json_1 = __importDefault(require("./app.json"));
|
|
8
|
+
exports.appManifest = app_json_1.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/scripts/generate.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
16
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
17
|
+
const path_1 = __importDefault(require("path"));
|
|
18
|
+
const constants_1 = require("../constants");
|
|
19
|
+
const utils_1 = require("../utils");
|
|
20
|
+
const main = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
const fileNameManifestMap = {
|
|
22
|
+
app: {
|
|
23
|
+
resources: [
|
|
24
|
+
{
|
|
25
|
+
id: "main-app",
|
|
26
|
+
kind: "APPLICATION",
|
|
27
|
+
parentId: constants_1.ROOT_RESOURCE_ID,
|
|
28
|
+
settings: {
|
|
29
|
+
title: "主要应用",
|
|
30
|
+
description: "",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
const manifestsDirPath = path_1.default.join(__dirname, "..", "manifests");
|
|
37
|
+
yield fs_extra_1.default.ensureDir(manifestsDirPath);
|
|
38
|
+
const fileNames = lodash_1.default.keys(fileNameManifestMap);
|
|
39
|
+
for (const fileName of fileNames) {
|
|
40
|
+
const { resources } = fileNameManifestMap[fileName];
|
|
41
|
+
const { manifest } = (0, utils_1.getConstants)({
|
|
42
|
+
resources,
|
|
43
|
+
});
|
|
44
|
+
yield fs_extra_1.default.writeJson(path_1.default.join(manifestsDirPath, `${fileName}.json`), manifest);
|
|
45
|
+
}
|
|
46
|
+
const INDEX_TS_CODE = fileNames.map((fileName) => `import ${lodash_1.default.upperCase(fileName)}_JSON from "./${fileName}.json";
|
|
47
|
+
export const ${lodash_1.default.camelCase(fileName)}Manifest = ${lodash_1.default.upperCase(fileName)}_JSON;`).join(`
|
|
48
|
+
`);
|
|
49
|
+
yield fs_extra_1.default.writeFile(path_1.default.join(manifestsDirPath, "index.ts"), INDEX_TS_CODE);
|
|
50
|
+
});
|
|
51
|
+
main();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-constants.d.ts","sourceRoot":"","sources":["../../src/utils/get-constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,eAAO,MAAM,YAAY,WAAY,QAAQ;;CAU5C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConstants = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const getConstants = (params) => {
|
|
6
|
+
const { resources } = params;
|
|
7
|
+
const manifest = {
|
|
8
|
+
resources: [...constants_1.RESOURCE_KINDS_RESOURCES, ...resources],
|
|
9
|
+
};
|
|
10
|
+
const res = { manifest };
|
|
11
|
+
return res;
|
|
12
|
+
};
|
|
13
|
+
exports.getConstants = getConstants;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-constants.test.d.ts","sourceRoot":"","sources":["../../src/utils/get-constants.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const constants_1 = require("../constants");
|
|
4
|
+
const get_constants_1 = require("./get-constants");
|
|
5
|
+
const applicationResources = [
|
|
6
|
+
{
|
|
7
|
+
id: "main-app",
|
|
8
|
+
kind: "APPLICATION",
|
|
9
|
+
parentId: constants_1.ROOT_RESOURCE_ID,
|
|
10
|
+
settings: {
|
|
11
|
+
title: "主要应用",
|
|
12
|
+
description: "",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
test("get constants", () => {
|
|
17
|
+
const { manifest } = (0, get_constants_1.getConstants)({
|
|
18
|
+
resources: applicationResources,
|
|
19
|
+
});
|
|
20
|
+
expect(manifest).toMatchSnapshot();
|
|
21
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-constants"), exports);
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ldsg/constants",
|
|
3
|
+
"version": "0.1.0-alpha.10",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist/"
|
|
8
|
+
],
|
|
9
|
+
"types": "dist",
|
|
10
|
+
"keywords": [],
|
|
11
|
+
"author": "wanxger",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/fs-extra": "^11.0.4",
|
|
18
|
+
"@types/lodash": "^4.14.202",
|
|
19
|
+
"@types/node": "^20.13.0",
|
|
20
|
+
"@types/supertest": "^6.0.0",
|
|
21
|
+
"fs-extra": "^11.3.0",
|
|
22
|
+
"lodash": "^4.17.21",
|
|
23
|
+
"supertest": "^6.3.4",
|
|
24
|
+
"tsx": "^4.19.3",
|
|
25
|
+
"@ldsg/application": "0.1.0-alpha.10",
|
|
26
|
+
"@ldsg/resource": "0.1.0-alpha.10",
|
|
27
|
+
"@ldsg/handler": "0.1.0-alpha.10",
|
|
28
|
+
"@ldsg/resource-definition": "0.1.0-alpha.10"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "npm run clean && npm run generate && tsc --project tsconfig.build.json",
|
|
32
|
+
"generate": "npx tsx src/scripts/generate.ts",
|
|
33
|
+
"clean": "rm -rf dist src/manifests"
|
|
34
|
+
}
|
|
35
|
+
}
|