Permalink
Browse files

update colors

  • Loading branch information...
Hsiaoming Yang
Hsiaoming Yang committed Mar 18, 2013
1 parent fd8a16e commit ac05055d59e71ce56f7e33edccdeb45c93976b9b
Showing with 19 additions and 16 deletions.
  1. +1 −1 lib/config.js
  2. +2 −2 lib/info.js
  3. +9 −7 lib/install.js
  4. +1 −1 lib/plugin.js
  5. +1 −0 lib/sdk/yuan.js
  6. +1 −1 lib/search.js
  7. +1 −1 lib/utils/log.js
  8. +1 −1 lib/utils/program.js
  9. +2 −2 package.json
View
@@ -4,7 +4,7 @@
*
*/
-var color = require('colorful').color;
+var color = require('colorful');
var spmrc = require('spmrc');
var log = require('./utils/log');
View
@@ -1,6 +1,6 @@
/* show information of the package */
-var color = require('colorful').color;
+var color = require('colorful');
var iduri = require('./sdk/iduri');
var yuan = require('./sdk/yuan');
var log = require('./utils/log');
@@ -52,7 +52,7 @@ function print(data) {
}
}
if (data.description) {
- console.log(' desc:', color.grey(data.description));
+ console.log(' desc:', color.gray(data.description));
}
if (data.homepage) {
if (typeof data.homepage === 'string') {
View
@@ -5,7 +5,7 @@ var path = require('path');
var format = require('util').format;
var request = require('request');
var async = require('async');
-var color = require('colorful').color;
+var color = require('colorful');
var semver = require('semver');
var ast = require('cmd-util').ast;
var _ = require('lodash');
@@ -42,16 +42,18 @@ module.exports = function(options) {
}
queueInstall(packages, function() {
- console.log();
var children = [];
Object.keys(_cache).forEach(function(key) {
children = _.union(children, _cache[key]);
});
- Object.keys(_cache).forEach(function(key) {
- if (!_.contains(children, key)) {
- printTree(key);
- }
- });
+ if (children.length > 1) {
+ console.log();
+ Object.keys(_cache).forEach(function(key) {
+ if (!_.contains(children, key)) {
+ printTree(key);
+ }
+ });
+ }
console.log();
});
};
View
@@ -6,7 +6,7 @@
*/
var path = require('path');
-var color = require('colorful').color;
+var color = require('colorful');
var grunt = require('./sdk/grunt');
var pluginsPath = path.join(process.env.HOME, '.spm', 'plugins.json');
View
@@ -41,6 +41,7 @@ Yuan.prototype.request = function(data, callback) {
if (data.auth) {
data.headers['Authorization'] = 'Yuan ' + data.auth;
+ delete data.auth;
}
var options = this.options;
if (options.force) {
View
@@ -1,6 +1,6 @@
/* show information of the package */
-var color = require('colorful').color;
+var color = require('colorful');
var yuan = require('./sdk/yuan');
View
@@ -1,5 +1,5 @@
var util = require('util');
-var color = require('colorful').color;
+var color = require('colorful');
var log = module.exports = {};
View
@@ -4,7 +4,7 @@
*
*/
-var color = require('colorful').color;
+var color = require('colorful');
function Command(name, executable, description) {
View
@@ -13,14 +13,14 @@
"async": "~0.1.22",
"tar": "~0.1.16",
"request": "~2.16.2",
- "colorful": "~1.2.0",
+ "colorful": "~2.0.1",
"commander": "~1.1.1",
"cmd-util": "~0.3.2",
"uglify-js": "~2.2.5",
"graceful-fs": "1.2.0",
- "lodash": "~1.0.1",
+ "lodash": "~0.9.2",
"grunt": "~0.4.1",
"grunt-spm-build": "~0.2.0"
},

0 comments on commit ac05055

Please sign in to comment.