Jordan Harband
7b6e06e556
Add tests for "`nvm use default` on source" behavior.
2014-10-13 23:55:58 -07:00
Jordan Harband
370dfcab7c
Merge pull request #548 from BanzaiMan/ha-bug-npm-update
...
Fix npm update code
2014-10-12 16:35:13 -07:00
Hiro Asari
44d5776110
Fix npm update code
...
https://npmjs.org/install.sh redirects to https://www.npmjs.org/install.sh
so this code would fail if it ever npm was absent when we get here.
2014-10-12 12:28:38 -04:00
Jordan Harband
d49443e1fb
Properly handle nvm_print_implicit_alias splitting in zsh.
...
Hopefully fixes #546 .
2014-10-11 00:41:16 -04:00
Jordan Harband
e99645f402
Don't list uninstalled implicit aliases
2014-10-10 23:46:25 -04:00
Jordan Harband
8f76b35370
Fix `nvm alias` tests to have both stable and unstable mocks.
2014-10-10 23:46:25 -04:00
Jordan Harband
a2633e5980
Fixing "nvm alias" output redirection.
2014-10-09 00:19:14 -07:00
Jordan Harband
6c89e96f67
Ensure that we don't try to uninstall the current version of node in test teardowns.
2014-10-09 00:19:14 -07:00
Jordan Harband
1ee708b79b
Fix an output redirection error.
2014-10-06 16:18:21 -07:00
Jordan Harband
035334fd34
Merge pull request #544 from coreybutler/patch-1
...
Fixed links
2014-10-05 12:02:30 -07:00
Corey Butler
2edc86d574
Fixed links
...
The links were relative to github.com/creationix/nvm/master instead of the intended sites.
2014-10-05 10:15:10 -05:00
Jordan Harband
9d23f609ad
Add note about Windows options. Related to #284 .
2014-10-04 16:42:29 -07:00
Jordan Harband
9d9cfdc2c8
Two spaces after a period is incorrect.
2014-10-04 16:38:56 -07:00
Jordan Harband
1931f7f3f8
Remove '-e' option from installation tests, in favor of explicit failures.
2014-10-03 03:03:48 -07:00
Jordan Harband
2f2c6f0727
Use nvm_alias in nvm_ls.
2014-10-02 17:19:21 -07:00
Jordan Harband
0eef553a88
Use `-f` instead of `-e` in nvm_alias.
2014-10-02 16:06:09 -07:00
Jordan Harband
5135577a3c
Ensure `nvm run` has the same semantics as `nvm use`
2014-10-01 01:46:46 -07:00
Jordan Harband
5bc6e289ce
Silencing nvm_version_path error output in nvm_print_versions
2014-10-01 01:46:35 -07:00
Jordan Harband
d0c6b87b2e
Use `nvm_alias` in `nvm alias`
2014-09-30 00:24:37 -07:00
Jordan Harband
66b214651f
Add `nvm_alias` and unit tests.
2014-09-30 00:23:37 -07:00
Jordan Harband
acfc459bc5
Adding notes to the README for "stable", "unstable", and "system".
2014-09-29 21:43:58 -07:00
Jordan Harband
fc16d20766
Merge pull request #537 from ljharb/add_stable_unstable_aliases
...
Add stable & unstable aliases.
Fixes #336 .
With these changes, the following `nvm` commands will now support "stable" and "unstable" default/implicit aliases:
- `ls`/`list`
- `use`
- `alias`
- `run`
- `exec`
- `uninstall`
- `copy-packages`
For these, "stable" will be the latest even minor version that's locally installed; "unstable" will be the latest odd minor version that's locally installed.
In addition, `nvm ls-remote` and `nvm install` will accept the same implicit aliases, however, these will actually call nodejs.org and output the latest even and odd minor versions available for installation.
`nvm alias stable foo` and `nvm alias unstable foo` will *override* the default/implicit aliases. `nvm alias` output will reflect this by showing "(default)" when the alias is not user-defined.
2014-09-29 21:35:44 -07:00
Jordan Harband
f0471acbf5
v0.17.2
2014-09-29 14:32:44 -07:00
Jordan Harband
fda05fb64b
Remove trailing whitespace.
2014-09-29 14:26:19 -07:00
Jordan Harband
2737a95645
Create nvm_ensure_version_prefix, and make nvm_format_version actually format the version.
2014-09-29 01:36:02 -07:00
Jordan Harband
5706aef3d0
nvm_format_version: add unit tests.
2014-09-29 01:34:50 -07:00
Jordan Harband
4cdf356cdc
Support `nvm ls-remote stable` and `nvm ls-remote unstable`
2014-09-29 00:10:06 -07:00
Jordan Harband
c918e570b6
Add support for `nvm ls stable` and `nvm ls unstable`
2014-09-29 00:09:48 -07:00
Jordan Harband
5dc7af6285
Make `nvm alias` list implicit "stable" and "unstable" aliases when they're not already aliases.
2014-09-29 00:09:17 -07:00
Jordan Harband
f9565ff675
Adding nvm_print_implicit_alias success tests
2014-09-29 00:08:55 -07:00
Jordan Harband
cea0e88489
Adding nvm_print_implicit_alias error tests.
2014-09-28 22:43:46 -07:00
Jordan Harband
5aad535d53
Adding nvm_print_implicit_alias
2014-09-28 22:40:17 -07:00
Jordan Harband
fcdd1ef431
Add nvm_validate_implicit_alias
2014-09-28 22:36:02 -07:00
Jordan Harband
cd4fc8fb2c
Adding unit tests for `nvm_ls_remote`
...
`nvm_download` is stubbed, to avoid making network calls.
2014-09-28 22:00:20 -07:00
Jordan Harband
050a2ee9d3
nvm_remote_version: add unit tests
...
`nvm_ls_remote` is stubbed out to avoid making network calls here.
2014-09-28 18:12:25 -07:00
Jordan Harband
ff92ba7f43
Silence more secondary "deactivate" output.
2014-09-28 16:50:50 -07:00
Jordan Harband
804f2759f8
Ensure that `nvm use` works when .nvmrc contains "system"
2014-09-28 16:50:50 -07:00
Jordan Harband
d5fe657382
Ensure `nvm_rc_version` always modifies $NVM_RC_VERSION, rather than retaining its value from previous runs.
2014-09-28 16:50:50 -07:00
Jordan Harband
3e4613fd66
Don't output `nvm deactivate` output when running `nvm use system`
2014-09-28 16:50:50 -07:00
Jordan Harband
9aec19a692
Update bash completion commands for nvm
2014-09-28 16:50:49 -07:00
Jordan Harband
b707d8b072
nvm_ls: format the version immediately, so that `nvm ls 0.0.1` doesn't return `nvm ls 0.0.10`
2014-09-28 10:14:27 -07:00
Jordan Harband
be605cb12b
Adding a failing test: `nvm ls 0.0.x` includes `v0.0.xy`
2014-09-28 10:18:00 -07:00
Jordan Harband
3c66c20570
Improving "nvm alias" tests to test for all cases.
2014-09-28 10:07:50 -07:00
Jordan Harband
59bfdb9863
Making sure fast alias tests do their own teardown.
2014-09-28 09:54:35 -07:00
Jordan Harband
25bd2bb018
Make `nvm ls-remote` return nvm_ls_remote's exit code.
2014-09-28 09:41:02 -07:00
Jordan Harband
4a8a5a1180
Shell-quoting some more things.
2014-09-27 17:30:09 -07:00
Jordan Harband
145da7eef8
v0.17.1
2014-09-26 23:22:56 -07:00
Jordan Harband
4cf56ae186
Remove unnecessary local var declaration. Fixes #535
2014-09-26 23:22:38 -07:00
Jordan Harband
5ad00f13fa
Suppress error messages in case there's no `master` branch.
...
Fixes #533 .
2014-09-25 22:10:48 -07:00
Jordan Harband
53f9841c6c
v0.17.0
2014-09-24 14:58:07 -07:00