Commit graph

70 commits

Author SHA1 Message Date
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
Nathan Rajlich
1e2d580da6 Use path.resolve() in the "install" phase. 2012-02-27 17:02:19 -08:00
Nathan Rajlich
905d18cb53 comments 2012-02-27 16:58:18 -08:00
Nathan Rajlich
dd587e2d5f Add an isLegacy var and use it to determine if a file is valid while extracting the tarball. 2012-02-27 16:55:58 -08:00
Nathan Rajlich
46849d83cb The 'install' step now works properly.
Still doesn't set the "installVersion".
2012-02-27 16:44:35 -08:00
Nathan Rajlich
8c13a03f70 Trying to use fstream in the 'install' step to copy the legacy files. 2012-02-27 15:47:30 -08:00
Nathan Rajlich
e1ca4282d9 Remove usage --proxy note. Should be part of the long help instead. 2012-02-26 01:50:13 -08:00
Matt Gollob
70cdea40da Remove semicolons 2012-02-16 21:00:45 -05:00
Matt Gollob
0444852a40 Support http_proxy environment variables and the --proxy= switch
Both the 'install' and 'configure' commands support the --proxy
switch.
2012-02-16 18:42:30 -05:00
Nathan Rajlich
2fb72a396d Fix uncaught exception "no method toFixed()".
Fixes #22.
2012-02-13 08:40:33 -08:00
Nathan Rajlich
5ec4263b97 Move the 'install' failure rollback logic to a more centralized area, so that any install error will roll back. 2012-02-11 18:00:27 -08:00
Nathan Rajlich
2461ff762c Prepare for a potential "0.10" release.
We can no longer treat the version like a Number, since `0.10`
gets represented as `0.1`.
2012-02-11 17:08:50 -08:00
Nathan Rajlich
d56feec7e0 Make sure 'install' doesn't call 'current' or 'use' anymore. 2012-02-11 13:03:25 -08:00
Nathan Rajlich
0aca90d8bb Manually apply the 2722 patch on Unix when the target is < 0.8.
Closes #16.
2012-02-09 11:24:45 -08:00
Nathan Rajlich
ec7cad35be Add the < check for 2685 during the 'install' phase.
Already had it for the 'build' step, but needed it here too.
2012-02-08 15:07:31 -08:00
Nathan Rajlich
e1982ca541 Implement copy2685 for the 'install' step.
Now to add the includes to the 'configure' step.
2012-02-05 13:48:40 -08:00