[−][src]Enum wasm_pack::command::Command
The various kinds of commands that wasm-pack
can execute.
Variants
Build(BuildOptions)
ποΈ build your npm package!
π± create a tar of your npm package but don't publish!
Fields of Pack
π create a new project with a template
Fields of Generate
name: String
The name of the project
template: String
The URL to the template
mode: InstallMode
Should we install or check the presence of binary tools. [possible values: no-install, normal, force]
π pack up your npm package and publish!
Fields of Publish
target: String
Sets the target environment. [possible values: bundler, nodejs, web, no-modules]
access: Option<Access>
The access level for the package to be published
tag: Option<String>
The distribution tag being used for publishing. See https://docs.npmjs.com/cli/dist-tag
path: Option<PathBuf>
The path to the Rust crate. If not set, searches up the path from the current dirctory.
π€ Add an npm registry user account! (aliases: adduser, add-user)
Fields of Login
registry: Option<String>
Default: 'https://registry.npmjs.org/'. The base URL of the npm package registry. If scope is also specified, this registry will only be used for packages with that scope. scope defaults to the scope of the project directory you're currently in, if any.
scope: Option<String>
Default: none. If specified, the user and login credentials given will be associated with the specified scope.
always_auth: bool
If specified, save configuration indicating that all requests to the given registry should include authorization information. Useful for private registries. Can be used with --registry and / or --scope
auth_type: Option<String>
Default: 'legacy'. Type: 'legacy', 'sso', 'saml', 'oauth'. What authentication strategy to use with adduser/login. Some npm registries (for example, npmE) might support alternative auth strategies besides classic username/password entry in legacy npm.
Test(TestOptions)
π©βπ¬ test your wasm!
Trait Implementations
impl Debug for Command
[src]
impl StructOpt for Command
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches) -> Self
[src]
fn from_args() -> Self
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,