-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(generate): s/generate/new, name is postional
- Loading branch information
1 parent
87ba7e0
commit fb9a671
Showing
7 changed files
with
65 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# wasm-pack new | ||
|
||
The `wasm-pack new` command creates a new RustWasm project for you, | ||
using [`cargo-generate`] under the hood. | ||
|
||
It takes 3 parameters, name, template, and mode: | ||
|
||
``` | ||
wasm-pack new <name> --template <template> --mode <normal|noinstall|force> | ||
``` | ||
|
||
The template will default to the `rustwasm/wasm-pack-template`. | ||
|
||
## Name | ||
|
||
The `wasm-pack new` command must be given a name argument, e.g.: | ||
|
||
``` | ||
wasm-pack new myproject | ||
``` | ||
|
||
## Template | ||
|
||
The `wasm-pack new` command can be given an optional template argument, e.g.: | ||
|
||
``` | ||
wasm-pack new myproject --template https://github.com/rustwasm/wasm-pack-template | ||
``` | ||
|
||
The template can be an address to a git repo that contains a [`cargo-generate`] | ||
template. | ||
|
||
[`cargo-generate`]: https://github.com/ashleygwilliams/cargo-generate | ||
|
||
## Mode | ||
|
||
The `wasm-pack new` command can be given an optional mode argument, e.g.: | ||
|
||
``` | ||
wasm-pack new myproject --mode noinstall | ||
``` | ||
|
||
The mode pass can be either "normal", "noinstall", or "force". "normal is passed by | ||
degault. | ||
|
||
`noinstall` means that wasm-pack should not attempt to install any underlying tools. | ||
If a necessary tool cannot be found, the command will error. | ||
|
||
`force` means that wasm-pack should not check the local Rust version. If a local Rust | ||
is an unacceptable Rust version, the command will error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters