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
steveklabnik
033aaaa19b
Move examples into tests/fixtures
...
These aren't examples in the sense Cargo uses them; they're test
fixtures. As such, let's put them in tests/
Fixes #56
7 years ago
Ashley Williams
de9132e9ca
feat(tests): refactor utils into manifest_utils mod
7 years ago
Ashley Williams
b9df6d60ae
feat(test): test package json values
7 years ago
Ashley Williams
a34bfa4567
fix(tests): refactor paths out to vars
7 years ago
Ashley Williams
289babc084
feat(tests): back out dir diff for now
7 years ago
Ashley Williams
edb8e1ef72
feat(lib): reorg manifest work into mod
7 years ago
Yoshua Wuyts
5f3a704b87
also test provided_path
7 years ago
Yoshua Wuyts
ebdc99b539
add dir_diff test
7 years ago
Ashley Williams
c5780a92e8
feat(pkg): create pkg dir under provided path if avail
7 years ago
Ashley Williams
e706a41632
fix(style): appease cargo fmt
7 years ago
Ashley Williams
1c097f03e0
feat(test): test the dir passing
7 years ago
Ashley Williams
a305a4fcce
feat(test): does it get the right crate name?
7 years ago
Ashley Williams
83e44c19b8
feat(args): take a path to a crate as an arg to init
7 years ago
Ashley Williams
fed9dbff6c
feat(pkg): do it in a dir
7 years ago
Ashley Williams
3c34b27d09
feat: split into lib, test
7 years ago