csmoe
93384f572f
select build target
6 years ago
csmoe
95268cdaf4
add target arg to publish
6 years ago
csmoe
ddd93481c3
prebuild in interactive way
6 years ago
csmoe
d5a7a7beb1
pre-build before wasm-pack publish
6 years ago
ashley williams
8ed6e3dfaf
Merge pull request #446 from drager/catch-types-in-cargo-toml
...
feat: Catch typos in Cargo.toml and warn about them
6 years ago
ashley williams
fa5e39b217
Merge pull request #411 from mstallmo/master
...
Copy license file(s) to out directory
6 years ago
ashley williams
aa4a22a90d
Merge pull request #467 from Siilwyn/patch-1
...
Fix link to manual setup instructions from getting started
6 years ago
Selwyn
2b30ca8e13
Fix link to manual setup instructions from getting started
6 years ago
ashley williams
b6eb9af729
Merge pull request #450 from srijs/update/zip-0.5
...
update zip to 0.5.0
7 years ago
Sam Rijs
b567fc0f88
update zip to 0.5.0
7 years ago
Mason Stallmo
272ef97bef
Refactor: make `crate_license` a method of CrateData.
7 years ago
Mason Stallmo
1c704b7b7c
Reword WTFPL and add punctuation to license not found message.
7 years ago
Mason Stallmo
2d837f795c
Copy license file(s) to out directory
...
Check the Cagro.toml for a license and if one is found glob for LICENSE* files to copy to the out directory
7 years ago
Jesper Håkansson
07d813f606
fix: Print the possible misspelled key so the user doesnt have to guess
7 years ago
Jesper Håkansson
8dd6fe4453
chore: Restore unwanted reordering
7 years ago
Jesper Håkansson
c39410c81e
feat: Use levenshtein function to warn about wasm-pack typos
7 years ago
Jesper Håkansson
203cf6996c
test: Add test case for `parse_crate_data`
7 years ago
Jesper Håkansson
6894e63110
chore: Fix typo
7 years ago
Jesper Håkansson
2ed3d01541
refactor: Move parsing and warning code into two new functions
7 years ago
Jesper Håkansson
59039e4118
feat: Catch types in Cargo.toml and warn about them
7 years ago
Nick Fitzgerald
51e6351c28
Merge pull request #440 from fitzgen/build-profiles-toml-config
...
Add three build profiles and infrastructure for their toml config
7 years ago
Nick Fitzgerald
64d52d8735
Add three build profiles and infrastructure for their toml configuration
...
Fixes #153
Fixes #160
7 years ago
Alex Crichton
91e3293529
Merge pull request #389 from xmclark/fix-canonical-paths-on-windows
...
fix canonical paths windows
7 years ago
Mackenzie Clark
b3d62e1649
do not canonicalize the crate path
7 years ago
Nick Fitzgerald
b107874817
Merge pull request #442 from alexcrichton/cdylib
...
Don't require cdylib crate-type for testing
7 years ago
Alex Crichton
fe48dbd15a
Don't require cdylib crate-type for testing
...
The `cdylib` crate type output isn't actually necessary for the
`wasm-pack test` stage because `wasm-bindgen` isn't run over a wasm
file. This commit removes the checks during `wasm-pack test` that the
`cdylib` crate type is configured.
7 years ago
Nick Fitzgerald
9e1e9b0cb3
Merge pull request #439 from fitzgen/rename-debug-to-dev
...
Rename `--debug` to `--dev` to match `cargo`
7 years ago
Alex Crichton
401f114991
Merge pull request #436 from alexcrichton/error
...
Replace internal `Error` with `failure::Error`
7 years ago
Alex Crichton
11beac3736
Replace internal `Error` with `failure::Error`
...
This commit removes the internal `Error` type in favor of exclusively
using the `failure::Error` type, simplifying error construction in a
number of locations and reducing the number of error types in play.
7 years ago
Nick Fitzgerald
3575a0a5fc
Rename `--debug` to `--dev` to match `cargo`
...
See #437
7 years ago
Alex Crichton
7796ecb311
Merge pull request #435 from alexcrichton/handle-rename
...
Fix wasm-bindgen if lib is renamed via `lib.name`
7 years ago
Alex Crichton
35fe250d09
Fix wasm-bindgen if lib is renamed via `lib.name`
...
This commit fixes an issue where if a library is renamed via the `name`
key in the `[lib]` section of the manifest then `wasm-pack` would try to
generate bindings for an noexistent wasm-file, generating an error.
The fix was to internally use `cargo_metadata` more aggressively and
move around where this data is generated. This ended up refactoring a
few locations, but this should also bring improved error messages for
`cargo metadata` as well as caching the resulting data more aggressively
to avoid recalculating it too much.
Closes #339
7 years ago
Alex Crichton
e8b3075dae
Merge pull request #430 from fitzgen/build-crate-in-a-workspace
...
Build crate in a workspace
7 years ago
Nick Fitzgerald
8abedfebbe
Run `cargo fmt`
7 years ago
Nick Fitzgerald
e7145e585f
Add a test for building a wasm crate in a workspace
...
Fixes #252
7 years ago
Nick Fitzgerald
0bb4fc4352
Merge pull request #433 from fitzgen/update-mdbook
...
deps: Update mdbook version we use to build the book
7 years ago
Nick Fitzgerald
400cfba7c1
Merge pull request #431 from fitzgen/stop-reading-cargo-toml-many-times
...
Stop reading cargo toml many times
7 years ago
Nick Fitzgerald
91e3de352b
Merge pull request #432 from fitzgen/name-field-for-ci-jobs
...
CI: Use `name` field for Travis CI jobs
7 years ago
Nick Fitzgerald
4d3c97de05
deps: Update mdbook version we use to build the book
7 years ago
Nick Fitzgerald
098eb33cea
Run cargo fmt
7 years ago
Nick Fitzgerald
f63abe0c8a
CI: Also log the rustfmt version
7 years ago
Nick Fitzgerald
8a59cf2956
CI: Use `name` field for Travis CI jobs
7 years ago
Nick Fitzgerald
6d3e9dfebb
Refactor: make `check_crate_config` a method of `CargoManifest`
7 years ago
Nick Fitzgerald
25490301e0
Refactor: make `get_crate_name` a method of `CargoManifest`
7 years ago
Nick Fitzgerald
0e09b3fd3c
Refactor: make `write_package_json` a method on `CargoManifest`
7 years ago
Nick Fitzgerald
511e6c29a0
Refactor: replace `manifest::read_cargo_toml` with a constructor
7 years ago
Nick Fitzgerald
4e6abcfd1d
Only read the `Cargo.toml` manifest once
...
And then keep reusing what we read, instead of re-reading it again.
Fixes #25
7 years ago
Nick Fitzgerald
dac12d3e34
Merge pull request #426 from alexcrichton/home-dir-cache
...
Use a global cache for all downloaded binaries
7 years ago
Alex Crichton
f986edf4c7
Move test synchronization to tests, not in `wasm-pack`
...
In `wasm-pack` it can't do cross-process synchronization, and in tests
there's now multiple processes which need to be synchronized.
7 years ago
Alex Crichton
110d930351
Assert not only an error happens but the right error happens
...
Add message assertions to the various assertions in `test.rs`
7 years ago