Matthias Geihs
9069ef4c85
Add option: omit_default_module_path
2 years ago
Benedikt Werner
da3db25e2c
Update npm installation link
2 years ago
printfn
ce3d172769
Fix SPDX license syntax
2 years ago
Julian Rosse
4e0fd291e5
small fixes
3 years ago
Dallas
6c1fc85954
Update non-rustup-setups.md
3 years ago
Markus Stange
35bd2bac12
Replace two mentions of `wasm-pack init` with `wasm-pack build` in the docs.
4 years ago
Fichtelcoder
a8da03cf01
Fix #1059 .
...
This is the correct way to pass extra arguments, such as features to cargo.
4 years ago
Jared L
9edf766959
fix(typo): considerations.md
4 years ago
Frederic Kettelhoit
b242938066
Fix example commands in docs broken by PR #851
4 years ago
iuslkae
0fff34cbb1
feat(docs): Under prerequisites, considerations for nodejs
4 years ago
Gunnlaugur Thor Briem
a763657faa
cleanup: remove outdated TOC heading
...
That section is gone
4 years ago
Martijn Swaagman
bc612d970a
[doc] fix toc links
4 years ago
pione30
13c2fc64b3
fix(docs): remove duplicated "is"
4 years ago
Philip Crotwell
853e9e95f5
remove greenkeeper
...
Greenkeeper said goodbye in June 2020, so no longer good to link to as an example.
Alternative would be to link to Snyk instead?
4 years ago
milahu
6ea28810a8
add link to wasm-pack-template
5 years ago
milahu
89ec3a6f4c
fix npm init wasm-app
5 years ago
inokawa
25107caeb2
Fix duplication of lines in docs
5 years ago
Avery Harnish
e8f27f2ba3
Adds error message and docs for failed wasm-opt
5 years ago
Avery Harnish
739d331117
Fix broken link in commands doc
5 years ago
Gerd Jungbluth
6651b8a8e9
fix(docs): remove redundant link
6 years ago
Gerd Jungbluth
9334faa5e3
fix(docs): fix some typos
...
refs #755
6 years ago
Gerd Jungbluth
7d85e13d52
fix(docs): fix broken link and type for "Commands"
...
refs #755
6 years ago
Kelly Thomas Kline
1b844c903c
Update reference to cargo's `--offline` feature
6 years ago
Pauan
a39129ebd0
Adding in docs
6 years ago
Mario Reder
090d90bb76
feat(publish): dist tag option
6 years ago
Ashley Williams
d6baf439b7
feat(command): add generate command
6 years ago
Alex Crichton
82ffe7b879
Only run specific tests during `wasm-pack test`
...
This builds on rustwasm/wasm-bindgen#1465 by ensuring that `wasm-pack
test --node` will now only test node.js tests
6 years ago
Alex Crichton
9b74e43d2d
Add support for automatically executing `wasm-opt`
...
This commit adds support for automatically executing the `wasm-opt`
binary from the [Binaryen project][binaryen]. By default `wasm-pack`
will now, in release and profiling modes, execute `wasm-opt -O` over the
final binary. The goal here is to enable optimizations that further
reduce binary size or improve runtime. In the long run it's expected
that `wasm-opt`'s optimizations may mostly make their way into LLVM, but
it's empirically true today that `wasm-opt` plus LLVM is the best
combination for size and speed today.
A configuration section for `wasm-opt` has been added as [previously
proposed][fitzgen], namely:
```toml
[package.metadata.wasm-pack.profile.release]
wasm-opt = ['-Os']
```
The `wasm-opt` binary is downloaded from Binaryen's [own
releases](https://github.com/webassembly/binaryen/releases ). They're
available for the same platforms that we download predownloaded binaries
for `wasm-bindgen` on. We'll also opportunistically use `wasm-opt` in
`PATH` if it's available. If we're untable to run `wasm-opt`, though, a
warning diagnostic is printed informing such.
Closes #159
[binaryen]: https://github.com/webassembly/binaryen
[fitzgen]: https://github.com/rustwasm/wasm-pack/issues/159#issuecomment-454888890
6 years ago
Jesper Håkansson
eda096e153
doc: Fix broken links
6 years ago
Nick Fitzgerald
d73ab9d143
Update docs/src/tutorials/npm-browser-packages/template-deep-dive/src-lib-rs.md
...
Co-Authored-By: ashleygwilliams <ashley666ashley@gmail.com>
6 years ago
Nick Fitzgerald
3a4b7f08f3
Update docs/src/tutorials/npm-browser-packages/template-deep-dive/cargo-toml.md
...
Co-Authored-By: ashleygwilliams <ashley666ashley@gmail.com>
6 years ago
Ashley Williams
a4c9e2a3cd
feat(doc): add readme to docs landing page
6 years ago
Ashley Williams
49891974a3
fix(docs): landing page with no relative links
6 years ago
Ashley Williams
cd5284b1ec
fix(doc): s/tutorial/tutorials
6 years ago
Ashley Williams
83433ddd38
fix(doc): remove npm link discussion as doc does not exist(yet)
6 years ago
Ashley Williams
305f0513ea
fix(docs): links and update to no cfg_if template
6 years ago
Ashley Williams
2bf330868d
fix(doc): put non rustup conetnt in the right spot
6 years ago
ibaryshnikov
92b80f6395
updated docs title for --out-name flag
6 years ago
Jesper Håkansson
12fcdad8b4
fix: Improve error message when wasm32-unknown-unknown is missing
...
doc: Write about adding wasm32-unknown-unknown manually
6 years ago
Jacob
c8f03591ee
Fixed a single typo
6 years ago
ibaryshnikov
00a6ec8e94
updated docs for --out-name flag
6 years ago
ibaryshnikov
7a96d8d754
initial support for --out-name added
6 years ago
Ashley Williams
21ebfb9dd0
doc(build): add entry for --out-dir
6 years ago
Alex Crichton
688c9b19a1
Smorgasboard of doc improvements
...
* Add deep dive documentation for `tests/web.rs` of the `wasm-pack-template`
* Add docs for testing a project in addition to building
* Touch up other documentation int he deep dive and setup
* Fix a few dead links and moved pages and such
6 years ago
Ashley Williams
54e974ee60
fix(docs): address comments
6 years ago
Ashley Williams
1ebda9d1b8
fix(docs): heavy cleanup and reorg
6 years ago
DebugSteven
1695275877
feat(docs): npm start & npm run build in root directory
6 years ago
DebugSteven
d4019fe82c
documentation for the generated lib.rs file in the rust-webpack template
6 years ago
DebugSteven
8a790c2ad1
feat(docs): discuss web-sys and dependencies and features from other the existing template deep dive
6 years ago
DebugSteven
3e77644235
feat(docs): start filling in docs for rust webpack template
...
Co-authored-by: Patrick McCarver <patrick@merklebros.com>
6 years ago