@ng-desktop/builders 0.4.0 → 0.4.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/README.md CHANGED
@@ -1,14 +1,41 @@
1
- # @ng-desktop/builders
1
+ # `@ng-desktop/builders`
2
2
 
3
- Angular 22+ CLI & Nx Architect builder, AST permission analyzer, CLI, and schematics
3
+ Angular CLI and Nx native desktop builder, AST-driven `.ngb` compiler (`oxc-parser`, `@angular/compiler`, `postcss`), server route bundler, static least-privilege permission analyzer, `ng add @ng-desktop/builders` schematic, `ng-desktop` CLI, and prebuilt `@ng-desktop/engine-*` binary resolution.
4
4
 
5
- Part of **[NgDesktop Engine](https://github.com/Gaspar1992/ng-desktop-engine)** — Native desktop rendering engine for Angular 22+ (`GTK4`, `WinUI 3`, `AppKit`).
5
+ ## Install
6
6
 
7
- ## Installation
7
+ Add cleanly via Angular schematic (recommended):
8
8
 
9
9
  ```bash
10
- pnpm add @ng-desktop/builders
10
+ ng add @ng-desktop/builders
11
11
  ```
12
12
 
13
- - Repository path: `packages/builders-native`
14
- - Documentation & Ecosystem Guide: https://github.com/Gaspar1992/ng-desktop-engine/blob/main/docs/ECOSYSTEM_COMPATIBILITY.md
13
+ Or install manually as a dev dependency:
14
+
15
+ ```bash
16
+ pnpm add -D @ng-desktop/builders
17
+ ```
18
+
19
+ Prebuilt native engine binaries (`@ng-desktop/engine-linux-x64-gnu`, `@ng-desktop/engine-linux-arm64-gnu`, `@ng-desktop/engine-win32-x64-msvc`, `@ng-desktop/engine-darwin-arm64`, `@ng-desktop/engine-darwin-x64`) are listed as `optionalDependencies` and resolved automatically (or override with `NG_DESKTOP_ENGINE_BIN`).
20
+
21
+ ## CLI Commands
22
+
23
+ ```bash
24
+ npx ng-desktop init --target=linux-gtk4 # Wire native target in angular.json or project.json
25
+ npx ng-desktop permissions [--strict] # Inspect AST-inferred OS capabilities
26
+ npx ng-desktop build [--watch] # Compile Angular + .ngb IR + permissions.manifest.json
27
+ npx ng-desktop run [--batch] # Launch the native desktop window
28
+ npx ng-desktop package [--all] # Stage OS distribution packages
29
+ ```
30
+
31
+ ## Key Exports
32
+
33
+ - **Architect / Nx Builders:** `applicationBuilder`, `devServerBuilder`, `createArchitectBuilder`, `executeNativeBuilder`, `createNativeTargetConfig`
34
+ - **Compilers & Workspace:** `compileBundle`, `watchBundle`, `compileServerBundle`, `analyzeProjectPermissions`, `resolveWorkspaceProject`, `resolveEngineBinaryPath`, `ENGINE_BINARY_PACKAGES`
35
+ - **HMR IPC:** `pushHmrReload`, `pushHmrServerReload`, `pushHmrEval`, `pingHmr`
36
+
37
+ ## Documentation
38
+
39
+ - [Getting Started with External Angular 22+ & Nx Apps](../../docs/GETTING_STARTED.md)
40
+ - [Ecosystem Compatibility Guide](../../docs/ECOSYSTEM_COMPATIBILITY.md)
41
+ - [Architectural Roadmap & OS Maturity Matrix](../../ROADMAP.md)
@@ -21,7 +21,7 @@ export function createArchitectBuilder(handlerFn) {
21
21
  };
22
22
  }
23
23
  builderObj[ARCHITECT_BUILDER_SYMBOL] = true;
24
- builderObj[ARCHITECT_VERSION_SYMBOL] = builderObj[ARCHITECT_VERSION_SYMBOL] ?? '0.4.0';
24
+ builderObj[ARCHITECT_VERSION_SYMBOL] = builderObj[ARCHITECT_VERSION_SYMBOL] ?? '0.4.1';
25
25
  builderObj.run = handlerFn;
26
26
  return builderObj;
27
27
  }
@@ -26,7 +26,7 @@ function readPackageVersion(workspaceRoot, projectRoot) {
26
26
  }
27
27
  }
28
28
  }
29
- return '0.4.0';
29
+ return '0.4.1';
30
30
  }
31
31
 
32
32
  function findNxProjectJsonFiles(workspaceRoot) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-desktop/builders",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Angular 22+ CLI & Nx Architect builder, AST permission analyzer, CLI, and schematics",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -72,10 +72,10 @@
72
72
  "postcss": ">=8.5.0"
73
73
  },
74
74
  "optionalDependencies": {
75
- "@ng-desktop/engine-linux-x64-gnu": "0.4.0",
76
- "@ng-desktop/engine-linux-arm64-gnu": "0.4.0",
77
- "@ng-desktop/engine-win32-x64-msvc": "0.4.0",
78
- "@ng-desktop/engine-darwin-arm64": "0.4.0",
79
- "@ng-desktop/engine-darwin-x64": "0.4.0"
75
+ "@ng-desktop/engine-linux-x64-gnu": "0.4.1",
76
+ "@ng-desktop/engine-linux-arm64-gnu": "0.4.1",
77
+ "@ng-desktop/engine-win32-x64-msvc": "0.4.1",
78
+ "@ng-desktop/engine-darwin-arm64": "0.4.1",
79
+ "@ng-desktop/engine-darwin-x64": "0.4.1"
80
80
  }
81
81
  }