@luxkit/cli 1.0.8 → 1.1.1
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 +55 -40
- package/dist/index.js +1044 -153
- package/dist/skills/lux/skill.md +55 -0
- package/package.json +19 -7
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: lux
|
|
3
|
+
description: Use when setting up ESLint, Prettier, CSpell, Stylelint, EditorConfig, VSCode workspace settings, proxy env
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## fmt — generate lint/format configs
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
lux fmt <preset> [--stylelint] [--editorconfig]
|
|
10
|
+
lux fmt list
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
- `--force` — overwrite existing config files (default: skip)
|
|
14
|
+
- `--dry-run` — preview what would be generated, write nothing
|
|
15
|
+
- `--no-install` — write deps to package.json but skip install
|
|
16
|
+
|
|
17
|
+
Presets: `web-vue` `web-react` `electron-vue` `uniapp` `node` `nest`
|
|
18
|
+
|
|
19
|
+
## vscode — generate editor settings
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
lux vscode <preset> [--dry-run]
|
|
23
|
+
lux vscode list
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Presets: `web-vue` `web-react` `electron-vue` `uniapp` `node` `nest` `go`
|
|
27
|
+
|
|
28
|
+
## init — lux skill(human interaction)
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
lux init
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## vpn — proxy clipboard helper
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
lux vpn cmd # copy CMD proxy commands
|
|
38
|
+
lux vpn pw # copy PowerShell proxy commands
|
|
39
|
+
lux vpn bash # copy Bash proxy commands
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## env — proxy env management
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
lux set https_proxy=http://127.0.0.1:7890
|
|
46
|
+
lux unset # clear all proxy config
|
|
47
|
+
lux show env # show stored proxy env
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## update — self-update
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
lux update # update to latest
|
|
54
|
+
lux update --check
|
|
55
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxkit/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "One-click project formatting & VSCode config CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,27 +13,39 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "tsup",
|
|
16
|
+
"build": "tsup && node scripts/copy-assets.mjs",
|
|
17
17
|
"dev": "tsup --watch",
|
|
18
18
|
"lint": "eslint .",
|
|
19
|
-
"lint:fix": "eslint \"src/**/*.{js,ts}\" --fix",
|
|
20
19
|
"format": "prettier --write \"src/**/*.{ts,js,json}\"",
|
|
21
|
-
"format:check": "prettier --check \"src/**/*.{ts,js,json}\"",
|
|
22
20
|
"cspell": "cspell --gitignore \"src/**/*\"",
|
|
21
|
+
"format:check": "prettier --check \"src/**/*.{ts,js,json}\"",
|
|
23
22
|
"type:check": "tsc --noEmit",
|
|
24
23
|
"code:check": "bun run lint && bun run format:check",
|
|
25
|
-
"code:fix": "bun run lint:fix && bun run format",
|
|
26
24
|
"code:check:all": "bun run lint && bun run format:check && bun run cspell",
|
|
25
|
+
"lint:fix": "eslint \"src/**/*.{js,ts}\" --fix",
|
|
26
|
+
"code:fix": "bun run lint:fix && bun run format",
|
|
27
27
|
"code:fix:all": "bun run lint:fix && bun run format",
|
|
28
28
|
"prepublishOnly": "cross-env NODE_ENV=production bun run build",
|
|
29
29
|
"test": "vitest run",
|
|
30
30
|
"test:watch": "vitest",
|
|
31
31
|
"test:coverage": "vitest run --coverage"
|
|
32
32
|
},
|
|
33
|
-
"keywords": [
|
|
34
|
-
|
|
33
|
+
"keywords": [
|
|
34
|
+
"cli",
|
|
35
|
+
"eslint",
|
|
36
|
+
"prettier",
|
|
37
|
+
"stylelint",
|
|
38
|
+
"cspell",
|
|
39
|
+
"editorconfig",
|
|
40
|
+
"vscode",
|
|
41
|
+
"formatting",
|
|
42
|
+
"config-generator",
|
|
43
|
+
"preset"
|
|
44
|
+
],
|
|
45
|
+
"author": "TTT1231",
|
|
35
46
|
"license": "ISC",
|
|
36
47
|
"dependencies": {
|
|
48
|
+
"@clack/prompts": "^1.4.0",
|
|
37
49
|
"chalk": "5",
|
|
38
50
|
"commander": "^14.0.3"
|
|
39
51
|
},
|