3 Commits
Author SHA1 Message Date
Andrew Scott ecc3aee916 build(compiler-cli): clean up preprocessor build configs
- Remove unused `//packages/common` and `//packages/compiler-cli/private`
  dependencies from `//packages/compiler-cli/preprocessor:preprocessor`.
- Include `//packages/compiler-cli/preprocessor/ng-analyze:wasm` in
  `//packages/compiler-cli/preprocessor:npm_package`.
- Align `packages/compiler-cli/preprocessor/package.json` name with the
  Bazel `npm_package` target (`@angular/compiler-cli/preprocessor`) and
  remove the unused `vscode-uri` dependency.
- Remove unused `@crates//:oxc-miette-derive` `proc_macro_deps` from
  `ng-analyze` and add `bin_test` to execute unit tests in `src/main.rs`.
- Remove stale `ng-analyze-wasm` exclusion from `tslint.json`.
2026-10-14 17:33:24 +02:00
Kristiyan Kostadinov 78d2a67d92 build: clean up language service build
Removes some unnecessary code from the ngp-based language service.
2026-10-10 22:08:24 +02:00
4e4ad75144 refactor(compiler-cli): integrate hybrid preprocessor into compiler-cli
Integrate the hybrid Angular preprocessor (NGP) under packages/compiler-cli/preprocessor,
along with its language service integration, VS Code extension, and Rust/Wasm Bazel toolchain.

Key components included:
- Rust-based AST analyzer and Wasm compilation target (packages/compiler-cli/preprocessor/ng-analyze)
- Preprocessor engine and Jasmine test suites (packages/compiler-cli/preprocessor)
- Language service extension and specs (packages/compiler-cli/preprocessor/language-service)
- Experimental VS Code extension (ngp-vscode-ng-language-service)
- Rust toolchain and crate dependencies in Bazel (MODULE.bazel, Cargo.toml)

Monorepo integration & compatibility adjustments:
- Rust toolchain & hermetic Bazel testing: Made N-API optional (default = [] in Cargo.toml) and
  added non-NAPI fallback methods on Analyzer and TestAnalyzer (analyzer.rs, test_analyzer.rs,
  lib.rs) for native Bazel rust_test and Wasm compilation; replaced static Cargo.toml lookups in
  fs.rs tests with hermetic tempfile fixtures for Bazel sandbox execution; updated driver test
  fixture for Option<String> local_name.
- Angular monorepo TypeScript & linting compliance: Added tslint:disable:no-console pragmas to CLI
  entrypoints (main.ts, ngp.ts); added explicit override modifiers (output_ast_printer.ts); aligned
  TypeScript ESM imports (tcb_ls_util.ts); and consolidated compiler imports and type references
  (processor.ts, hybrid_compiler.ts).

Co-authored-by: Matthew Beck <[email protected]>
Co-authored-by: Alex Rickabaugh <[email protected]>
Co-authored-by: Kristiyan Kostadinov <[email protected]>
Co-authored-by: JoostK <[email protected]>
Co-authored-by: Matthieu Riegler <[email protected]>
2026-10-08 14:23:48 -07:00