@gitlab/duo-cli 8.14.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 +41 -0
- package/dist/index.js +1322 -0
- package/dist/index.js.map +1302 -0
- package/package.json +53 -0
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# GitLab CLI Development
|
|
2
|
+
|
|
3
|
+
GitLab Duo CLI (`@gitlab/duo-cli`) - GitLab Duo for your command line.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
This CLI project is built using [bun](https://bun.sh/). Make sure you have the following installed:
|
|
8
|
+
|
|
9
|
+
1. Install mise and bun: `mise install`
|
|
10
|
+
1. Install dependencies using bun package manager: `npm run install:bun`
|
|
11
|
+
|
|
12
|
+
in order to continue working with the language server, install dependencies with npm package manager: `npm run install:npm`
|
|
13
|
+
|
|
14
|
+
## Compilation
|
|
15
|
+
|
|
16
|
+
To create standalone executables for distribution, use the compilation script:
|
|
17
|
+
|
|
18
|
+
```shell
|
|
19
|
+
npm run build:binary
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
This will create cross-platform executables in the `./bin` directory:
|
|
23
|
+
|
|
24
|
+
- `duo-linux-x64` - Linux 64-bit
|
|
25
|
+
- `duo-linux-arm64` - Linux ARM64
|
|
26
|
+
- `duo-darwin-x64` - macOS Intel
|
|
27
|
+
- `duo-darwin-arm64` - macOS Apple Silicon
|
|
28
|
+
- `duo-windows-x64.exe` - Windows 64-bit
|
|
29
|
+
|
|
30
|
+
### Development
|
|
31
|
+
|
|
32
|
+
You can run the application in watch mode using `npm run watch` command. It will be executed directly with bun.
|
|
33
|
+
You can also compile the application to node.js and run it with `npm run start` command.
|
|
34
|
+
|
|
35
|
+
## Troubleshooting
|
|
36
|
+
|
|
37
|
+
If you have issues with Bun not resolving installed node_modules in the packages, you may need to clear node_modules folders and reinstall:
|
|
38
|
+
|
|
39
|
+
```shell
|
|
40
|
+
npm run install:bun
|
|
41
|
+
```
|