Ashley Williams
58eaed1550
fix(depcheck): add failing test to repro bug
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
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
6a2a20dd07
feat(test): clean up tests, test new main/files
7 years ago
Ashley Williams
e374314a32
feat(manifest): add main entry
7 years ago
Andy Bell
07d9001b59
feat(refactor): Furthers previous refactor, by moving
...
Functions to new module. Tidies up reused code into
private function.
Throws warning due to line 11 in command.rs - unused import
Import is used for the StructOpt derive macro, so is needed
but still throws this warning
7 years ago
Michael Gattozzi
9ea956f216
feat(flag): add scope flag to init subcommand
...
npm allows scopes to avoid name collisions. In order to support this
optional feature a flag has been added so that the name in the generated
package.json is correct.
Example for a package named wasm-add:
```bash
wasm-pack init
```
package.json
```json
{
"name": "wasm-add"
}
```
```bash
wasm-pack init --scope mgattozzi
```
package.json
```json
{
"name": "@mgattozzi/wasm-add"
}
```
7 years ago
steveklabnik
a891bab6c7
Improve test layout
...
I suggested this layout, but since Rust 1.22, this layout now works!
7 years ago