@hyperfrontend/features/nx/executors/build

build

Nx build executor. A thin wrapper that builds a hyperfrontend feature's shell package by delegating to the SDK's headless hf build, run against the executing project's root directory. When the build fails, it checks whether rollup's native binding for the current platform is installed and, when it is missing, prints the exact install command for the workspace's package manager on stderr. Registered via the package's executors.json.

Usage

{
  "targets": {
    "build": {
      "executor": "@hyperfrontend/features:build",
      "options": { "config": "./feature.config.json" }
    }
  }
}
OptionRequiredDescription
confignoPath to the feature config object.
outnoOutput directory for the built shell.
protocolnoSecurity envelope: none, v1, or v2.
namenoFeature name override.
versionnoFeature version override.
urlnoURL the generated shell loads the feature from.
contractnoPath to the contract file.
allowOpennoAcknowledge an explicit none protocol and build an open, unauthenticated shell.

API Reference

Interfaces

§interface

BuildExecutorSchema

Options for the build executor; mirrors schema.json.

Properties

§allowOpen?:boolean
Acknowledge an explicit none protocol and build an open, unauthenticated shell.
§config?:string
Path to the feature config object.
§contract?:string
Path to the contract file.
§name?:string
Feature name override.
§out?:string
Output directory for the built shell.
§protocol?:string
Security envelope to enforce at build time: none, v1, or v2.
§url?:string
URL the generated shell loads the feature from.
§version?:string
Feature version override.

Variables

§type

runBuildExecutor

Build a hyperfrontend feature's shell package by delegating to the SDK's hf build.
Maps the executor options to headless CLI flags and runs the build against the executing project's root directory.
§type

runBuildExecutor

Build a hyperfrontend feature's shell package by delegating to the SDK's hf build.
Maps the executor options to headless CLI flags and runs the build against the executing project's root directory.