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
1c26742d3c
clean up imports
7 years ago
Ashley Williams
fde8025f8b
fix(readme): clear double print of readme step
7 years ago
Ashley Williams
64d7a2c828
fix(output): refactor
7 years ago
Ashley Williams
8f25bf1fea
feat(readme): warn on no readme
7 years ago
Ashley Williams
c8fb09a24c
fix(progressbar): refactor msg into pb fn
7 years ago
Ashley Williams
ac9f5f7994
fix(style): improve output messaging
7 years ago
Sendil Kumar
0518f7ba5a
rename variables
7 years ago
Ashley Williams
7260199a0f
fix(use): remove unused use statement
7 years ago
Ashley Williams
edb8e1ef72
feat(lib): reorg manifest work into mod
7 years ago
Ashley Williams
a5a4f8b324
feat(lib): reorg build, bindgen, readme imports
7 years ago
Ashley Williams
f9d65a419c
feat(readme): copy from crate
7 years ago
Sendil Kumar
d66460f67d
fix : file extension to have bg
7 years ago
Ashley Williams
d3b51370e5
feat(msg): mark pack and publish as not implemented
7 years ago
Ashley Williams
ae4d8e1e90
feat(pkg): add js and wasm to files attr in pkg.json
7 years ago
Ashley Williams
2cd41d6d7e
feat(style): appease cargo fmt
7 years ago
Ashley Williams
c5780a92e8
feat(pkg): create pkg dir under provided path if avail
7 years ago
Ashley Williams
d5191686e3
feat(log): improve logging + messages
7 years ago
Ashley Williams
e706a41632
fix(style): appease cargo fmt
7 years ago
Ashley Williams
786d8cc1a2
feat(manifest): log what cargo.toml we're cooking with
7 years ago
Ashley Williams
3dd59e2a8b
feat(pkg): impl get_crate_name for bindgen step
7 years ago
Ashley Williams
d552594eb3
fix(style): appease cargo fmt
7 years ago
Ashley Williams
e67f835867
feat(build): integrate cargo build and wasm-bindgen steps
7 years ago
Ashley Williams
83e44c19b8
feat(args): take a path to a crate as an arg to init
7 years ago
Yoshua Wuyts
5c6d1dc9df
document write_package_json
7 years ago
Yoshua Wuyts
f1a4504a38
fix typo in Pack cmd
7 years ago
Ashley Williams
c9d9ef1776
feat(pkg): support license, repo
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
3c34b27d09
feat: split into lib, test
7 years ago
Ashley Williams
9f78b809e1
feat(cmds): add subcommands init, pack, publish
7 years ago
Ashley Williams
a2369830c7
feat: initial scaffolding
7 years ago