@v5x/cli 0.0.19 → 0.0.21

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,63 @@
1
+ # @v5x/cli
2
+
3
+ A Bun-powered command-line interface for building and managing VEX V5 programs.
4
+
5
+ See the [complete CLI documentation](https://docs.v5x.dev/cli/overview) for workflows and command reference.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ bun add --global @v5x/cli
11
+ ```
12
+
13
+ The CLI supports PROS, vexide, and VEXcode C++ projects. The corresponding
14
+ compiler toolchain must be installed before building a project.
15
+
16
+ ```sh
17
+ v5x install pros
18
+ v5x install vexide
19
+ ```
20
+
21
+ ## Programs
22
+
23
+ ```sh
24
+ # Build the project in the current directory.
25
+ v5x build
26
+
27
+ # Build and upload to slot 2.
28
+ v5x upload --slot 2
29
+
30
+ # Upload an existing artifact without building.
31
+ v5x upload --slot 2 --no-build --file ./bin/monolith.bin
32
+
33
+ # Build, upload, and immediately start the program.
34
+ v5x run --slot 2
35
+
36
+ # Create a project directly from the built-in templates.
37
+ v5x new robot --type pros
38
+ v5x new robot --type vexide
39
+ ```
40
+
41
+ `build`, `clean`, `upload`, and `run` accept an optional project directory.
42
+ Use `v5x <command> --help` for all options.
43
+
44
+ ## Brain utilities
45
+
46
+ ```sh
47
+ v5x devices
48
+ v5x dir
49
+ v5x cat slot_1.ini
50
+ v5x rm slot_1.bin
51
+ v5x screenshot
52
+ v5x kv get key
53
+ v5x kv set key value
54
+ ```
55
+
56
+ ## Development
57
+
58
+ ```sh
59
+ bun install
60
+ bun run typecheck
61
+ bun run test
62
+ bun run build
63
+ ```
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
- "description": "modern v5 development",
5
- "author": "beanarchystudios",
3
+ "description": "modern v5 tools",
4
+ "version": "0.0.21",
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
+ "fflate": "^0.8.3",
32
+ "sade": "^1.8.1"
40
33
  }
41
34
  }