pub struct BuildPluginArgs {
pub path: PathBuf,
pub release: bool,
}Expand description
Builds a plugin’s backend (Rust/WASM) and/or frontend components.
The frontend directory 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_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)
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
Append to
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for BuildPluginArgs
impl RefUnwindSafe for BuildPluginArgs
impl Send for BuildPluginArgs
impl Sync for BuildPluginArgs
impl Unpin for BuildPluginArgs
impl UnsafeUnpin for BuildPluginArgs
impl UnwindSafe for BuildPluginArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more