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

code style fixes

parent 015ee2ed
Showing with 1 addition and 2 deletions
+1 -2
...@@ -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);
} }
......
Supports Markdown
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