Commit Graph

1593 Commits (7aa3448259edeb9a6a811b3d174e3cb0a0d40b3e)

Author SHA1 Message Date
Peter Dave Hello 7aa3448259
[Tests] Add curl back when WITHOUT_CURL test done since cache needs it 2017-04-09 13:13:25 +08:00
Peter Dave Hello a66a9caa1c
[Tests] Use node v0.10.7 for thread para test as other install from src tests 2017-04-09 13:08:04 +08:00
Jordan Harband ec2b02e187
npm run doctoc 2017-04-12 16:11:01 -07:00
rouzbeh84 0f25994c8e
[Docs] git install update
- added git as the last method before full manual install.
- added the directory on `git clone` command
- added the `git checkout v0.33.1` as the -v gets updated automatically
2017-04-06 16:23:50 -07:00
Peter Dave Hello 229c7e6f0c [Tests] Test "make release" in Travis CI 2017-04-09 15:16:13 +08:00
Peter Dave Hello d80686c7cd [Makefile] Introduce _ensure-current-version to ensure version tags 2017-04-09 15:09:31 +08:00
Piper Chester 65aedc105a
[Docs] capitalize C++ 2017-04-08 09:16:54 -07:00
Peter Dave Hello 153f8e7b31 [Fix] To confirm curl exists before detecting curl libz feature 2017-04-09 13:44:07 +08:00
Peter Dave Hello e87f395b7a
[Refactor] minor "if" and "return" improvement 2017-04-06 03:55:42 +08:00
Peter Dave Hello 2ec2d31012 [Tests] Re-enable WITHOUT_CURL tests 2017-04-06 14:52:26 +08:00
Peter Dave Hello daa9c3604d
[Fix] To confirm curl exists before detecting curl libz feature 2017-04-06 05:20:55 +08:00
Peter Dave Hello ec3ba1973a
[New] `install.sh`: Parallel script download jobs 2017-04-05 04:54:38 +08:00
Peter Dave Hello c6866eeb37
[Test] "nvm alias" lts test bug fix 2017-04-02 14:34:04 +08:00
Peter Dave Hello 7bd7a35cb2 [Docs] Improve nvm usage examples
Correct two double [tab] and try to improve its readability
2017-04-06 00:36:13 +08:00
Peter Dave Hello e84bcaabdc
[Refactor] Improve profile detection in install script 2017-04-03 23:06:04 +08:00
Yanick Champoux d4e3f0943b
[Docs] add 'fnm' as part of the fish alternatives 2017-04-04 15:01:39 -04:00
Peter Dave Hello 3f5fd57881
[Refactor] Reduce a sed command with pipe 2017-04-05 04:58:34 +08:00
Peter Dave Hello f524bcb973
[Fix] Correct indent in install.sh 2017-04-05 05:01:54 +08:00
Peter Dave Hello a0534b720a [Tests] Reduce apt package dependencies calculation complexity 2017-04-02 16:48:28 +08:00
Peter Dave Hello 424056c839 [Tests] Remove ShellCheck manual dependency install under Ubuntu 14.04 2017-04-02 15:49:01 +08:00
Peter Dave Hello 18df8e3d2e [Tests] Remove ppa source since we migrated to Ubuntu Trusty 2017-04-02 07:24:56 +08:00
Jordan Harband 4249b1c2bb
[Fix] `nvm_ensure_version_installed`: add `system` support.
Relates to #1238
2017-03-31 00:52:56 -07:00
Peter Dave Hello 5776cc952a
[copyright] update to 2017 2017-03-29 17:54:15 +08:00
Peter Dave Hello 6c24346af5 [New] Add missing commands in bash_completion 2017-03-30 19:49:30 +08:00
Peter Dave Hello 450088e51a
[Refactor] Improve if conditoion logic in "use" 2017-03-30 00:41:31 +08:00
Peter Dave Hello 9a6e657e53
[Docs] Remove curl `--compressed` notes since we added its detection 2017-03-29 17:51:23 +08:00
Peter Dave Hello 8fc7e854de
[Tests] Comment out ksh dependency installation, cc #574
- Mistakenly uncommented in 70370a857f
 - per afba4e08fd / #574
2017-03-29 18:05:15 +08:00
Peter Dave Hello 93c1036758
[Tests] Move to Ubuntu 14.04 on Travis CI
Since Ubuntu 12.04 is pretty old now, it's also going to EOL next month,
maybe we can just move on Ubuntu 14.04 first.
2017-03-26 05:19:57 +08:00
Ægir Örn Símonarson 4411abf82e [Docs] Add Mac OS "troubleshooting" to README
It has a section on nvm node version not being found in vim.
2017-03-29 19:04:31 -07:00
Peter Dave Hello a36af70571
[Docs] Update issue #900 title in README.markdown 2017-03-28 22:47:34 +08:00
Peter Dave Hello 059ab0e1ac
[Refactor] Make the code a little bit cleaner 2017-03-28 15:27:49 +08:00
Jordan Harband b9f9977cdd
[Fix] `nvm install -s`: npm detection
- add `nvm_use_if_needed`
 - add `nvm_install_npm_if_needed`
2017-03-27 15:00:50 -07:00
Peter Dave Hello 676fff0219
[completions] Remove nospace in bash_completion 2017-03-26 06:10:53 +08:00
Peter Dave Hello 7b253c8c0a
[New] Supercharge `nvm debug` output
Try to get shell version, OS and its version, curl/wget/git version.
2017-03-23 14:48:00 +08:00
Peter Dave Hello f344d0694b [Tests] Move cabel, nvm & npm install into TravisCI "install" section 2017-03-26 05:22:48 +08:00
Peter Dave Hello d9704471ff [Tests] Cache "node_modules" in CI 2017-03-26 04:06:32 +08:00
Peter Dave Hello 82aaa0a20d [Tests] Do not install nodejs, npm deps for SHELLCHECK 2017-03-25 16:57:42 +08:00
Peter Dave Hello e41197ea94 [Tests] Improve npm dependencies installaion in travis ci 2017-03-24 13:46:50 +08:00
Peter Dave Hello 6ef2be8db4
[Docs] Get https://nodejs.org/dist header instead of its body, fix #1451 2017-03-23 14:12:31 +08:00
Peter Dave Hello d465493832
[Docs] Use https protocol for nodejs.org in issue template 2017-03-23 14:07:07 +08:00
Peter Dave Hello 0e5fba2dfb
[Docs] Also add `--compressed` for `curl` in issue template, cc #1437 2017-03-23 14:01:46 +08:00
Peter Dave Hello 973dfc6d4a [New] Dynamically detect if curl supports `--compressed` 2017-03-23 16:51:20 +08:00
Peter Dave Hello 6a3b1dd2c3 [New] Enable curl auto compression/decompression
Enable `--compressed` parameter on curl to automatically enable
compression on request content by sending coressponding header, if the
server side supports compression format like deflate or gzip, curl will
also decompress the content automatically, so there is no additional
works need to done manually on client side, but just enjoy the benifits
of bandwidth and time saving!

Take https://nodejs.org/dist/index.tab as an example which is last
modified on Tue, 14 Mar 2017 22:41:05 GMT, the compressed transmission
only take 4829 bytes howevet the not compressed on taks 48000 bytes,
which is about 10 times larger!

This feature can be traced back to Sep 3 2002, in curl commit:
 - 64bbe9dfaf

So should be supported on various versions widely.
2017-03-23 16:51:20 +08:00
Peter Dave Hello 4c97828f79
Update .gitattributes 2017-03-23 04:52:46 +08:00
Peter Dave Hello ccd9697ef2 Delete .npmignore 2017-03-23 08:47:53 +08:00
Peter Dave Hello 20a40dd8c2
[Docs] Update CONTRIBUTING.md 2017-03-23 04:46:49 +08:00
Peter Dave Hello 237c3a78e2 [Tests] Add retry on urchin setup which has no built in retry feature
Unlike other built in functions like git fetch or apt-get dependencies,
manual installations won't have retry by default, enabling retry could
help reduce the impact of network issues and furthur prevent getting
build error like Job #1956.21:
- https://travis-ci.org/creationix/nvm/jobs/212640007

Ref:
- https://docs.travis-ci.com/user/common-build-problems/
2017-03-22 20:42:33 +08:00
Peter Dave Hello fa3631fee3
[Refactor] Add `nvm_has_non_aliased` 2017-03-20 16:57:26 +08:00
Peter Dave Hello 316c9f34c6
[Performance] Use awk's comparison to save a pipe to grep 2017-03-20 04:50:32 +08:00
Peter Dave Hello 6cb12b0f99
[Performance] Improve awk usage 2017-03-21 04:23:53 +08:00