Andy Bell
b1741bb982
feat(refactor): Move all functionality from main.rs
...
to lib.rs to hopefully allow for better use of
lazy_static as discussed in issue #25
8 years ago
Michael Gattozzi
aa629b320c
feat(pbar): Add global progress bar to write to
...
This commit allows us to have a global progress bar to write data to
giving us the following benefits:
- Consistent ways to handle types of messages such as errors and
warnings
- Easy interface to add progress bars of various types
- Easy to maintain, add new types of bars, or more while encapsulating
the login in a single module
8 years ago
Michael Gattozzi
57e461eaab
feat(warn): warn on all missing fields for a pkg
...
Because the toml error only spits out the error for the first thing it
runs into it doesn't parse all of the missing fields. We first serialize
the data to a generic toml type to check this ourselves. If everything
is there we serialize directly to the type we expected. Otherwise we
throw an error with all the fields that are missing.
8 years ago
andy-bell
f77eddd498
change references to wasm-bindgen from pointing at git repo to pointing at crates.io
8 years ago
Ashley Williams
4243f75b56
feat(style): appease cargo fmt
8 years ago
Yoshua Wuyts
d6671f3307
pretty-print package.json
8 years ago
Yoshua Wuyts
e886277031
pick up collaborators from npm
8 years ago
Yoshua Wuyts
75b0480daa
rustfmt reorder
8 years ago
Jamie Kyle
27d6919eea
init pack and publish
8 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"
}
```
8 years ago
steveklabnik
1c26742d3c
clean up imports
8 years ago
Ashley Williams
fde8025f8b
fix(readme): clear double print of readme step
8 years ago
Ashley Williams
64d7a2c828
fix(output): refactor
8 years ago
Ashley Williams
8f25bf1fea
feat(readme): warn on no readme
8 years ago
Ashley Williams
c8fb09a24c
fix(progressbar): refactor msg into pb fn
8 years ago
Ashley Williams
ac9f5f7994
fix(style): improve output messaging
8 years ago
Sendil Kumar
0518f7ba5a
rename variables
8 years ago
Ashley Williams
7260199a0f
fix(use): remove unused use statement
8 years ago
Ashley Williams
edb8e1ef72
feat(lib): reorg manifest work into mod
8 years ago
Ashley Williams
a5a4f8b324
feat(lib): reorg build, bindgen, readme imports
8 years ago
Ashley Williams
f9d65a419c
feat(readme): copy from crate
8 years ago
Sendil Kumar
d66460f67d
fix : file extension to have bg
8 years ago
Ashley Williams
d3b51370e5
feat(msg): mark pack and publish as not implemented
8 years ago
Ashley Williams
ae4d8e1e90
feat(pkg): add js and wasm to files attr in pkg.json
8 years ago
Ashley Williams
2cd41d6d7e
feat(style): appease cargo fmt
8 years ago
Ashley Williams
c5780a92e8
feat(pkg): create pkg dir under provided path if avail
8 years ago
Ashley Williams
d5191686e3
feat(log): improve logging + messages
8 years ago
Ashley Williams
e706a41632
fix(style): appease cargo fmt
8 years ago
Ashley Williams
786d8cc1a2
feat(manifest): log what cargo.toml we're cooking with
8 years ago
Ashley Williams
3dd59e2a8b
feat(pkg): impl get_crate_name for bindgen step
8 years ago
Ashley Williams
d552594eb3
fix(style): appease cargo fmt
8 years ago
Ashley Williams
e67f835867
feat(build): integrate cargo build and wasm-bindgen steps
8 years ago
Ashley Williams
83e44c19b8
feat(args): take a path to a crate as an arg to init
8 years ago
Yoshua Wuyts
5c6d1dc9df
document write_package_json
8 years ago
Yoshua Wuyts
f1a4504a38
fix typo in Pack cmd
8 years ago
Ashley Williams
c9d9ef1776
feat(pkg): support license, repo
8 years ago
Ashley Williams
fed9dbff6c
feat(pkg): do it in a dir
8 years ago
Ashley Williams
4c54996abd
feat(test): use new rustfmt-preview
8 years ago
Ashley Williams
3c34b27d09
feat: split into lib, test
8 years ago
Ashley Williams
9f78b809e1
feat(cmds): add subcommands init, pack, publish
8 years ago
Ashley Williams
a2369830c7
feat: initial scaffolding
8 years ago