@v5x/cli 0.0.19 → 0.0.20

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 ADDED
@@ -0,0 +1,61 @@
1
+ # @v5x/cli
2
+
3
+ A Bun-powered command-line interface for building and managing VEX V5 programs.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ bun add --global @v5x/cli
9
+ ```
10
+
11
+ The CLI supports PROS, vexide, and VEXcode C++ projects. The corresponding
12
+ compiler toolchain must be installed before building a project.
13
+
14
+ ```sh
15
+ v5x install pros
16
+ v5x install vexide
17
+ ```
18
+
19
+ ## Programs
20
+
21
+ ```sh
22
+ # Build the project in the current directory.
23
+ v5x build
24
+
25
+ # Build and upload to slot 2.
26
+ v5x upload --slot 2
27
+
28
+ # Upload an existing artifact without building.
29
+ v5x upload --slot 2 --no-build --file ./bin/monolith.bin
30
+
31
+ # Build, upload, and immediately start the program.
32
+ v5x run --slot 2
33
+
34
+ # Create a project directly from the built-in templates.
35
+ v5x new robot --type pros
36
+ v5x new robot --type vexide
37
+ ```
38
+
39
+ `build`, `clean`, `upload`, and `run` accept an optional project directory.
40
+ Use `v5x <command> --help` for all options.
41
+
42
+ ## Brain utilities
43
+
44
+ ```sh
45
+ v5x devices
46
+ v5x dir
47
+ v5x cat slot_1.ini
48
+ v5x rm slot_1.bin
49
+ v5x screenshot
50
+ v5x kv get key
51
+ v5x kv set key value
52
+ ```
53
+
54
+ ## Development
55
+
56
+ ```sh
57
+ bun install
58
+ bun run typecheck
59
+ bun run test
60
+ bun run build
61
+ ```
package/dist/index.js CHANGED
Binary file
package/package.json CHANGED
@@ -1,41 +1,34 @@
1
1
  {
2
2
  "name": "@v5x/cli",
3
- "version": "0.0.19",
4
3
  "description": "modern v5 development",
5
- "author": "beanarchystudios",
4
+ "version": "0.0.20",
5
+ "module": "dist/index.js",
6
+ "type": "module",
6
7
  "bin": {
7
- "cli": "./dist/index.js"
8
+ "v5x": "./dist/index.js"
8
9
  },
9
- "files": ["dist", "README.md"],
10
- "type": "module",
10
+ "files": [
11
+ "dist",
12
+ "README.md"
13
+ ],
11
14
  "scripts": {
12
- "postinstall": "bunli generate",
13
- "dev": "bun run src/index.ts",
14
- "build": "bunli build --outfile dist/index.js",
15
- "prepublishOnly": "bun run build",
15
+ "build": "bun build ./src/index.ts --target bun --outfile ./dist/index.js",
16
+ "typecheck": "tsc --noEmit",
16
17
  "test": "bun test",
17
- "typecheck": "tsc --noEmit"
18
- },
19
- "dependencies": {
20
- "@bunli/core": "latest",
21
- "@bunli/runtime": "^0.3.2",
22
- "@v5x/serial": "0.5.0",
23
- "bun-serialport": "^0.1.1",
24
- "cli-table": "^0.3.11",
25
- "pngjs": "^7.0.0",
26
- "zod": "^4.4.3"
18
+ "prepack": "bun run build"
27
19
  },
28
20
  "devDependencies": {
29
- "@bunli/test": "latest",
30
- "@tsconfig/bun": "1.0.10",
31
- "@types/bun": "latest",
32
- "@types/cli-table": "^0.3.4",
33
- "@types/pngjs": "^6.0.5",
34
- "bunli": "latest",
35
- "typescript": "^5.0.0"
21
+ "@v5x/serial": "0.5.4",
22
+ "@types/bun": "latest"
23
+ },
24
+ "peerDependencies": {
25
+ "typescript": "^5"
36
26
  },
37
- "bunli": {
38
- "entry": "./src/index.ts",
39
- "outDir": "./dist"
27
+ "dependencies": {
28
+ "bun-serialport": "^0.1.1",
29
+ "chalk": "^5.6.2",
30
+ "cmd-table": "^1.6.0",
31
+ "commander": "^14.0.3",
32
+ "fflate": "^0.8.3"
40
33
  }
41
34
  }