@lightnet/cli 4.0.0 → 4.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/CHANGELOG.md +17 -0
- package/README.md +5 -54
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @lightnet/cli
|
|
2
|
+
|
|
3
|
+
## 4.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#404](https://github.com/LightNetDev/LightNet/pull/404) [`5acab49`](https://github.com/LightNetDev/LightNet/commit/5acab49ca79078edbba3868b9b7bce249b2fca8a) - Update dependencies.
|
|
8
|
+
|
|
9
|
+
## 4.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#387](https://github.com/LightNetDev/LightNet/pull/387) [`d7969dc`](https://github.com/LightNetDev/LightNet/commit/d7969dcaa65417316b129f50602d3473813f52fe) Thanks [@smn-cds](https://github.com/smn-cds)! - Add check-translations script.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#387](https://github.com/LightNetDev/LightNet/pull/387) [`d7969dc`](https://github.com/LightNetDev/LightNet/commit/d7969dcaa65417316b129f50602d3473813f52fe) Thanks [@smn-cds](https://github.com/smn-cds)! - Update dependencies
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# LightNet CLI
|
|
2
2
|
|
|
3
|
-
Command-line tools for working with LightNet
|
|
3
|
+
Command-line tools for working with LightNet sites. The CLI currently focuses on translation validation, with more commands planned over time.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -8,57 +8,8 @@ Command-line tools for working with LightNet projects.
|
|
|
8
8
|
npm install --save-dev @lightnet/cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## LightNet CLI reference
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
npx @lightnet/cli --help
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
The package exposes the `lightnet` binary:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
lightnet <command> [options]
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Get the full command list at any time with:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
lightnet --help
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Commands
|
|
32
|
-
|
|
33
|
-
### `check-translations`
|
|
34
|
-
|
|
35
|
-
Checks the translation data produced by the latest LightNet build and reports
|
|
36
|
-
missing locale values.
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
lightnet check-translations
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
> [!NOTE]
|
|
43
|
-
> `check-translations` only validates translations that were actually used
|
|
44
|
-
> during the last build. For example, it would not report a missing category
|
|
45
|
-
> label translation if that category label was never referenced while building
|
|
46
|
-
> the site.
|
|
47
|
-
|
|
48
|
-
What it does:
|
|
49
|
-
|
|
50
|
-
- Reads the cached translation build output from `node_modules/.cache/lightnet/`
|
|
51
|
-
- Verifies every translation has values for every configured locale
|
|
52
|
-
- Groups missing translations by source to make follow-up work clearer
|
|
53
|
-
|
|
54
|
-
When to use it:
|
|
55
|
-
|
|
56
|
-
- After building a LightNet site
|
|
57
|
-
- In CI to catch incomplete translations before deploys
|
|
58
|
-
- While adding new locales or updating translation maps
|
|
59
|
-
|
|
60
|
-
Expected setup:
|
|
13
|
+
See command-line tools reference documentation at:
|
|
61
14
|
|
|
62
|
-
-
|
|
63
|
-
If the cache is missing, the command will fail and prompt you to run a build
|
|
64
|
-
first.
|
|
15
|
+
https://docs.lightnet.community/resources/lightnet-cli-reference/
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "CLI for managing LightNet projects",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "4.
|
|
6
|
+
"version": "4.1.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"CHANGELOG.md"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"commander": "^
|
|
28
|
+
"commander": "^15.0.0"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=22"
|