Permalink
Browse files

update for spm build

  • Loading branch information...
1 parent a733dad commit f8b153c31abc3fdc1a1f22c37f8df198357a4d4e Hsiaoming Yang committed Mar 19, 2013
Showing with 4 additions and 3 deletions.
  1. +1 −1 lib/build.js
  2. +1 −1 lib/utils/log.js
  3. +2 −1 package.json
View
@@ -29,7 +29,7 @@ exports.loadBuildTasks = function(options, pkg) {
config.src = options.inputDirectory || 'src';
config.dest = options.outputDirectory || 'dist';
- require('grunt-spm-build')(grunt, config);
+ require('grunt-spm-build').initConfig(grunt, config);
var rootdir = path.dirname(require.resolve('grunt-spm-build'));
var data = grunt.file.readJSON(path.join(rootdir, 'package.json'));
Object.keys(data.dependencies).forEach(function(name) {
View
@@ -90,7 +90,7 @@ function getMsg(category, msg, fn) {
} else {
msg = msg.replace(process.cwd(), '$CWD');
msg = msg.replace(process.env.HOME, '~');
- if (msg.length > 50) msg = msg.slice(0, 47) + '...';
+ //if (msg.length > 50) msg = msg.slice(0, 47) + '...';
msg = pad + fn(category) + ': ' + color.grey(msg);
}
return msg;
View
@@ -18,11 +18,12 @@
"cmd-util": "~0.3.2",
"uglify-js": "~2.2.5",
+ "clean-css": "~0.10.1",
"graceful-fs": "1.2.0",
"lodash": "~0.9.2",
"grunt": "~0.4.1",
- "grunt-spm-build": "~0.2.0"
+ "grunt-spm-build": "~0.2.0a4"
},
"devDependencies": {
"sinon": "*",

0 comments on commit f8b153c

Please sign in to comment.