make backend and frontend builds happen in parallel
This commit is contained in:
1 parent
c48788270e
commit
8b125231f0
12 files changed
+58
-31
No files matched your search
@@ -15,8 +15,11 @@ pub struct Build {
|
||||
}
|
||||
|
||||
impl Build {
|
||||
pub fn build(self, bin: Option<PathBuf>) -> Result<()> {
|
||||
pub fn build(self, bin: Option<PathBuf>, target_dir: Option<&std::path::Path>) -> Result<()> {
|
||||
let mut crate_config = crate::CrateConfig::new(bin)?;
|
||||
if let Some(target_dir) = target_dir {
|
||||
crate_config.target_dir = target_dir.to_path_buf();
|
||||
}
|
||||
|
||||
// change the release state.
|
||||
crate_config.with_release(self.build.release);
|
||||
|
||||
@@ -112,7 +112,7 @@ pub struct ConfigOptsServe {
|
||||
#[clap(long)]
|
||||
pub profile: Option<String>,
|
||||
|
||||
/// Build platform: support Web & Desktop [default: "default_platform"]
|
||||
/// Build platform: support Web, Desktop, and Fullstack [default: "default_platform"]
|
||||
#[clap(long, value_enum)]
|
||||
pub platform: Option<Platform>,
|
||||
|
||||
|
||||
Reference in new issue
Block a user