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
5ecd6365f8
feat(test): test readme is a copy
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
746a249599
feat(test): test the readme copying
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
4c54996abd
feat(test): use new rustfmt-preview
7 years ago
Ashley Williams
df1fa2b40d
feat(test): add travis and cargo fmt script
7 years ago
Ashley Williams
3c34b27d09
feat: split into lib, test
7 years ago