Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

nts

  • Loading branch information...
commit b00ac3d838ce9f84681fb34c6a285b431a518bcf 1 parent 5aeda19
kuno authored
Showing with 12 additions and 7 deletions.
  1. +8 −3 TODO.md
  2. +4 −3 lib/assistant.js
  3. +0 −1  lib/exception.js
View
11 TODO.md
@@ -46,9 +46,14 @@
* add neco_workon shell function
###0.0.5###
-1, add command alias suppoort(e.g. list -> ls);
+1, add command alias suppoort(e.g. list -> ls);? (delay to 0.0.6)
2, support to nodejs 0.4.0,
3, re-factory the package direcoty;
-4, more neco more robust
+4, more neco more robust?
5, add rollback functionality
-6, add support for bash and zsh completion?
+6, add support for bash and zsh completion? (delay to 0.0.6)
+
+###0.0.6###
+1, add /tmp dir?
+2, support command alias
+3, add zsh completion script
View
7 lib/assistant.js
@@ -2,7 +2,7 @@ var os = require('os'),
fs = require('fs'),
path = require('path'),
log = require('./display.js').log,
-handle = require('../exception.js').handle,
+handle = require('./exception.js').handle,
cmdList = require('../include/meta.js').cmdList,
notSmaller = require('./utils.js').compareVersions,
npmCouples = require('../include/meta.js').npmCouples,
@@ -10,12 +10,13 @@ cleanLocalConfig = require('./utils.js').cleanGloalConfig,
cleanEcosystemConfig = require('./utils.js').cleanEcosystemConfig;
exports.getRelease = function(target) {
- var config = process.neco.config,
+ var config = process.neco.config, error,
version, release, distFile = config.localDistFile,
dist = JSON.parse(fs.readFileSync(distFile, 'utf8'));
if (!dist) {
- handle.emit('error', 'Dist file not found.');
+ error = new Error('Dist file not found.');
+ handle.emit('error', error);
} else {
if (target === 'stable') {
version = dist.stable;
View
1  lib/exception.js
@@ -11,7 +11,6 @@ handle.on('error', function(error) {
if (argv.cmd === 'create') {
rollback.create();
}
-
exit.emit('fail');
});
Please sign in to comment.
Something went wrong with that request. Please try again.