@luxkit/cli 1.1.41 → 1.1.43

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/CHANGELOG.md ADDED
@@ -0,0 +1,107 @@
1
+ # Changelog
2
+
3
+ ## 1.1.43
4
+
5
+ - Fixed language switcher links in README pointing to npm 404 — now uses GitHub absolute URLs
6
+
7
+ ## 1.1.42
8
+
9
+ - Added `CHANGELOG.md` to published npm package
10
+
11
+ ## 1.1.41
12
+
13
+ - Fixed Chinese README filename casing (`README_Zh.md` → `README_ZH.md`) in published npm package
14
+ - Improved pre-commit hook reliability and project documentation
15
+
16
+ ## 1.1.4
17
+
18
+ - `lux fmt` now supports `--cspell` opt-in flag for CSpell config generation — consistent with existing `--stylelint` and `--editorconfig` opt-in pattern
19
+ - `lux fmt` now supports `--husky` and `--lint-staged` opt-in flags for Git hooks automation — `--lint-staged` implicitly enables `--husky`, supports all package managers with yarn-specific postinstall handling
20
+ - Added husky + lint-staged pre-commit hook to the project itself
21
+ - Fixed pre-commit hook missing force guard and Unix execute permission
22
+ - Fixed `.lintstagedrc` not recognized by CSpell dictionary
23
+
24
+ ## 1.1.3
25
+
26
+ - `lux fmt` now supports custom presets — create a directory under `~/.lux/preset/fmt/<name>/` with config files and a `package.json`, then run `lux fmt <name>` to apply it
27
+ - `lux fmt list` now shows custom presets after built-in ones, marked with `(custom)` in yellow
28
+ - `--stylelint` and `--editorconfig` flags now filter entire script entries by key name (e.g. `stylelint:check`, `editorconfig:check`) in addition to stripping inline segments
29
+ - `lux fmt <name> --reset` now warns and aborts for custom presets (no builtin to restore)
30
+ - `lux fmt <custom-preset> --stylelint/--editorconfig` now warns when the flag has no effect (preset has no matching config or dependencies)
31
+ - Unknown preset names now fuzzy match against all available presets (builtin + custom combined)
32
+ - Fixed `lux fmt` and `lux vscode` returning exit code 0 on preset not found — now correctly returns 1 for CI/CD pipelines
33
+ - Fixed CSpell ignorePaths glob pattern in generated configs
34
+ - Fixed Chinese README link returning 404 on npm — `README_Zh.md` now included in published package
35
+ - update readme docs
36
+
37
+ ## 1.1.2
38
+
39
+ - All preset scripts consolidated: `lint` now runs eslint + cspell + typecheck (+ stylelint) in one command — removed `code:check`, `code:fix`, `code:check:all`, `code:fix:all`, `format:check`, `cspell`, `type:check`, `stylelint`, `stylelint:fix` scripts
40
+ - Added `lux init --preset` to materialize all built-in presets to `~/.lux/preset/` without writing to project directory
41
+ - `--no-stylelint` now strips stylelint segments inline from `lint` and `lint:fix` scripts instead of removing separate script keys
42
+ - `--dry-run` now reports which dependencies would be added instead of silently skipping the install step
43
+ - Fixed `--no-install` resolving all template deps instead of only the missing ones
44
+ - CSpell configs in all presets now ignore `**/*.svg` and `**/*.png` files by default (recursive glob)
45
+ - Fixed Vue presets (web-vue, electron-vue, uniapp) ESLint flat config import compatibility with `@vue/eslint-config-prettier`
46
+
47
+ ## 1.1.1
48
+
49
+ - Added `lux init` command — interactively select an AI coding tool (Claude Code / OpenCode) and copy bundled skill files to the project
50
+ - Generated presets are now saved to `~/.lux/preset/` for reuse — subsequent runs use the local copy instead of regenerating
51
+ - Added `--reset` flag to `fmt` and `vscode` commands to re-create local preset from built-in defaults
52
+ - Edit files in `~/.lux/preset/` to customize what gets applied on future runs
53
+ - `lux vscode` now merges extensions with existing `extensions.json` instead of overwriting — user-installed extensions are preserved
54
+ - Fixed `--force` not reporting overwritten files correctly for local presets
55
+
56
+ ## 1.0.9
57
+
58
+ - **BREAKING**: `fmt` stylelint is now opt-in via `--stylelint` flag (previously included by default)
59
+ - **BREAKING**: `fmt` editorconfig is now opt-in via `--editorconfig` flag (previously included by default)
60
+ - Added `web-react` preset for `fmt` and `vscode` commands
61
+ - Dependencies are now written to `package.json` when using `--no-install` flag
62
+ - Fixed silent crashes on file write and JSON read errors
63
+ - ESLint lint and lint:fix scripts now use `--cache` with cache stored in `node_modules/.cache/.eslintcache`
64
+
65
+ ## 1.0.8
66
+
67
+ - Fixed stylelint scripts and deps not being filtered when using `--no-stylelint` flag
68
+
69
+ ## 1.0.7
70
+
71
+ - Renamed `web` preset to `web-vue` and `electron` preset to `electron-vue`
72
+ - Added `--no-stylelint` flag to `vscode` command
73
+
74
+ ## 1.0.6
75
+
76
+ - Fixed quoted value format in vpn command's env config storage
77
+
78
+ ## 1.0.5
79
+
80
+ - Added vpn proxy config persistent storage with `set`/`unset` sub-commands
81
+
82
+ ## 1.0.4
83
+
84
+ - Fixed `demo.gif` URL in README
85
+
86
+ ## 1.0.3
87
+
88
+ - Fixed npm package missing `demo.gif` in published files
89
+
90
+ ## 1.0.2
91
+
92
+ - `lux fmt` and `lux vscode` no longer require `init` sub-command
93
+ - Added vpn bash command
94
+ - Simplified dependency install flow by removing version pinning
95
+
96
+ ## 1.0.1
97
+
98
+ - Package renamed to `@luxkit/cli` — install with the new name
99
+ - Fixed README install commands
100
+
101
+ ## 1.0.0
102
+
103
+ - Initial release: one-click project formatting and VSCode config CLI
104
+ - `lux fmt` — generate ESLint, Prettier, Stylelint, CSpell, EditorConfig configs with presets
105
+ - `lux vscode` — generate VSCode settings and recommended extensions
106
+ - `lux update` — self-update with npm/bun support
107
+ - `lux vpn` — proxy clipboard helper with `cmd`/`pw` sub-commands
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  [![TypeScript](https://img.shields.io/badge/TypeScript-6.0-3178C6.svg)](https://www.typescriptlang.org/)
11
11
  [![ESM Only](https://img.shields.io/badge/ESM-only-F7DF1E.svg)](https://nodejs.org/api/esm.html)
12
12
 
13
- **English** | [中文](./README_ZH.md)
13
+ **English** | [中文](https://github.com/TTT1231/lux/blob/main/README_ZH.md)
14
14
 
15
15
  </div>
16
16
 
@@ -239,4 +239,4 @@ Bug reports, feature suggestions, and code contributions are welcome!
239
239
 
240
240
  <br />
241
241
 
242
- <p align="right"><a href="./README_Zh.md">切换到中文 →</a></p>
242
+ <p align="right"><a href="https://github.com/TTT1231/lux/blob/main/README_ZH.md">切换到中文 →</a></p>
package/README_ZH.md CHANGED
@@ -10,7 +10,7 @@
10
10
  [![TypeScript](https://img.shields.io/badge/TypeScript-6.0-3178C6.svg)](https://www.typescriptlang.org/)
11
11
  [![ESM Only](https://img.shields.io/badge/ESM-only-F7DF1E.svg)](https://nodejs.org/api/esm.html)
12
12
 
13
- [English](./README.md) | **中文**
13
+ [English](https://github.com/TTT1231/lux/blob/main/README.md) | **中文**
14
14
 
15
15
  </div>
16
16
 
@@ -239,4 +239,4 @@ npm uninstall -g @luxkit/cli
239
239
 
240
240
  <br />
241
241
 
242
- <p align="right"><a href="./README.md">← Switch to English</a></p>
242
+ <p align="right"><a href="https://github.com/TTT1231/lux/blob/main/README.md">← Switch to English</a></p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxkit/cli",
3
- "version": "1.1.41",
3
+ "version": "1.1.43",
4
4
  "description": "One-click project formatting & VSCode config CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,7 +8,8 @@
8
8
  },
9
9
  "files": [
10
10
  "dist",
11
- "README_ZH.md"
11
+ "README_ZH.md",
12
+ "CHANGELOG.md"
12
13
  ],
13
14
  "publishConfig": {
14
15
  "access": "public"