@needle-tools/needle-component-compiler 3.0.0-alpha.4.196a6ea → 3.0.0-alpha.5

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.
Files changed (2) hide show
  1. package/Readme.md +14 -5
  2. package/package.json +4 -4
package/Readme.md CHANGED
@@ -2,15 +2,21 @@
2
2
 
3
3
  Compiles TypeScript component definitions into **Unity C#** component stubs and **Blender** Python component schemas for Needle Engine.
4
4
 
5
- ### CLI Usage
5
+ ### Quick Start
6
6
 
7
- ```
7
+ No install required — run directly with `npx`:
8
+
9
+ ```bash
8
10
  npx @needle-tools/needle-component-compiler <target> <output_dir> <input_files...>
9
11
  ```
10
12
 
11
- - `target`: `csharp` or `blender`
12
- - `output_dir`: directory for generated files
13
- - `input_files`: one or more `.ts` source files
13
+ | Argument | Description |
14
+ |---|---|
15
+ | `target` | `csharp` or `blender` |
16
+ | `output_dir` | Directory for generated files |
17
+ | `input_files` | One or more `.ts` source files (globs supported) |
18
+
19
+ #### Examples
14
20
 
15
21
  ```bash
16
22
  # Generate C# component stubs
@@ -19,6 +25,9 @@ npx @needle-tools/needle-component-compiler csharp ./codegen ./src/MyComponent.t
19
25
  # Generate Blender component schemas
20
26
  npx @needle-tools/needle-component-compiler blender ./codegen ./src/MyComponent.ts
21
27
 
28
+ # Process multiple files
29
+ npx @needle-tools/needle-component-compiler csharp ./codegen ./src/**/*.ts
30
+
22
31
  # Print version
23
32
  npx @needle-tools/needle-component-compiler --version
24
33
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/needle-component-compiler",
3
- "version": "3.0.0-alpha.4.196a6ea",
3
+ "version": "3.0.0-alpha.5",
4
4
  "description": "Compile Editor components for Needle Engine for C# and Blender",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -57,7 +57,7 @@
57
57
  "url": "git+https://github.com/needle-tools/needle-tiny-component-compiler.git"
58
58
  },
59
59
  "publishConfig": {
60
- "access": "public",
61
- "registry": "https://registry.npmjs.org/"
60
+ "access": "public",
61
+ "registry": "https://registry.npmjs.org/"
62
62
  }
63
- }
63
+ }