From fafaa50c819a66c8bce1ea88b7ba5fa647c7f53e Mon Sep 17 00:00:00 2001 From: crossjs Date: Sun, 12 Jul 2015 22:48:20 +0800 Subject: [PATCH 1/2] use colorful as functions --- lib/build.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } From 4c64dce2c09959adf5dfb6c778f9b36cd7ea8660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=96=87=E5=AF=8C?= Date: Tue, 25 Aug 2015 13:39:46 +0800 Subject: [PATCH 2/2] rename to nd-sea --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"