Enum wasm_pack::command::Command[][src]

pub enum Command {
    Init {
        path: Option<String>,
        scope: Option<String>,
        mode: String,
        disable_dts: bool,
        target: String,
        debug: bool,
    },
    Pack {
        path: Option<String>,
    },
    Publish {
        path: Option<String>,
    },
    Login {
        registry: Option<String>,
        scope: Option<String>,
        always_auth: bool,
        auth_type: Option<String>,
    },
}

The various kinds of commands that wasm-pack can execute.

Variants

🐣 initialize a package.json based on your compiled wasm!

Fields of Init

The path to the Rust crate.

The npm scope to use in package.json, if any.

Sets steps to be run. [possible values: no-build, no-install, normal]

By default a *.d.ts file is generated for the generated JS file, but this flag will disable generating this TypeScript file.

Sets the target environment. [possible values: browser, nodejs]

Build without --release.

🍱 create a tar of your npm package but don't publish!

Fields of Pack

The path to the Rust crate.

🎆 pack up your npm package and publish!

Fields of Publish

The path to the Rust crate.

👤 Add a registry user account! (aliases: adduser, add-user)

Fields of Login

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.

Default: none. If specified, the user and login credentials given will be associated with the specified scope.

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

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.

Trait Implementations

impl Debug for Command
[src]

Formats the value using the given formatter. Read more

impl StructOpt for Command
[src]

Returns the corresponding clap::App.

Creates the struct from clap::ArgMatches. It cannot fail with a parameter generated by clap by construction. Read more

Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

impl Send for Command

impl Sync for Command