Ashley Williams
66ffe1df96
fix(style): appease cargo fmt
7 years ago
Ashley Williams
d3f8264ef7
feat(buildmode): allow --mode force to skip rustc check
7 years ago
Ashley Williams
3856db20b9
fix(style): appease cargo fmt
7 years ago
Alex Crichton
9b24dcb259
Execute `cargo metadata` at most once
...
This can be somewhat expensive, so make sure we don't have to chew
through too much!
7 years ago
Alex Crichton
3d1f528fc9
Make tests more future-proof with wasm-bindgen
...
This way when future wasm-bindgen version are published the tests will
continue working!
7 years ago
data-pup
dd87211323
feat(lockfiles): Use `Cargo.lock` to identify wasm-bindgen versions
...
This lets us leverage `cargo` for semver finding and then ensure that we get the
exact same version of the CLI that cargo selected. It also lets us support fuzzy
dependencies like "0.2" instead of exact dependencies like "0.2.21" again.
7 years ago
Ashley Williams
286bed9c27
test(no-modules): no-modules works
7 years ago
Nick Fitzgerald
fa61f90909
tests: Make tests run faster by using Fixture builders
...
Instead of copying directories, just build the fixtures directly in the
temporary directory.
7 years ago
Ashley Williams
069f7ede2e
fix(manifest:esm): snakecase to remove warning, test for sideeffects field
7 years ago
Ashley Williams
354f038a1a
fix(style): remove printlns and appease cargo fmt
7 years ago
Ashley Williams
fc7c2d1593
test(manifest): update tests to reflect new pkgjsons
7 years ago
Nick Fitzgerald
577d1b33e6
feature(test): Add a `wasm-pack test` subcommand
...
This uses `wasm-bindgen-test` under the hood.
Fixes #248
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
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
16acfd38c3
tests: Only invoke `copy_dir` once at a time
...
I don't understand why at all, but doing many `copy_dir`s at once makes my whole
machine freeze up.
7 years ago
Nick Fitzgerald
b480674df4
fix: Handle both underscores and hypthens as separators in "wasm-bindgen" dependencies
7 years ago
Nick Fitzgerald
7fff2b6a15
Better error message when running wasm-pack in a non-crate directory
7 years ago
Nick Fitzgerald
e2e3e49f50
test: Add a failing test case for #242
7 years ago
csmoe
15fdec2c0b
Split fixture, rename readme to file
7 years ago
csmoe
bd3b5177a9
Split utils into submods
7 years ago
csmoe
022b787a2f
cmd(init/build): deprecate init
7 years ago
Nick Fitzgerald
61f1abbc58
tests: add extended logging and assertions to readme tests
7 years ago
Nick Fitzgerald
50eaa8c04d
tests: Use the `tempfile` crate instead of the deprecated `tempdir`
...
The `tempdir` crate is deprecated and its functionality has been folded into the
`tempfile` crate.
7 years ago
Nick Fitzgerald
ccd8edbae1
tests: Copy fixtures into unique temporary directories
...
If a test is going to do a potentially destructive operation, instead of
mutating shared fixtures, it should copy the fixture to its own unique directory
and then mutate that copy (doesn't this sound like Rust's borrowing and
ownership rules?! ^.^)
7 years ago
Ashley Williams
ef82d66cb2
fix(tests): remove (now)unecessary feature flags
7 years ago
Ashley Williams
58eaed1550
fix(depcheck): add failing test to repro bug
7 years ago
Ashley Williams
20d7526a90
fix(tests): udpate fixtures for new rust feature flags
7 years ago
Mackiovello
1067f215be
Use PathBuf instead of String to handle paths
...
For #213
7 years ago
Ashley Williams
4d5c7b8b3a
fix(style): appease cargo fmt
7 years ago
Ashley Williams
180c2386ad
test(skip_types): check files key for pkgjsons that skip types
7 years ago
Ashley Williams
5004517bf0
fix(files): set files correctly for node and cleanup tests
7 years ago
Ian McIntyre
e4d7048c10
One more rustfmt run!
7 years ago
Ian McIntyre
8eb01dd4a3
Add additional asserts for JS main manifest files
7 years ago
Ian McIntyre
6061eb5595
Run rustfmt
7 years ago
Ian McIntyre
b04c3a8f53
Add additional asserts for package.json files
7 years ago
Ian McIntyre
e9b05b2181
Use sets to compare package.json files content
...
Order doesn't matter!
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
LongYinan
729d543802
fix(mainfest): missing _bg.js file in package.json
7 years ago
Ashley Williams
ca0f469356
refactor(command): modularize command.rs
7 years ago
kohensu
09046aa40b
Add --skip-build flag for init command
...
This flag skips:
adding target
compiling to wasm
installing wasm-bindgen
running wasm-bindgen
7 years ago
Roberto Huertas
92b18f05bb
feat(wasm_bindgen): checks wasm-bindgen declaration in Cargo.toml
7 years ago
Noah Lemen
cad30f42ce
check that crate type includes cdylib
7 years ago
Dan Reeves
953cf738f0
add the typescript definition to the published files
7 years ago
Michael Gattozzi
97966847b4
fix(test): Remove lock/update wasm-bindgen
...
This does a few things, remove Cargo.lock from tracking to make sure
when compiled the newest version is used in a fresh repo. Testing on
one's own will require running an 'rm tests/fixtures/*/Cargo.lock' if
wanting to bump to the newest version of wasm-bindgen. This also sets
all tests to use the latest version of wasm-bindgen in 0.2. This shows
that we support that version (0.2.x) but bumping it to 0.3 means we've
opted for that kind of change, but for now it's not been bumped to that.
7 years ago
OJ Kwon
e6b5ca557f
test(manifest): update test cases
7 years ago
Ashley Williams
7da29b27b4
fix(bindgen): don't rename to index
7 years ago
Ashley Williams
c915075d0c
feat(tests): update cargo locks
7 years ago
Ashley Williams
9069378407
fix(tests): update for bindgen 0.2
7 years ago