@simplysm/sd-cli 14.0.86 → 14.0.88
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/dist/commands/init/generators/root.d.ts.map +1 -1
- package/dist/commands/init/generators/root.js +9 -4
- package/dist/commands/init/generators/root.js.map +1 -1
- package/package.json +6 -6
- package/src/commands/init/generators/root.ts +10 -5
- package/src/commands/init/templates/workspace-root/.editorconfig +7 -0
- package/src/commands/init/templates/workspace-root/gitignore +16 -0
- package/src/commands/init/templates/workspace-root/npmrc +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../../src/commands/init/generators/root.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../../src/commands/init/generators/root.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAyB3C,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ/E"}
|
|
@@ -2,9 +2,13 @@ import path from "path";
|
|
|
2
2
|
import { copyFixed, renderToFile } from "../render.js";
|
|
3
3
|
import { TEMPLATES_ROOT } from "../template-paths.js";
|
|
4
4
|
const TPL = path.join(TEMPLATES_ROOT, "workspace-root");
|
|
5
|
+
// npm 은 패킹 시 `.gitignore`·`.npmrc` 를 특수 처리해 배포 tarball 에서 제외함.
|
|
6
|
+
// 이를 회피하려고 점 없는 이름으로 저장한 뒤, 생성 시 실제 이름으로 복사함.
|
|
7
|
+
// [저장명, 출력명] 형태면 rename, 단일 문자열이면 동일명 복사.
|
|
5
8
|
const FIXED = [
|
|
6
|
-
".
|
|
7
|
-
".
|
|
9
|
+
".editorconfig",
|
|
10
|
+
["gitignore", ".gitignore"],
|
|
11
|
+
["npmrc", ".npmrc"],
|
|
8
12
|
".prettierignore",
|
|
9
13
|
".prettierrc.yaml",
|
|
10
14
|
"eslint.config.ts",
|
|
@@ -18,8 +22,9 @@ const HBS = [
|
|
|
18
22
|
"vitest.config.ts",
|
|
19
23
|
];
|
|
20
24
|
export async function generateRoot(cwd, data) {
|
|
21
|
-
for (const
|
|
22
|
-
|
|
25
|
+
for (const entry of FIXED) {
|
|
26
|
+
const [src, out] = Array.isArray(entry) ? entry : [entry, entry];
|
|
27
|
+
await copyFixed(path.join(TPL, src), path.join(cwd, out));
|
|
23
28
|
}
|
|
24
29
|
for (const name of HBS) {
|
|
25
30
|
await renderToFile(path.join(TPL, `${name}.hbs`), path.join(cwd, name), data);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.js","sourceRoot":"","sources":["../../../../src/commands/init/generators/root.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAExD,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"root.js","sourceRoot":"","sources":["../../../../src/commands/init/generators/root.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAExD,+DAA+D;AAC/D,8CAA8C;AAC9C,0CAA0C;AAC1C,MAAM,KAAK,GAAkC;IAC3C,eAAe;IACf,CAAC,WAAW,EAAE,YAAY,CAAC;IAC3B,CAAC,OAAO,EAAE,QAAQ,CAAC;IACnB,iBAAiB;IACjB,kBAAkB;IAClB,kBAAkB;IAClB,qBAAqB;CACtB,CAAC;AAEF,MAAM,GAAG,GAAG;IACV,WAAW;IACX,cAAc;IACd,eAAe;IACf,cAAc;IACd,kBAAkB;CACnB,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,GAAW,EAAE,IAAgB;IAC9D,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC;QAC1B,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACjE,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC5D,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,GAAG,EAAE,CAAC;QACvB,MAAM,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/sd-cli",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.88",
|
|
4
4
|
"description": "Simplysm package - CLI tool",
|
|
5
5
|
"author": "simplysm",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@angular/build": "^21.2.13",
|
|
23
23
|
"@angular/compiler-cli": "^21.2.15",
|
|
24
24
|
"@fastify/http-proxy": "^11.4.4",
|
|
25
|
-
"@inquirer/prompts": "^8.5.
|
|
25
|
+
"@inquirer/prompts": "^8.5.2",
|
|
26
26
|
"acorn": "^8.16.0",
|
|
27
27
|
"acorn-walk": "^8.3.5",
|
|
28
28
|
"browserslist-to-esbuild": "^2.1.1",
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
"ws": "^8.21.0",
|
|
46
46
|
"yaml": "^2.9.0",
|
|
47
47
|
"yargs": "^18.0.0",
|
|
48
|
-
"@simplysm/core-
|
|
49
|
-
"@simplysm/core-
|
|
50
|
-
"@simplysm/storage": "14.0.
|
|
48
|
+
"@simplysm/core-common": "14.0.88",
|
|
49
|
+
"@simplysm/core-node": "14.0.88",
|
|
50
|
+
"@simplysm/storage": "14.0.88"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/semver": "^7.7.1",
|
|
54
54
|
"@types/ssh2": "^1.15.5",
|
|
55
55
|
"@types/ws": "^8.18.1",
|
|
56
56
|
"@types/yargs": "^17.0.35",
|
|
57
|
-
"vite": "^7.3.
|
|
57
|
+
"vite": "^7.3.5",
|
|
58
58
|
"vite-tsconfig-paths": "^6.1.1"
|
|
59
59
|
},
|
|
60
60
|
"bin": {
|
|
@@ -5,9 +5,13 @@ import type { RenderData } from "../types";
|
|
|
5
5
|
|
|
6
6
|
const TPL = path.join(TEMPLATES_ROOT, "workspace-root");
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
// npm 은 패킹 시 `.gitignore`·`.npmrc` 를 특수 처리해 배포 tarball 에서 제외함.
|
|
9
|
+
// 이를 회피하려고 점 없는 이름으로 저장한 뒤, 생성 시 실제 이름으로 복사함.
|
|
10
|
+
// [저장명, 출력명] 형태면 rename, 단일 문자열이면 동일명 복사.
|
|
11
|
+
const FIXED: (string | [string, string])[] = [
|
|
12
|
+
".editorconfig",
|
|
13
|
+
["gitignore", ".gitignore"],
|
|
14
|
+
["npmrc", ".npmrc"],
|
|
11
15
|
".prettierignore",
|
|
12
16
|
".prettierrc.yaml",
|
|
13
17
|
"eslint.config.ts",
|
|
@@ -23,8 +27,9 @@ const HBS = [
|
|
|
23
27
|
];
|
|
24
28
|
|
|
25
29
|
export async function generateRoot(cwd: string, data: RenderData): Promise<void> {
|
|
26
|
-
for (const
|
|
27
|
-
|
|
30
|
+
for (const entry of FIXED) {
|
|
31
|
+
const [src, out] = Array.isArray(entry) ? entry : [entry, entry];
|
|
32
|
+
await copyFixed(path.join(TPL, src), path.join(cwd, out));
|
|
28
33
|
}
|
|
29
34
|
for (const name of HBS) {
|
|
30
35
|
await renderToFile(path.join(TPL, `${name}.hbs`), path.join(cwd, name), data);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
side-effects-cache=false
|