Commit 2bc41773 authored by James Friend's avatar James Friend

code style fixes

parent 015ee2ed
...@@ -7,11 +7,10 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath) ...@@ -7,11 +7,10 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
function srcPathToDestRequire(srcFilepath) { function srcPathToDestRequire(srcFilepath) {
var requirePath = path.relative(destDir, srcFilepath); var requirePath = path.relative(destDir, srcFilepath);
return "require('"+requirePath+"')"; return 'require(\'' + requirePath + '\')';
} }
var moduleOutputJs = srcFiles.map(srcPathToDestRequire).join('\n'); var moduleOutputJs = srcFiles.map(srcPathToDestRequire).join('\n');
try { try {
fs.writeFileSync(destFilepath, moduleOutputJs); fs.writeFileSync(destFilepath, moduleOutputJs);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment