pub struct BuildPluginArgs {
pub path: PathBuf,
pub install: bool,
pub release: bool,
}Expand description
Builds a plugin’s backend (Rust/WASM) and/or frontend components.
The frontend directory, install command, and build command can be customized via
broccoli.dev.toml in the plugin directory:
[build] frontend_dir = “client” # where to run the build command frontend_install_cmd = “npm install” # default: “pnpm install –ignore-workspace” frontend_build_cmd = “npm run build” # default: “pnpm build”
Without a config file, the frontend directory is auto-detected from the [web].root field in plugin.toml, or by looking for package.json in web/, frontend/, or the plugin root.
Fields§
§path: PathBufPath to the plugin directory (defaults to current directory)
install: boolForce execution of the frontend installation command even if node_modules exists
release: boolBuild in release mode (optimized)
Trait Implementations§
Source§impl Args for BuildPluginArgs
impl Args for BuildPluginArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for BuildPluginArgs
impl FromArgMatches for BuildPluginArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.