Tyler Wilcock
45136e3642
Provide single quote separators around missing Cargo.toml field to improve readability
7 years ago
Alex Crichton
0381aa627a
Add listing for precompiled Windows binaries
...
They're fixed on wasm-bindgen's CI, so let's download/install them!
7 years ago
Mason Stallmo
8a0549f243
add support for otp when publishing to npm
7 years ago
Mackenzie Clark
40b0291715
add out dir cli parameter
7 years ago
Nick Fitzgerald
7ab7a3f2cb
feature: Use pre-built `wasm-bindgen` CLIs from Github releases
...
Implements downloading tarballs from `wasm-bindgen`'s GitHub releases page and
using them if the current target has pre-built binaries.
7 years ago
Nick Fitzgerald
b480674df4
fix: Handle both underscores and hypthens as separators in "wasm-bindgen" dependencies
7 years ago
Nick Fitzgerald
86a7eee755
tidy: Don't use double negatives
7 years ago
Nick Fitzgerald
73d4adbc12
tidy: Use `Fail::iter_causes` instead of `e.causes().skip(1)`
...
The `iter_causes` method does the `skip(1)` for us and `e.causes()` is now
deprecated. Unfortunately, `Fail::iter_causes` is only implemented on the
trait *object*, not a provided method for all implementations of the trait. This
means that calling it is slightly less ergonomic...
7 years ago
data-pup
8301613278
Coordinate wasm-bindgen versions.
7 years ago
Erick Tryzelaar
5df8749154
Skip serializing empty or None values to package.json
7 years ago
Nick Fitzgerald
a32b03d7a1
rustfmt: Re run `cargo fmt` for new nightly
7 years ago
Nick Fitzgerald
7fff2b6a15
Better error message when running wasm-pack in a non-crate directory
7 years ago
Nick Fitzgerald
ed35e497c7
Propagate missing `Cargo.toml` errors instead of unwrapping them
...
This allows them to be reported to the user, rather than panic and dump a
human-error failure.
Fixes #242
7 years ago
Ashley Williams
87d1b70593
fix(style): appease cargo fmt
7 years ago
csmoe
022b787a2f
cmd(init/build): deprecate init
7 years ago
csmoe
ddab496f51
cmd(init/build): rebase
7 years ago
csmoe
0a616624aa
cmd(init/build): cargo clippy
7 years ago
csmoe
edbd6f4118
cmd(init/build): cargo fmt
7 years ago
csmoe
7cbfc2e893
cmd(init/build): split init and build
7 years ago
Nick Fitzgerald
abfe66c180
Assert preconditions for README copying in `readme::copy_from_crate`
...
The implementation relies on the crate directory existing, and the `pkg`
directory in the crate directory existing as well.
7 years ago
Ashley Williams
5def20ff72
fix(depcheck): check for simple and detailed dep reps
7 years ago
Mackiovello
37fb0bc07e
Consistently use pretty-print
7 years ago
Mackiovello
017d241b86
Remove extra quotation mark
7 years ago
Mackiovello
1067f215be
Use PathBuf instead of String to handle paths
...
For #213
7 years ago
Ashley Williams
37cd63561d
fix(typo): s/pgk/pkg
7 years ago
Mackiovello
88fdbc5d39
Add documentation for pack and publish
7 years ago
Nick Fitzgerald
805b796cf9
Deny missing documentation
...
And add all the missing doc comments.
7 years ago
Ashley Williams
4d5c7b8b3a
fix(style): appease cargo fmt
7 years ago
Ashley Williams
5004517bf0
fix(files): set files correctly for node and cleanup tests
7 years ago
Ian McIntyre
bf222549af
Include the wasm-bindgen JS bridge file in files
7 years ago
ashley williams
35fc9e048b
Revert "fix(mainfest): missing _bg.js file in package.json"
7 years ago
Mackiovello
ce77e5c6c5
Fix npm-pack command to use correct path
7 years ago
Mackiovello
e6cd7bb355
Simplify iteration even more
7 years ago
Mackiovello
ac34e7bba1
Write as more ideomatic rust
7 years ago
Mackiovello
63c91caeae
Check child directories instead of parent directory
7 years ago
Mackiovello
a67762a9e5
Use 'find_pkg_directory' for pack
7 years ago
Mackiovello
b57d68f97a
Search for path in entered directory and the parent of entered
...
This lets us have backwards compatibility while improving the user experience.
7 years ago
Mackiovello
8efabfa3af
Make error more specific
7 years ago
Mackiovello
ec17b8aa7e
Use custom error message for publish
7 years ago
Mackiovello
035bcbe688
Simplify match expression
7 years ago
Mackiovello
840c7bd03c
Return custom error if pkg directory is not found
7 years ago
LongYinan
729d543802
fix(mainfest): missing _bg.js file in package.json
7 years ago
soryrawyer
072bbc67da
Remove result prefix and std import, now that quicli is no longer a dependency
7 years ago
Ashley Williams
78527b7a7e
fix(style): appease cargo fmt
7 years ago
Michael Gattozzi
f2fbe264d4
fix(no-install): cratename should not be an option
7 years ago
Michael Gerhaeuser
62423e33d4
Replace std::sync::RwLock with parking_lot
...
The standard library version of an `RwLock` may get poisoned if a thread
panics that holds a write lock. The `RwLock` from parking_lot [1] does
not get poisoned it instead released the lock on a panic. This allows us
to simplify the `ProgressOutput` API since it no longer returns any
errors. No more panics can occur on `ProgressOutput::drop()`. The
`Error` enum can thus be simplified as well because there is no need to
convert `PoisonErrors` anymore.
[1] https://github.com/Amanieu/parking_lot
7 years ago
Ashley Williams
44f26dfcb2
feat(init): no install flag
7 years ago
Ashley Williams
ca0f469356
refactor(command): modularize command.rs
7 years ago
Ashley Williams
d09db16623
fix(crate_config): combine crate type and dep check, emit step
7 years ago
Ashley Williams
c190d5d444
fix(nobuild): don't check dependency
7 years ago