@simplysm/sd-cli 12.16.30 → 12.16.35
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
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
# @simplysm/sd-cli
|
|
2
|
+
|
|
3
|
+
Build, check, publish, and deploy tool for Simplysm monorepo projects. Provides a single `sd-cli` binary that orchestrates TypeScript compilation, Angular bundling, ESLint checks, npm publishing, and native mobile packaging (Electron, Cordova, Capacitor).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @simplysm/sd-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This is a CLI-only package with no library API exports. All functionality is accessed through the `sd-cli` command.
|
|
12
|
+
|
|
13
|
+
## CLI Overview
|
|
14
|
+
|
|
15
|
+
| Command | Description |
|
|
16
|
+
|---------|-------------|
|
|
17
|
+
| `local-update` | Performs local library update |
|
|
18
|
+
| `watch` | Watch-builds packages in development mode |
|
|
19
|
+
| `build` | Production build for packages |
|
|
20
|
+
| `check [path]` | Runs typecheck and/or lint |
|
|
21
|
+
| `publish` | Builds and publishes packages to npm |
|
|
22
|
+
| `run-electron <package>` | Launches a watch-built platform as an Electron app |
|
|
23
|
+
| `build-electron-for-dev <package>` | Builds an Electron app for dev testing |
|
|
24
|
+
| `run-cordova <platform> <package> [url]` | Deploys to a Cordova device |
|
|
25
|
+
| `run-capacitor <platform> <package> [url]` | Deploys to a Capacitor device |
|
|
26
|
+
| `commit` | AI-assisted commit message generation, commit, and push |
|
|
27
|
+
| `postinstall` | Runs post-install tasks automatically |
|
|
28
|
+
|
|
29
|
+
## Global Options
|
|
30
|
+
|
|
31
|
+
| Option | Type | Default | Description |
|
|
32
|
+
|--------|------|---------|-------------|
|
|
33
|
+
| `--help`, `-h` | boolean | -- | Show help |
|
|
34
|
+
| `--debug` | boolean | `false` | Enable debug-level logging |
|
|
35
|
+
|
|
36
|
+
## CLI Reference
|
|
37
|
+
|
|
38
|
+
### `local-update`
|
|
39
|
+
|
|
40
|
+
Performs local library update using linked packages.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
sd-cli local-update [--config <path>] [--options <values...>]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
| Option | Type | Default | Description |
|
|
47
|
+
|--------|------|---------|-------------|
|
|
48
|
+
| `--config` | string | `simplysm.js` | Configuration file path |
|
|
49
|
+
| `--options` | string[] | -- | Additional option settings |
|
|
50
|
+
|
|
51
|
+
### `watch`
|
|
52
|
+
|
|
53
|
+
Watch-builds all or selected packages for development.
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
sd-cli watch [--config <path>] [--packages <names...>] [--emitOnly] [--noEmit] [--options <values...>]
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
| Option | Type | Default | Description |
|
|
60
|
+
|--------|------|---------|-------------|
|
|
61
|
+
| `--config` | string | `simplysm.js` | Configuration file path |
|
|
62
|
+
| `--packages` | string[] | -- | Specific packages to watch |
|
|
63
|
+
| `--emitOnly` | boolean | `false` | Only emit output (skip checks) |
|
|
64
|
+
| `--noEmit` | boolean | `false` | Only check (skip emit) |
|
|
65
|
+
| `--options` | string[] | -- | Additional option settings |
|
|
66
|
+
|
|
67
|
+
### `build`
|
|
68
|
+
|
|
69
|
+
Production build for all or selected packages.
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
sd-cli build [--config <path>] [--packages <names...>] [--options <values...>]
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
| Option | Type | Default | Description |
|
|
76
|
+
|--------|------|---------|-------------|
|
|
77
|
+
| `--config` | string | `simplysm.js` | Configuration file path |
|
|
78
|
+
| `--packages` | string[] | -- | Specific packages to build |
|
|
79
|
+
| `--options` | string[] | -- | Additional option settings |
|
|
80
|
+
|
|
81
|
+
### `check [path]`
|
|
82
|
+
|
|
83
|
+
Runs typecheck and/or lint on the project or a specific package path.
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
sd-cli check [path] [--config <path>] [--type <lint|typecheck>] [--options <values...>]
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
| Option | Type | Default | Description |
|
|
90
|
+
|--------|------|---------|-------------|
|
|
91
|
+
| `path` | string | -- | Package path or file path (positional) |
|
|
92
|
+
| `--config` | string | `simplysm.js` | Configuration file path |
|
|
93
|
+
| `--type` | `"lint"` \| `"typecheck"` | -- | Check type (omit for both) |
|
|
94
|
+
| `--options` | string[] | -- | Additional option settings |
|
|
95
|
+
|
|
96
|
+
### `publish`
|
|
97
|
+
|
|
98
|
+
Builds and publishes packages to npm.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
sd-cli publish [--noBuild] [--config <path>] [--packages <names...>] [--options <values...>]
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
| Option | Type | Default | Description |
|
|
105
|
+
|--------|------|---------|-------------|
|
|
106
|
+
| `--noBuild` | boolean | `false` | Publish without rebuilding |
|
|
107
|
+
| `--config` | string | `simplysm.js` | Configuration file path |
|
|
108
|
+
| `--packages` | string[] | -- | Specific packages to publish |
|
|
109
|
+
| `--options` | string[] | -- | Additional option settings |
|
|
110
|
+
|
|
111
|
+
### `run-electron <package>`
|
|
112
|
+
|
|
113
|
+
Launches a watch-built platform as an Electron desktop application.
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
sd-cli run-electron <package> [--config <path>] [--options <values...>]
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
| Option | Type | Default | Description |
|
|
120
|
+
|--------|------|---------|-------------|
|
|
121
|
+
| `package` | string | -- | Package name (required) |
|
|
122
|
+
| `--config` | string | `simplysm.js` | Configuration file path |
|
|
123
|
+
| `--options` | string[] | -- | Additional option settings |
|
|
124
|
+
|
|
125
|
+
### `build-electron-for-dev <package>`
|
|
126
|
+
|
|
127
|
+
Builds an Electron app from a watch-built platform for dev testing.
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
sd-cli build-electron-for-dev <package> [--config <path>] [--options <values...>]
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
| Option | Type | Default | Description |
|
|
134
|
+
|--------|------|---------|-------------|
|
|
135
|
+
| `package` | string | -- | Package name (required) |
|
|
136
|
+
| `--config` | string | `simplysm.js` | Configuration file path |
|
|
137
|
+
| `--options` | string[] | -- | Additional option settings |
|
|
138
|
+
|
|
139
|
+
### `run-cordova <platform> <package> [url]`
|
|
140
|
+
|
|
141
|
+
Deploys a watch-built platform to a Cordova device as a webview app.
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
sd-cli run-cordova <platform> <package> [url]
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
| Option | Type | Description |
|
|
148
|
+
|--------|------|-------------|
|
|
149
|
+
| `platform` | string | Build platform (e.g., `android`) (required) |
|
|
150
|
+
| `package` | string | Package name (required) |
|
|
151
|
+
| `url` | string | URL to open in webview (required) |
|
|
152
|
+
|
|
153
|
+
### `run-capacitor <platform> <package> [url]`
|
|
154
|
+
|
|
155
|
+
Deploys a watch-built platform to a Capacitor device as a webview app.
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
sd-cli run-capacitor <platform> <package> [url]
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
| Option | Type | Description |
|
|
162
|
+
|--------|------|-------------|
|
|
163
|
+
| `platform` | string | Build platform (e.g., `android`) (required) |
|
|
164
|
+
| `package` | string | Package name (required) |
|
|
165
|
+
| `url` | string | URL to open in webview (required) |
|
|
166
|
+
|
|
167
|
+
### `commit`
|
|
168
|
+
|
|
169
|
+
Uses AI to generate a commit message from current changes, then commits and pushes.
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
sd-cli commit
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### `postinstall`
|
|
176
|
+
|
|
177
|
+
Runs automated post-install tasks. Typically called from `package.json` scripts.
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
sd-cli postinstall
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Usage Examples
|
|
184
|
+
|
|
185
|
+
### Development workflow
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
# Watch all packages
|
|
189
|
+
sd-cli watch
|
|
190
|
+
|
|
191
|
+
# Watch a specific package with debug logging
|
|
192
|
+
sd-cli watch --packages sd-angular --debug
|
|
193
|
+
|
|
194
|
+
# Check only (no output emit)
|
|
195
|
+
sd-cli watch --noEmit
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Build and publish
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
# Full production build
|
|
202
|
+
sd-cli build
|
|
203
|
+
|
|
204
|
+
# Build specific packages
|
|
205
|
+
sd-cli build --packages sd-core-common sd-core-node
|
|
206
|
+
|
|
207
|
+
# Publish without rebuilding
|
|
208
|
+
sd-cli publish --noBuild
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Code quality
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
# Run both typecheck and lint
|
|
215
|
+
sd-cli check
|
|
216
|
+
|
|
217
|
+
# Lint only on a specific package
|
|
218
|
+
sd-cli check packages/sd-core-common --type lint
|
|
219
|
+
```
|
|
@@ -38,7 +38,7 @@ export class SdNgBundler {
|
|
|
38
38
|
this._mainFilePath = path.resolve(this._opt.pkgPath, "src/main.ts");
|
|
39
39
|
this._tsConfigFilePath = path.resolve(this._opt.pkgPath, "tsconfig.json");
|
|
40
40
|
this._swConfFilePath = path.resolve(this._opt.pkgPath, "ngsw-config.json");
|
|
41
|
-
this._browserTarget = transformSupportedBrowsersToTargets(browserslist(["Chrome
|
|
41
|
+
this._browserTarget = transformSupportedBrowsersToTargets(browserslist(["Chrome >= 61"]));
|
|
42
42
|
this._indexHtmlFilePath = path.resolve(this._opt.pkgPath, "src/index.html");
|
|
43
43
|
this._pkgName = path.basename(this._opt.pkgPath);
|
|
44
44
|
this._baseHref =
|
|
@@ -23,7 +23,7 @@ export class SdStyleBundler {
|
|
|
23
23
|
futureDeprecations: undefined,
|
|
24
24
|
},
|
|
25
25
|
externalDependencies: [],
|
|
26
|
-
target: transformSupportedBrowsersToTargets(browserslist(["Chrome
|
|
26
|
+
target: transformSupportedBrowsersToTargets(browserslist(["Chrome >= 61"])),
|
|
27
27
|
preserveSymlinks: false,
|
|
28
28
|
tailwindConfiguration: undefined,
|
|
29
29
|
postcssConfiguration: undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/sd-cli",
|
|
3
|
-
"version": "12.16.
|
|
3
|
+
"version": "12.16.35",
|
|
4
4
|
"description": "심플리즘 패키지 - CLI",
|
|
5
5
|
"author": "김석래",
|
|
6
6
|
"repository": {
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"bin": "./dist/sd-cli.js",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@angular/build": "^20.3.
|
|
15
|
+
"@angular/build": "^20.3.21",
|
|
16
16
|
"@angular/compiler": "^20.3.18",
|
|
17
17
|
"@angular/compiler-cli": "^20.3.18",
|
|
18
18
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
19
19
|
"@electron/rebuild": "^4.0.3",
|
|
20
|
-
"@simplysm/sd-core-common": "12.16.
|
|
21
|
-
"@simplysm/sd-core-node": "12.16.
|
|
22
|
-
"@simplysm/sd-service-server": "12.16.
|
|
23
|
-
"@simplysm/sd-storage": "12.16.
|
|
20
|
+
"@simplysm/sd-core-common": "12.16.35",
|
|
21
|
+
"@simplysm/sd-core-node": "12.16.35",
|
|
22
|
+
"@simplysm/sd-service-server": "12.16.35",
|
|
23
|
+
"@simplysm/sd-storage": "12.16.35",
|
|
24
24
|
"browserslist": "^4.28.1",
|
|
25
25
|
"cordova": "^13.0.0",
|
|
26
26
|
"electron": "^33.4.11",
|
|
@@ -74,7 +74,7 @@ export class SdNgBundler {
|
|
|
74
74
|
this._mainFilePath = path.resolve(this._opt.pkgPath, "src/main.ts");
|
|
75
75
|
this._tsConfigFilePath = path.resolve(this._opt.pkgPath, "tsconfig.json");
|
|
76
76
|
this._swConfFilePath = path.resolve(this._opt.pkgPath, "ngsw-config.json");
|
|
77
|
-
this._browserTarget = transformSupportedBrowsersToTargets(browserslist(["Chrome
|
|
77
|
+
this._browserTarget = transformSupportedBrowsersToTargets(browserslist(["Chrome >= 61"]));
|
|
78
78
|
this._indexHtmlFilePath = path.resolve(this._opt.pkgPath, "src/index.html");
|
|
79
79
|
this._pkgName = path.basename(this._opt.pkgPath);
|
|
80
80
|
this._baseHref =
|
|
@@ -34,7 +34,7 @@ export class SdStyleBundler {
|
|
|
34
34
|
futureDeprecations: undefined,
|
|
35
35
|
},
|
|
36
36
|
externalDependencies: [],
|
|
37
|
-
target: transformSupportedBrowsersToTargets(browserslist(["Chrome
|
|
37
|
+
target: transformSupportedBrowsersToTargets(browserslist(["Chrome >= 61"])),
|
|
38
38
|
preserveSymlinks: false,
|
|
39
39
|
tailwindConfiguration: undefined,
|
|
40
40
|
postcssConfiguration: undefined,
|