@simplysm/sd-cli 7.0.304 → 7.1.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/README.md +4 -4
- package/dist/bin/sd-cli.mjs +1 -7
- package/dist/builder/SdCliClientBuilder.mjs +65 -7
- package/dist/builder/SdCliTsLibBuilder.mjs +2 -2
- package/dist/commons.d.ts +2 -0
- package/dist/entry-points/SdCliPrepare.mjs +53 -22
- package/dist/entry-points/SdCliProjectGenerator.mjs +36 -28
- package/dist/entry-points/file/base/fc_package_npmconfig.mjs +2 -1
- package/dist/entry-points/file/project/fc_project_gitignore.mjs +12 -2
- package/dist/entry-points/file/project/fc_project_npmconfig.mjs +9 -7
- package/dist/entry-points/file/project/fc_project_readme.mjs +1 -1
- package/dist/entry-points/file/project/fc_project_yarnrc.d.ts +1 -0
- package/dist/entry-points/file/project/fc_project_yarnrc.mjs +19 -0
- package/dist/entry-points/file/server/fc_package_server_main.d.ts +1 -0
- package/dist/entry-points/file/server/fc_package_server_main.mjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/ng-tools/SdCliNgModuleGenerator.d.ts +2 -1
- package/dist/ng-tools/SdCliNgModuleGenerator.mjs +41 -21
- package/dist/ng-tools/babel/SdCliBbFileMetadata.mjs +17 -5
- package/dist/ng-tools/babel/SdCliBbRootMetadata.mjs +19 -7
- package/dist/ng-tools/babel/SdCliBbUtil.d.ts +2 -2
- package/dist/ng-tools/babel/SdCliBbUtil.mjs +3 -3
- package/dist/ng-tools/babel/TSdCliBbTypeMetadata.d.ts +13 -2
- package/dist/ng-tools/babel/TSdCliBbTypeMetadata.mjs +25 -1
- package/dist/packages/SdCliPackage.mjs +2 -2
- package/dist/utils/SdCliBuildResultUtil.mjs +3 -3
- package/docs/conf-orm.md +1 -1
- package/package.json +46 -41
- package/src/bin/sd-cli.ts +0 -10
- package/src/builder/SdCliClientBuilder.ts +71 -6
- package/src/builder/SdCliTsLibBuilder.ts +1 -1
- package/src/commons.ts +2 -0
- package/src/entry-points/SdCliPrepare.ts +52 -21
- package/src/entry-points/SdCliProjectGenerator.ts +38 -28
- package/src/entry-points/file/base/fc_package_npmconfig.ts +1 -0
- package/src/entry-points/file/project/fc_project_gitignore.ts +11 -1
- package/src/entry-points/file/project/fc_project_npmconfig.ts +8 -6
- package/src/entry-points/file/project/fc_project_readme.ts +1 -1
- package/src/entry-points/file/project/fc_project_yarnrc.ts +18 -0
- package/src/entry-points/file/server/fc_package_server_main.ts +2 -2
- package/src/index.ts +1 -1
- package/src/ng-tools/SdCliNgModuleGenerator.ts +53 -20
- package/src/ng-tools/babel/SdCliBbFileMetadata.ts +16 -2
- package/src/ng-tools/babel/SdCliBbRootMetadata.ts +22 -6
- package/src/ng-tools/babel/SdCliBbUtil.ts +4 -4
- package/src/ng-tools/babel/TSdCliBbTypeMetadata.ts +36 -1
- package/src/packages/SdCliPackage.ts +1 -1
- package/src/utils/SdCliBuildResultUtil.ts +3 -2
- package/.eslintrc.cjs +0 -21
- package/dist/entry-points/SdCliNpm.d.ts +0 -6
- package/dist/entry-points/SdCliNpm.mjs +0 -24
- package/src/entry-points/SdCliNpm.ts +0 -28
- package/tsconfig-build.json +0 -16
- package/tsconfig.json +0 -39
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Logger, SdProcess } from "@simplysm/sd-core-node";
|
|
2
|
-
import { SdCliPrepare } from "./SdCliPrepare";
|
|
3
|
-
export class SdCliNpm {
|
|
4
|
-
constructor(_rootPath) {
|
|
5
|
-
this._rootPath = _rootPath;
|
|
6
|
-
this._logger = Logger.get(["simplysm", "sd-cli", this.constructor.name]);
|
|
7
|
-
}
|
|
8
|
-
async updateAsync() {
|
|
9
|
-
try {
|
|
10
|
-
this._logger.debug("업데이트할 패키지 확인...");
|
|
11
|
-
await SdProcess.spawnAsync("npm outdated", { cwd: this._rootPath });
|
|
12
|
-
}
|
|
13
|
-
catch (err) {
|
|
14
|
-
this._logger.debug("업데이트 시작...");
|
|
15
|
-
await SdProcess.spawnAsync("npm update", { cwd: this._rootPath });
|
|
16
|
-
this._logger.debug("sd-cli 준비...");
|
|
17
|
-
await new SdCliPrepare().prepareAsync();
|
|
18
|
-
this._logger.info("노드 패키지 업데이트 완료");
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
this._logger.warn("업데이트할 패키지가 없습니다.");
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2RDbGlOcG0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZW50cnktcG9pbnRzL1NkQ2xpTnBtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDM0QsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTlDLE1BQU0sT0FBTyxRQUFRO0lBR25CLFlBQW9DLFNBQWlCO1FBQWpCLGNBQVMsR0FBVCxTQUFTLENBQVE7UUFGcEMsWUFBTyxHQUFHLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQyxVQUFVLEVBQUUsUUFBUSxFQUFFLElBQUksQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUdyRixDQUFDO0lBRU0sS0FBSyxDQUFDLFdBQVc7UUFDdEIsSUFBSTtZQUNGLElBQUksQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLGlCQUFpQixDQUFDLENBQUM7WUFDdEMsTUFBTSxTQUFTLENBQUMsVUFBVSxDQUFDLGNBQWMsRUFBRSxFQUFFLEdBQUcsRUFBRSxJQUFJLENBQUMsU0FBUyxFQUFFLENBQUMsQ0FBQztTQUNyRTtRQUNELE9BQU8sR0FBRyxFQUFFO1lBQ1YsSUFBSSxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsWUFBWSxDQUFDLENBQUM7WUFDakMsTUFBTSxTQUFTLENBQUMsVUFBVSxDQUFDLFlBQVksRUFBRSxFQUFFLEdBQUcsRUFBRSxJQUFJLENBQUMsU0FBUyxFQUFFLENBQUMsQ0FBQztZQUVsRSxJQUFJLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxjQUFjLENBQUMsQ0FBQztZQUNuQyxNQUFNLElBQUksWUFBWSxFQUFFLENBQUMsWUFBWSxFQUFFLENBQUM7WUFFeEMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztZQUNwQyxPQUFPO1NBQ1I7UUFFRCxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO0lBQ3hDLENBQUM7Q0FDRiJ9
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Logger, SdProcess } from "@simplysm/sd-core-node";
|
|
2
|
-
import { SdCliPrepare } from "./SdCliPrepare";
|
|
3
|
-
|
|
4
|
-
export class SdCliNpm {
|
|
5
|
-
private readonly _logger = Logger.get(["simplysm", "sd-cli", this.constructor.name]);
|
|
6
|
-
|
|
7
|
-
public constructor(private readonly _rootPath: string) {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
public async updateAsync(): Promise<void> {
|
|
11
|
-
try {
|
|
12
|
-
this._logger.debug("업데이트할 패키지 확인...");
|
|
13
|
-
await SdProcess.spawnAsync("npm outdated", { cwd: this._rootPath });
|
|
14
|
-
}
|
|
15
|
-
catch (err) {
|
|
16
|
-
this._logger.debug("업데이트 시작...");
|
|
17
|
-
await SdProcess.spawnAsync("npm update", { cwd: this._rootPath });
|
|
18
|
-
|
|
19
|
-
this._logger.debug("sd-cli 준비...");
|
|
20
|
-
await new SdCliPrepare().prepareAsync();
|
|
21
|
-
|
|
22
|
-
this._logger.info("노드 패키지 업데이트 완료");
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
this._logger.warn("업데이트할 패키지가 없습니다.");
|
|
27
|
-
}
|
|
28
|
-
}
|
package/tsconfig-build.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"lib": [
|
|
5
|
-
"ES2020"
|
|
6
|
-
],
|
|
7
|
-
"outDir": "./dist",
|
|
8
|
-
"declaration": true
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"src/bin/sd-cli.ts",
|
|
12
|
-
"src/index.ts",
|
|
13
|
-
"src/worker/build-worker.ts",
|
|
14
|
-
"src/worker/server-worker.ts"
|
|
15
|
-
]
|
|
16
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"lib": [
|
|
5
|
-
"ES2020"
|
|
6
|
-
],
|
|
7
|
-
"outDir": "./dist",
|
|
8
|
-
"baseUrl": ".",
|
|
9
|
-
"paths": {
|
|
10
|
-
"@simplysm/sd-core-common": [
|
|
11
|
-
"../sd-core-common/src/index.ts"
|
|
12
|
-
],
|
|
13
|
-
"@simplysm/sd-core-node": [
|
|
14
|
-
"../sd-core-node/src/index.ts"
|
|
15
|
-
],
|
|
16
|
-
"@simplysm/sd-service-common": [
|
|
17
|
-
"../sd-service-common/src/index.ts"
|
|
18
|
-
],
|
|
19
|
-
"@simplysm/sd-service-server": [
|
|
20
|
-
"../sd-service-server/src/index.ts"
|
|
21
|
-
],
|
|
22
|
-
"@simplysm/sd-orm-common": [
|
|
23
|
-
"../sd-orm-common/src/index.ts"
|
|
24
|
-
],
|
|
25
|
-
"@simplysm/sd-orm-node": [
|
|
26
|
-
"../sd-orm-node/src/index.ts"
|
|
27
|
-
],
|
|
28
|
-
"@simplysm/sd-storage": [
|
|
29
|
-
"../sd-storage/src/index.ts"
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"files": [
|
|
34
|
-
"src/bin/sd-cli.ts",
|
|
35
|
-
"src/index.ts",
|
|
36
|
-
"src/worker/build-worker.ts",
|
|
37
|
-
"src/worker/server-worker.ts"
|
|
38
|
-
]
|
|
39
|
-
}
|