Vsevolod Velichko
43488dae1d
add test and some documentation for custom extra options passed to build command
6 years ago
Vsevolod Velichko
669c43d853
add an option to pass an arbitrary set of arguments to cargo build
6 years ago
Dan Wilhelm
5205847d84
docs: Add template deep dive for src/utils.rs
...
Issue #346
6 years ago
Dan Wilhelm
8f22319d6f
docs: Add template deep dive for src/lib.rs
...
Issue #345
6 years ago
Dan Wilhelm
bcc94ace43
docs: Update for template changes, typos
6 years ago
ashley williams
4cd77901c3
Merge pull request #484 from csmoe/valid
...
validate target argument
6 years ago
Nick Fitzgerald
35cabb658f
Merge pull request #487 from danwilhelm/login-issues
...
Login issues
6 years ago
ashley williams
5fafee7657
Merge pull request #485 from fitzgen/minor-docs-stuff
...
Minor docs stuff
6 years ago
Dan Wilhelm
2343e97e1e
login: Send arguments separately to npm
...
All arguments were passed to `arg` inside one string when building a
`Command`. However, using the `arg` function, "only one argument can be
passed per use." This caused all arguments accidentally to be appended
to the registry URL. For example: After a successful login with a
provided `--auth_type`, the success message incorrectly displayed:
"Logged in as asf on https://registry.npmjs.org/%20--auth_type=Basic ."
The space (%20 in hex) was caused by adding a fixed space before each
additional argument.
This commit pushes all arguments onto a `Vec<String>`. Then, the `args`
function adds the arguments separately to the command. This removes the
need to prepend spaces to each argument. Alternatively, `arg` could have
been used throughout to build the command argument-by-argument. However,
using `args` partitions the code more neatly into two distinct sections.
6 years ago
Dan Wilhelm
0147dae9fe
login: Fix empty input prompt
...
Issue #484 .
PR392 inadvertantly replaced the `login` interactive process spawner
with
`child::run`, which is hard-coded to buffer stdout/stderr. This caused
`login` to become essentially unusable; the user could no longer see
interactive input prompts or error messages displayed by `npm adduser`.
The code was not directly reverted because the previous version:
1. Returned Error instead of failure::Error. (Updated to use
`bail!`, which is consistent with `publish`.)
2. Displayed all stderr only upon exit, rather than interactively
displaying it. This led to repeated interactive prompts without
informing the user why. (Updated to use `status()` which inherits
stdin/stdout/stderr by default.)
3. Did not provide logging. (Now duplicates the logging in
`child::run`.)
6 years ago
Nick Fitzgerald
20c488d559
docs: document that the `pkg` directory is gitignored by default
...
Fixes #473
6 years ago
Nick Fitzgerald
ecbdf90adc
docs: delete trailing whitespace
6 years ago
Nick Fitzgerald
212d7727dc
docs: use `wasm-pack build` instead of `wasm-pack init`
...
The latter has been deprecated for some time.
6 years ago
csmoe
065a28f293
check whether correct target arg passed in
6 years ago
ashley williams
8af40029a9
Merge pull request #476 from mstallmo/refactor-license-copy
...
Refactor license copy to remove unwrap()
6 years ago
Mason Stallmo
c99b93498c
Refactor: returns error instead of unwrapping path join
6 years ago
Mason Stallmo
bcdbaab731
Refactor: returns proper error instead of unwrapping during license copy
6 years ago
ashley williams
9675464067
Merge pull request #415 from drager/refactor-binary-installation
...
refactor: Move binary installation to it's own crate
6 years ago
Jesper Håkansson
28f67e7a6e
Merge branch 'master' into refactor-binary-installation
6 years ago
ashley williams
9c01c389a7
Merge pull request #396 from huangjj27/fix-390
...
bugfix(command/build.rs): Cancel Escape
6 years ago
ashley williams
011cca9495
Merge pull request #444 from csmoe/prebuild
...
pre-build before wasm-pack publish
6 years ago
csmoe
93384f572f
select build target
6 years ago
Jesper Håkansson
a2235e5af4
Merge branch 'master' into refactor-binary-installation
6 years ago
ashley williams
cab9e6a545
Merge pull request #454 from RReverser/add-rust-toolchain
...
Add rust-toolchain file set to nightly
6 years ago
Ingvar Stepanyan
99ccb75105
Delete rust-toolchain
6 years ago
ashley williams
0fdfacc2d8
Merge pull request #453 from RReverser/gitignore-pkg-by-default
...
Generate self-.gitignore as part of pkg folder
6 years ago
csmoe
95268cdaf4
add target arg to publish
6 years ago
csmoe
ddd93481c3
prebuild in interactive way
6 years ago
csmoe
d5a7a7beb1
pre-build before wasm-pack publish
6 years ago
ashley williams
8ed6e3dfaf
Merge pull request #446 from drager/catch-types-in-cargo-toml
...
feat: Catch typos in Cargo.toml and warn about them
7 years ago
ashley williams
fa5e39b217
Merge pull request #411 from mstallmo/master
...
Copy license file(s) to out directory
7 years ago
ashley williams
aa4a22a90d
Merge pull request #467 from Siilwyn/patch-1
...
Fix link to manual setup instructions from getting started
7 years ago
Selwyn
2b30ca8e13
Fix link to manual setup instructions from getting started
7 years ago
ashley williams
b6eb9af729
Merge pull request #450 from srijs/update/zip-0.5
...
update zip to 0.5.0
7 years ago
daubaris
ee3857d436
refactoring mod
7 years ago
Ingvar Stepanyan
87b4c5c7b1
Add rust-toolchain file set to nightly
...
This allows new contributors to avoid manually running `rustup override set nightly`.
7 years ago
Ingvar Stepanyan
d788b80583
Generate self-.gitignore as part of pkg folder
7 years ago
Pierre-Étienne Meunier
b92a3366eb
Rustfmt
7 years ago
Pierre-Étienne Meunier
30d9e2bd07
Fixing wasm-pack on non-rustup setups
7 years ago
Sam Rijs
b567fc0f88
update zip to 0.5.0
7 years ago
daubaris
ed074e7d72
Merge pull request #1 from daubaris/wasm-pack-version
...
Addition of stamp file and additional thread for running version checks
7 years ago
daubaris
bbc759369f
nightly fmt
7 years ago
daubaris
75b85e58c7
addition of stamp file and additional thread for running version checks
7 years ago
Mason Stallmo
272ef97bef
Refactor: make `crate_license` a method of CrateData.
7 years ago
Mason Stallmo
1c704b7b7c
Reword WTFPL and add punctuation to license not found message.
7 years ago
Mason Stallmo
2d837f795c
Copy license file(s) to out directory
...
Check the Cagro.toml for a license and if one is found glob for LICENSE* files to copy to the out directory
7 years ago
huangjj27
c6894c46f7
bugfix(390): pass the ci
...
in the CI, there is no user. begining with "C:\" is just enough
7 years ago
huangjj27
9feb3a857c
check if the log missing things
7 years ago
huangjj27
06a949b9ed
Capital disk Url
7 years ago
huangjj27
837393b5fc
trim head
7 years ago