Merge branch 'master' into master

master
ashley williams 4 years ago committed by GitHub
commit c2d5d5adb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1707
      Cargo.lock
  2. 1
      Cargo.toml
  3. 4
      README.md
  4. 2
      docs/src/commands/new.md
  5. 5
      docs/src/tutorials/npm-browser-packages/using-your-library.md

1707
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -15,7 +15,6 @@ cargo_metadata = "0.8.0"
console = "0.6.1"
dialoguer = "0.3.0"
curl = "0.4.13"
dirs = "1.0.4"
env_logger = { version = "0.5.13", default-features = false }
failure = "0.1.2"
human-panic = "1.0.1"

@ -29,12 +29,10 @@ This tool seeks to be a one-stop shop for building and working with rust-
generated WebAssembly that you would like to interop with JavaScript, in the
browser or with Node.js. `wasm-pack` helps you build rust-generated
WebAssembly packages that you could publish to the npm registry, or otherwise use
alongside any javascript packages in workflows that you already use, such as [webpack]
or [greenkeeper].
alongside any javascript packages in workflows that you already use, such as [webpack].
[bundler-support]: https://github.com/rustwasm/team/blob/master/goals/bundler-integration.md#details
[webpack]: https://webpack.js.org/
[greenkeeper]: https://greenkeeper.io/
This project is a part of the [rust-wasm] group. You can find more info by
visiting that repo!

@ -9,7 +9,7 @@ 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`.
The default template is [`rustwasm/wasm-pack-template`](https://github.com/rustwasm/wasm-pack-template).
## Name

@ -14,10 +14,11 @@ project:
[`create-wasm-app`]: https://github.com/rustwasm/create-wasm-app
```
npm init wasm-app
npm init wasm-app my-new-wasm-app
```
This tool will ask you for the name of a project, and then create a directory with that name.
Instead of `my-new-wasm-app` you can choose a different project name.
The tool will create a directory with that name.
If we look in that directory, we'll see the following:

Loading…
Cancel
Save