Skip to content

Commit

Permalink
Disabled the publication of .vis files (not useful at execution time).
Browse files Browse the repository at this point in the history
  • Loading branch information
hugow committed Jun 5, 2012
1 parent 0944878 commit 25c7b3d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/grind.js
Expand Up @@ -13,7 +13,7 @@ var fs = require('fs'),
path = require('path'),
async = require('async'),
jqtpl = require('jqtpl'),
assetExt = { 'jpg': 0, 'png': 0, 'gif': 0, 'html': 0, 'json': 0, 'css': 0, 'vis': 0 },
assetExt = { 'jpg': true, 'png': true, 'gif': true, 'html': true, 'json': false, 'css': true, 'vis': false },
argFilters = [
{
filter: /^--help$/,
Expand Down Expand Up @@ -300,10 +300,16 @@ function publishAsset(
cb
) {
var dstfile = path.join(options.dstFolder, modulename, filename.slice(modulerootfolder.length)),
dstfolder = path.dirname(dstfile);
dstfolder = path.dirname(dstfile),
getExt = /\.(\w+)$/,
m = getExt.exec(filename);

//console.log('publishAsset ' + filename + ' to ' + dstfolder);
copyFileIfOutdated(filename, dstfolder, cb);
if (m && assetExt[m[1]]) {
copyFileIfOutdated(filename, dstfolder, cb);
} else {
// nothing to do
cb(null);
}
}

/**
Expand Down

0 comments on commit 25c7b3d

Please sign in to comment.