Skip to content

Commit

Permalink
nmod: update
Browse files Browse the repository at this point in the history
	modified:   TODO.md
	modified:   nmod
  • Loading branch information
jeromeetienne committed Mar 1, 2011
1 parent 01eae06 commit a147c18
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 31 deletions.
33 changes: 17 additions & 16 deletions TODO.md
@@ -1,11 +1,13 @@
### BUGS

* nmod install notexistingpkg do a crash...

### TODO

* nmod install notexistingpkg do a crash...
* allow a search
* curl "http://search.npmjs.org/_view/search?startkey=%22express%22&endkey=%22expressZZZZZZZZZZZZZZZZZZZ%22&reduce=false"
* http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options for docs

* complete npm install url
* support tar+zip
* support any url but be better when you can (e.g. github url)
Expand All @@ -14,19 +16,6 @@
* like using github api instead of npmjs one
* to fix the version flexibility of fixed tar
* something like "tags" == all available versions


* possible to put url in dependancies. but only .tgz, but github is tar ok
* maybe find a shortcut like this
* github to get the tgz... not perfect at all... but workable now
* in fact nmod should support a tgz as source of package
* this is like the usual install without the version resolution
* nmod install express
* nmod install express '>= 0.0.3'
* nmod install http://github.com/slota.tgz
* nmod install https://github.com/isaacs/npm/tarball/v0.3.9
* read and follow
* http://networkimprov.github.com/node-doc-api/all.html#addenda_Package_Manager_Tips
* better report for nmod list ?
* currently this is like a ls -R
* something like express (qs, connect(qs))
Expand All @@ -36,10 +25,22 @@
./node_modules/express/node_modules/connect/node_modules/qs
./node_modules/express/node_modules/qs
jerome@jmebox:/tmp/slota$ express (sq, connect(qs))
* better feedback to the user

### DONE

* DONE better feedback to the user
* download progress
* error message
* issue in the async of install
* DONE possible to put url in dependancies. but only .tgz, but github is tar ok
* maybe find a shortcut like this
* github to get the tgz... not perfect at all... but workable now
* in fact nmod should support a tgz as source of package
* this is like the usual install without the version resolution
* nmod install express
* nmod install express '>= 0.0.3'
* nmod install http://github.com/slota.tgz
* nmod install https://github.com/isaacs/npm/tarball/v0.3.9
* DONE issue in the async of install
* i install all deps at the same time
* may be faster but disturb the user (and who care about speed in install)
* unsure i did some work. not sure on the status but seems to work
Expand Down
25 changes: 10 additions & 15 deletions nmod
Expand Up @@ -160,19 +160,16 @@ var utils = {
successCb = successCb || function(){};
failureCb = failureCb || function(error){console.assert(false);}
var cmdline = "(cd '"+dirName+"' && node-waf distclean configure build)"
var child = require('child_process').exec(cmdline,
function (error, stdout, stderr) {
//console.log('stdout: ' + stdout);
//console.log('stderr: ' + stderr);
if (error !== null) {
process.stdout.write(tty_color.code("node-waf failed to build in "+dirName+"\n"));
process.stdout.write(stderr);
failureCb(error);
}else{
successCb();
}
});
}
var child = require('child_process').exec(cmdline, function (error, stdout, stderr){
if (error !== null) {
process.stdout.write(tty_color.code("node-waf failed to build in "+dirName+"\n"));
process.stdout.write(stderr);
failureCb(error);
}else{
successCb();
}
});
}
};

var tty_color = {};
Expand Down Expand Up @@ -561,8 +558,6 @@ var nmod = function(cmdline, cmdopts){
}
});
}

console.log("dstDirname", dstDirname)
// compile native extensions if needed
// - e.g. bigint or nTpl
if( utils.existSync(dstDirname+"/wscript") ){
Expand Down

0 comments on commit a147c18

Please sign in to comment.