pub struct BunTsCompileBuilder<S: State = Empty> { /* private fields */ }compile only.Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> BunTsCompileBuilder<S>
impl<S: State> BunTsCompileBuilder<S>
Sourcepub fn build(self) -> BunTsCompilewhere
S: IsComplete,
pub fn build(self) -> BunTsCompilewhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn src_files(
self,
value: Vec<PathBuf>,
) -> BunTsCompileBuilder<SetSrcFiles<S>>where
S::SrcFiles: IsUnset,
pub fn src_files(
self,
value: Vec<PathBuf>,
) -> BunTsCompileBuilder<SetSrcFiles<S>>where
S::SrcFiles: IsUnset,
Required.
Files to build from
Sourcepub fn output_dir(self, value: PathBuf) -> BunTsCompileBuilder<SetOutputDir<S>>where
S::OutputDir: IsUnset,
pub fn output_dir(self, value: PathBuf) -> BunTsCompileBuilder<SetOutputDir<S>>where
S::OutputDir: IsUnset,
Required.
The output directory
Sourcepub fn output_file(self, value: String) -> BunTsCompileBuilder<SetOutputFile<S>>where
S::OutputFile: IsUnset,
pub fn output_file(self, value: String) -> BunTsCompileBuilder<SetOutputFile<S>>where
S::OutputFile: IsUnset,
Sourcepub fn maybe_output_file(
self,
value: Option<String>,
) -> BunTsCompileBuilder<SetOutputFile<S>>where
S::OutputFile: IsUnset,
pub fn maybe_output_file(
self,
value: Option<String>,
) -> BunTsCompileBuilder<SetOutputFile<S>>where
S::OutputFile: IsUnset,
Sourcepub fn minify(self, value: bool) -> BunTsCompileBuilder<SetMinify<S>>where
S::Minify: IsUnset,
pub fn minify(self, value: bool) -> BunTsCompileBuilder<SetMinify<S>>where
S::Minify: IsUnset,
Sourcepub fn maybe_minify(
self,
value: Option<bool>,
) -> BunTsCompileBuilder<SetMinify<S>>where
S::Minify: IsUnset,
pub fn maybe_minify(
self,
value: Option<bool>,
) -> BunTsCompileBuilder<SetMinify<S>>where
S::Minify: IsUnset,
Sourcepub fn extra_flags(
self,
value: Vec<String>,
) -> BunTsCompileBuilder<SetExtraFlags<S>>where
S::ExtraFlags: IsUnset,
pub fn extra_flags(
self,
value: Vec<String>,
) -> BunTsCompileBuilder<SetExtraFlags<S>>where
S::ExtraFlags: IsUnset,
Sourcepub fn maybe_extra_flags(
self,
value: Option<Vec<String>>,
) -> BunTsCompileBuilder<SetExtraFlags<S>>where
S::ExtraFlags: IsUnset,
pub fn maybe_extra_flags(
self,
value: Option<Vec<String>>,
) -> BunTsCompileBuilder<SetExtraFlags<S>>where
S::ExtraFlags: IsUnset,
Sourcepub fn skip_if_no_bun(
self,
value: bool,
) -> BunTsCompileBuilder<SetSkipIfNoBun<S>>where
S::SkipIfNoBun: IsUnset,
pub fn skip_if_no_bun(
self,
value: bool,
) -> BunTsCompileBuilder<SetSkipIfNoBun<S>>where
S::SkipIfNoBun: IsUnset,
Optional (Some / Option setters). Default: false.
If true, the normal bun build ... command will not execute if bun is not installed, but will instead print a warning.
This may be useful in CI environment where bun is not installed (and is not needed), since the output was created during
development and is already in source.
Sourcepub fn maybe_skip_if_no_bun(
self,
value: Option<bool>,
) -> BunTsCompileBuilder<SetSkipIfNoBun<S>>where
S::SkipIfNoBun: IsUnset,
pub fn maybe_skip_if_no_bun(
self,
value: Option<bool>,
) -> BunTsCompileBuilder<SetSkipIfNoBun<S>>where
S::SkipIfNoBun: IsUnset,
Optional (Some / Option setters). Default: false.
If true, the normal bun build ... command will not execute if bun is not installed, but will instead print a warning.
This may be useful in CI environment where bun is not installed (and is not needed), since the output was created during
development and is already in source.