fork of https://github.com/rustwasm/wasm-pack for the needs of NextGraph.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
wasm-pack/src/main.rs

21 lines
443 B

extern crate wasm_pack;
extern crate indicatif;
#[macro_use]
extern crate quicli;
use quicli::prelude::*;
use wasm_pack::command::{init, pack, publish, Command};
use wasm_pack::Cli;
main!(|args: Cli, log_level: verbosity| match args.cmd {
Command::Init { path, scope } => {
init(path, scope)?;
}
Command::Pack { path } => {
pack(path)?;
}
Command::Publish { path } => {
publish(path)?;
}
});