diff --git a/lib/build.js b/lib/build.js index 7300d56..72eaebc 100644 --- a/lib/build.js +++ b/lib/build.js @@ -1,6 +1,6 @@ 'use strict'; -require('colorful').colorful(); +var color = require('colorful'); var debug = require('debug')('spm-sea'); var relative = require('path').relative; @@ -86,8 +86,8 @@ Build.prototype.run = unyield(function *() { cssmin(args.cssmin) )), size({gzip:true, showFiles:true, log:function(title, what, size) { - size = ((size/1024.0).toFixed(2) + 'kB').to.magenta; - log.info('size', what + ' ' + size + ' (gzipped)'.to.gray); + size = color.magenta((size/1024.0).toFixed(2) + 'kB'); + log.info('size', what + ' ' + size + ' ' + color.gray('(gzipped)')); }}) ), // debug @@ -175,7 +175,7 @@ var Plugins = { // Check duplicate var dups = getDuplicate(files, pkg); for (var k in dups) { - log.warn('duplicate', '%s (%s) while build %s'.to.yellow.color, + log.warn('duplicate', color.yellow('%s (%s) while build %s'), k, dups[k].versions, dups[k].file.path); } diff --git a/package.json b/package.json index 223bac0..1f20e45 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "spm-sea", + "name": "nd-sea", "version": "1.0.1", "description": "SPM project bundler in seajs.", "main": "lib/index", @@ -50,10 +50,10 @@ }, "repository": { "type": "git", - "url": "https://github.com/spmjs/spm-sea" + "url": "https://github.com/crossjs/nd-sea" }, - "homepage": "https://github.com/spmjs/spm-sea", - "author": "chencheng ", + "homepage": "https://github.com/crossjs/nd-sea", + "author": "crossjs ", "license": "MIT", "scripts": { "test": "make test"