universal-dev-standards 3.0.0 → 3.2.0
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 +42 -0
- package/bin/uds.js +5 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -219,11 +219,53 @@ This CLI works alongside [universal-dev-skills](https://github.com/AsiaOstrich/u
|
|
|
219
219
|
**Important | 重要**: For standards with Skills available, use the Skill OR copy the source document — never both.
|
|
220
220
|
對於有可用 Skills 的規範,請使用 Skill 或複製來源文件 — 切勿兩者同時使用。
|
|
221
221
|
|
|
222
|
+
## Windows Support | Windows 支援
|
|
223
|
+
|
|
224
|
+
The CLI tool works seamlessly on Windows. Here are some platform-specific notes:
|
|
225
|
+
|
|
226
|
+
CLI 工具在 Windows 上無縫運作。以下是一些平台特定的注意事項:
|
|
227
|
+
|
|
228
|
+
### Running the CLI | 執行 CLI
|
|
229
|
+
|
|
230
|
+
```powershell
|
|
231
|
+
# PowerShell
|
|
232
|
+
npm install -g universal-dev-standards
|
|
233
|
+
uds init
|
|
234
|
+
|
|
235
|
+
# Or using npx
|
|
236
|
+
npx universal-dev-standards init
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Development Setup | 開發設定
|
|
240
|
+
|
|
241
|
+
**PowerShell:**
|
|
242
|
+
```powershell
|
|
243
|
+
git clone https://github.com/AsiaOstrich/universal-dev-standards.git
|
|
244
|
+
cd universal-dev-standards\cli
|
|
245
|
+
npm install
|
|
246
|
+
npm link
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**Git Bash:**
|
|
250
|
+
```bash
|
|
251
|
+
git clone https://github.com/AsiaOstrich/universal-dev-standards.git
|
|
252
|
+
cd universal-dev-standards/cli
|
|
253
|
+
npm install
|
|
254
|
+
npm link
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Git Hooks | Git 鉤子
|
|
258
|
+
|
|
259
|
+
Git hooks work through Git Bash, which is included with Git for Windows. No additional configuration needed.
|
|
260
|
+
|
|
261
|
+
Git 鉤子透過 Git Bash 運作,它包含在 Git for Windows 中。不需要額外設定。
|
|
262
|
+
|
|
222
263
|
## Related | 相關資源
|
|
223
264
|
|
|
224
265
|
- [universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards) - Source repository | 原始碼庫
|
|
225
266
|
- [universal-dev-skills](https://github.com/AsiaOstrich/universal-dev-skills) - Claude Code Skills
|
|
226
267
|
- [Adoption Guide](https://github.com/AsiaOstrich/universal-dev-standards/blob/main/adoption/ADOPTION-GUIDE.md) - Complete guidance | 完整指南
|
|
268
|
+
- [Windows Guide](../docs/WINDOWS-GUIDE.md) - Windows-specific guide | Windows 專用指南
|
|
227
269
|
|
|
228
270
|
---
|
|
229
271
|
|
package/bin/uds.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
import { createRequire } from 'node:module';
|
|
3
4
|
import { program } from 'commander';
|
|
4
5
|
import { listCommand } from '../src/commands/list.js';
|
|
5
6
|
import { initCommand } from '../src/commands/init.js';
|
|
@@ -7,10 +8,13 @@ import { checkCommand } from '../src/commands/check.js';
|
|
|
7
8
|
import { updateCommand } from '../src/commands/update.js';
|
|
8
9
|
import { configureCommand } from '../src/commands/configure.js';
|
|
9
10
|
|
|
11
|
+
const require = createRequire(import.meta.url);
|
|
12
|
+
const pkg = require('../package.json');
|
|
13
|
+
|
|
10
14
|
program
|
|
11
15
|
.name('uds')
|
|
12
16
|
.description('CLI tool for adopting Universal Development Standards')
|
|
13
|
-
.version(
|
|
17
|
+
.version(pkg.version);
|
|
14
18
|
|
|
15
19
|
program
|
|
16
20
|
.command('list')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-dev-standards",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "CLI tool for adopting Universal Development Standards",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"documentation",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"README.md"
|
|
34
34
|
],
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
36
|
+
"node": ">=20.0.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"test": "vitest run",
|
|
40
40
|
"test:watch": "vitest",
|
|
41
41
|
"test:coverage": "vitest run --coverage",
|
|
42
42
|
"lint": "eslint src/",
|
|
43
|
-
"prepare": "
|
|
43
|
+
"prepare": "node ../scripts/setup-husky.mjs"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"chalk": "^5.3.0",
|