Luke Childs
d03b986535
Don't reset to default nvm version on cd if it was set manually
2017-01-05 18:25:06 +07:00
Luke Childs
8bdba4fa1e
Always return true so failed checks don't make us return a non zero exit code
2017-01-05 18:25:06 +07:00
Luke Childs
3388eebd8a
Run nvm use
rather than nvm install
on cd auto use
2017-01-05 18:25:06 +07:00
Luke Childs
ffabddcdef
Only run _zsh_nvm_auto_use if nvm is fully loaded
2017-01-05 18:25:06 +07:00
Luke Childs
aa5c6e3337
Add NVM_AUTO_USE functionality
2017-01-05 18:25:06 +07:00
Luke Childs
650bcad0f7
Check yarn gets lazy loader if it's not installed via npm
2016-12-18 18:23:43 +07:00
Luke Childs
e05c86722d
Add lazy loader for yarn if present
...
yarn recommends installing via brew (or something other than npm) which means our it won't be picked up in our nvm node_modules glob.
2016-12-18 18:23:43 +07:00
Luke Childs
0dad2bdef2
Make sure only aliases conflicts are removed from lazy loading
...
Binary conflicts are ok. Fixes #15
2016-12-16 19:48:16 +07:00
Luke Childs
a76c7d2a45
Add test for alias fix aa1fccf
2016-12-16 19:17:57 +07:00
Luke Childs
ea13277137
Swap NVM_NO_USE NVM_LAZY_LOAD order in readme
2016-12-16 11:26:28 +07:00
Luke Childs
3f4d300831
Manually load node -> Don't autoload node
2016-12-16 11:25:22 +07:00
Luke Childs
c60db2fd86
Add Travis badge to readme
2016-12-13 14:52:38 +07:00
Luke Childs
5a3527cc49
Test NVM_LAZY_LOAD and NVM_NO_USE options together
2016-12-13 14:47:13 +07:00
Luke Childs
22b73475a6
Test nvm is loaded correctly with NVM_LAZY_LOAD
2016-12-13 14:47:13 +07:00
Luke Childs
3cf36f4183
Completely nuke node
...
`brew uninstall node` seems to leave behind npm
2016-12-13 14:47:13 +07:00
Luke Childs
0e9aaadb6f
Test global modules are loaded correctly with NVM_LAZY_LOAD
2016-12-13 14:47:13 +07:00
Luke Childs
920520ec04
Improve node binary checks in tests
2016-12-13 14:47:13 +07:00
Luke Childs
97fa6ebeab
Check node can be loaded manually in NVM_NO_USE test
2016-12-13 14:47:13 +07:00
Luke Childs
65869205ac
Add test info to readme
2016-12-13 14:47:13 +07:00
Luke Childs
d3f0effced
Uninstall brew node on Travis osx image
2016-12-13 14:47:13 +07:00
Luke Childs
49face1b2a
Deactivate default Travis nvm
2016-12-13 14:47:13 +07:00
Luke Childs
193dbd37ea
Test NVM_LAZY_LOAD option
2016-12-13 14:47:13 +07:00
Luke Childs
c8af979926
Test NVM_NO_USE option
2016-12-13 14:47:13 +07:00
Luke Childs
556e24f5f1
Test zsh-nvm loads node
2016-12-13 14:47:13 +07:00
Luke Childs
ac785226ed
Move test NVM_DIR inside test folder
2016-12-13 14:47:13 +07:00
Luke Childs
27a399a44f
Setup options test dir
2016-12-13 14:47:13 +07:00
Luke Childs
01cc0aeeae
Ignore .urchin_stdout files
2016-12-13 14:47:13 +07:00
Luke Childs
e26a39b1f2
Add sh shebang to tests so we get syntax highlighting
2016-12-13 14:47:13 +07:00
Luke Childs
dd55eb6048
Test nvm upgrade
2016-12-13 14:47:13 +07:00
Luke Childs
b438f6541f
Ignore .urchin.log files anywhere
...
They will be created inside each test subdir if you run just that subdirs tests. May as well ignore all .urchin.log files so we don't accidentally get them committed.
2016-12-13 14:47:13 +07:00
Luke Childs
762a89dfdf
Test nvm revert
2016-12-13 14:47:13 +07:00
Luke Childs
a3e1bbd75f
Setup wrapper commands tests
2016-12-13 14:47:13 +07:00
Luke Childs
61a8aba6f1
Test zsh-nvm wraps nvm
2016-12-13 14:47:13 +07:00
Luke Childs
a12a0e368c
Test zsh-nvm loads nvm
2016-12-13 14:47:13 +07:00
Luke Childs
6f7c9ff4cc
Don't load/install nvm in tests that don't need to
2016-12-13 14:47:13 +07:00
Luke Childs
8367ab3120
Add ZSH_NVM_NO_LOAD option
...
If ZSH_NVM_NO_LOAD is set to true then zsh-nvm won't actually do anything after setting up environment variables and functions. This is usefull for unit tests and debugging.
2016-12-13 14:47:13 +07:00
Luke Childs
c7ee42d5c5
Test zsh-nvm doesn't overwrite nvm installs
2016-12-13 14:47:13 +07:00
Luke Childs
2156245dca
Test zsh-nvm installs nvm
2016-12-13 14:47:13 +07:00
Luke Childs
babab28ff9
Remove nvm after every test
...
This ensures we get a fresh nvm install for every test
2016-12-13 14:47:13 +07:00
Luke Childs
bf24f56434
Use repo dir for NVM_DIR so we don't mess with global nvm installations
2016-12-13 14:47:13 +07:00
Luke Childs
9c33f4d91c
Test set NVM_DIR if not exist
2016-12-13 14:47:13 +07:00
Luke Childs
5e27903375
Also run Travis tests on OS X
2016-12-13 14:47:13 +07:00
Luke Childs
ff2e8f0ba3
Integrate with Travis
2016-12-13 14:47:13 +07:00
Luke Childs
52b486bca8
Setup urchin tests with test for loading
2016-12-13 14:47:13 +07:00
Luke Childs
aa1fccff4b
Don't set lazy loaders that conflict with existing globals
2016-10-25 10:26:33 +01:00
Luke Childs
de3c3d7826
Add LICENSE file
2016-10-16 20:07:34 +01:00
Luke Childs
6e2fc22ff3
Document NVM_NO_USE
option
2016-10-04 20:51:15 +01:00
Luke Childs
e379610cb9
Make lazy loading compatible with no use option
2016-10-01 13:54:44 +01:00
Luke Childs
e2e47a8c21
Add NVM_NO_USE option
2016-10-01 13:54:36 +01:00
Luke Childs
ce7bc2a0a2
Wrap binary path output in quotes
2016-09-27 22:02:49 +01:00