feat: commit console log
This commit is contained in:
1 parent
81b712ec0b
commit
61c06ea598
5 files changed
+26
-22
No files matched your search
+5
-1
@@ -13,7 +13,7 @@ use std::{
|
||||
};
|
||||
use wasm_bindgen_cli_support::Bindgen;
|
||||
|
||||
pub fn build(config: &CrateConfig) -> Result<()> {
|
||||
pub fn build(config: &CrateConfig, quiet: bool) -> Result<()> {
|
||||
// [1] Build the project with cargo, generating a wasm32-unknown-unknown target (is there a more specific, better target to leverage?)
|
||||
// [2] Generate the appropriate build folders
|
||||
// [3] Wasm-bindgen the .wasm fiile, and move it into the {builddir}/modules/xxxx/xxxx_bg.wasm
|
||||
@@ -52,6 +52,10 @@ pub fn build(config: &CrateConfig) -> Result<()> {
|
||||
cmd.arg("--verbose");
|
||||
}
|
||||
|
||||
if quiet {
|
||||
cmd.arg("--quiet");
|
||||
}
|
||||
|
||||
if config.custom_profile.is_some() {
|
||||
let custom_profile = config.custom_profile.as_ref().unwrap();
|
||||
cmd.arg("--profile");
|
||||
|
||||
Reference in new issue
Block a user