Commit graph

135 commits

Author SHA1 Message Date
Nathan Rajlich
1b85c397f0 install: only extract the common.gypi file from the tarball
`gyp_addon` and the `addon.gypi` file are no longer needed.
2012-08-12 15:18:51 -07:00
Nathan Rajlich
11808b4397 install: handle invalid "proxy" config values, and guard against the request constructor throwing an Error
Closes #114.
2012-08-12 13:48:32 -07:00
Nathan Rajlich
b7df8cb4c4 install: remove the dev files after a tmpdir installation
to save disk space
2012-07-16 16:39:38 -07:00
Nathan Rajlich
7be6ca0655 install: attempt to workaround the npm sudo permissions problem 2012-07-10 13:57:40 -07:00
Nathan Rajlich
ef04e34256 install: fix indentation
ughh, this file needs a rewrite :\
2012-07-09 22:00:16 -07:00
Nathan Rajlich
fcc3b1d37a install: listen for the "close" event while downloading the tarball
Should probably do that for the node.lib files as well, but we'll get to that...
2012-06-27 12:16:16 -07:00
Nathan Rajlich
3e6be27146 install: require the --nodedir flag to be passed for "pre" versions of node
Fixes #86.
2012-06-27 11:39:19 -07:00
Nathan Rajlich
736b4afaa7 install: don't start piping download contents until the "response" event 2012-06-27 11:32:02 -07:00
Nathan Rajlich
f100133e27 install: ensure the "error" event is being caught by the node tarball request
This might fix #90.
2012-06-27 11:24:21 -07:00
Nathan Rajlich
0f4b4fa0df log 2012-06-27 11:22:43 -07:00
Nathan Rajlich
0292ee8fc3 Revert "install: semver.lt() returns null when false... wtf?"
This reverts commit fbfbea7d55.

`null` actually only happens when the 2 versions are equal, haha.
2012-06-27 11:13:15 -07:00
Nathan Rajlich
fbfbea7d55 install: semver.lt() returns null when false... wtf? 2012-06-25 12:58:53 -07:00
Nathan Rajlich
8ce478a707 logging++ 2012-06-12 08:54:29 -07:00
Nathan Rajlich
ef8bf2e8f4 logging tweak 2012-06-07 14:44:53 -07:00
Nathan Rajlich
9e425a7bad more logging during "install" 2012-06-06 21:37:22 -07:00
Nathan Rajlich
aeb5d27dee fix bad 2012-06-06 21:37:10 -07:00
Nathan Rajlich
f451c0fab9 remove mkdirp wrapper 2012-06-06 21:35:25 -07:00
Nathan Rajlich
47de81f963 initial take at using 'npmlog' for logging
* adds a '--loglevel' switch to node-gyp which accepts the same values as npm
 * now the '--verbose' flag is simply an alias to '--loglevel=verbose'
 * this simplifies the code a bit, since any logging logic is now removed
 * more log levels! it's mostly verbose() and info() being used
   * still need to go back and move some of logging calls to a better level
2012-06-06 18:01:08 -07:00
Nathan Rajlich
e1dca2c2d8 re-add space at the top 2012-04-10 11:26:54 -07:00
Nathan Rajlich
e243c52923 listen for 'error' and 'response' directly when downloading node.lib
Cleaner.
2012-04-10 11:25:39 -07:00
Nathan Rajlich
b49638eff3 lint 2012-04-10 11:25:07 -07:00
Kei Son
19e7168a83 Downloading a couple of node.lib doesn't works because of failure of timing to pipe and to attach a handler 2012-04-10 11:11:20 -07:00
Nathan Rajlich
9157a3a4b2 fix TODO; use my mkdirp wrapper 2012-04-08 15:56:25 -07:00
Nathan Rajlich
f1082e5773 use graceful-fs everywhere 2012-04-05 17:19:29 -07:00
Nathan Rajlich
cc77fd1c95 install: fix addListener error again 2012-03-30 21:43:03 -07:00
Nathan Rajlich
1204b00aad install: fix addListener error 2012-03-30 21:42:08 -07:00
Nathan Rajlich
46891f4c7e build, install: initial attempt at 64-bit Windows support 2012-03-30 21:36:27 -07:00
Nathan Rajlich
d89b783202 install: tweak comment 2012-03-30 20:20:38 -07:00
Nathan Rajlich
772b6b12b8 install: adjust error message 2012-03-30 20:11:02 -07:00
Nathan Rajlich
ae39e1adb3 core: centralize the dev dir logic into node-gyp.js 2012-03-30 20:02:27 -07:00
Nathan Rajlich
079fc13b9a install: use minimatch matchBase option 2012-03-28 18:34:12 -07:00
Nathan Rajlich
16fe85b1d7 install: use npm's "proxy" setting for downloads 2012-03-27 15:24:48 -07:00
Nathan Rajlich
27bf70a4a4 install: fix global variable leak 2012-03-23 11:16:08 -07:00
Nathan Rajlich
7302f1b1b7 install: fire the callback on 'response' instead of 'end'
There's no need for request to buffer the response tarball/node.lib for us.
2012-03-23 11:15:16 -07:00
Nathan Rajlich
01493ee93b install: clean up logging 2012-03-20 11:54:48 -07:00
Nathan Rajlich
0ab8ebc7c8 install: ocd 2012-03-20 11:52:35 -07:00
malixsys
45c0b47b6b fix for downloadNodeLib() not using proxy 2012-03-20 11:52:06 -07:00
Nathan Rajlich
d60a5d686b Fix the -pre version handling when installing from "configure" 2012-03-19 19:35:17 -07:00
Nathan Rajlich
7920031fd3 install: add verbose log 2012-03-19 19:20:24 -07:00
Nathan Rajlich
48c6dc8580 install: use tar.Extract to extract the tarball
now that it fstream.Writer accepts a filter :)

closes #41.
2012-03-19 19:19:06 -07:00
isaacs
d8722af603 Decrement patch version for -pre node versions 2012-03-14 13:38:01 -07:00
Nathan Rajlich
45cdb14d3a install: install the current node version when none is specified 2012-03-10 21:23:50 -08:00
Nathan Rajlich
accd1f69de install: extract *all* .h files
Should prevent any problems with selectively picking header files to install.
2012-03-08 15:10:19 -08:00
Nathan Rajlich
9b8ee2a99a install: ensure that a valid tarball was downloaded by counting the number of "entry" events. 2012-03-08 14:04:00 -08:00
Nathan Rajlich
f510c1753a Install the http_parser, openssl, and zlib header files.
They don't get -I included by default, by they should at least be there if
somebody manually adds the include_dir to their module's gyp file.
2012-03-08 13:26:21 -08:00
Nathan Rajlich
7cba8b3d42 Use semver.lt() to compare target versions. 2012-03-07 12:00:53 -08:00
Nathan Rajlich
f3e8a70835 Use 'semver' to install full patch version of node instead of minor.
Closes #37.
Closes #38.
Closes #39.
2012-03-07 11:52:39 -08:00
Nathan Rajlich
80f857a470 Use path.resolve() everywhere. 2012-02-27 18:15:20 -08:00
Nathan Rajlich
bf2819cd32 Write out the "installVersion" file. 2012-02-27 17:05:50 -08:00
Nathan Rajlich
eb553da38e Adjust verbose comment. 2012-02-27 17:05:37 -08:00