Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/grunt
diff options
context:
space:
mode:
authorJames Friend <james.friend@agworld.com.au>2014-08-28 05:54:51 +0400
committerJames Friend <james.friend@agworld.com.au>2014-08-28 05:54:51 +0400
commit2bc417732c4142091e92fce07f93c4fff11173b1 (patch)
tree7e5d7dd2844c2d1cfd7eea97f1265a578bb178da /grunt
parent015ee2ed74bcdc48eea9bb7f6bb453f1c2f182aa (diff)
code style fixes
Diffstat (limited to 'grunt')
-rw-r--r--grunt/bs-commonjs-generator.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js
index 8ab309b332..e5173944ca 100644
--- a/grunt/bs-commonjs-generator.js
+++ b/grunt/bs-commonjs-generator.js
@@ -7,11 +7,10 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
function srcPathToDestRequire(srcFilepath) {
var requirePath = path.relative(destDir, srcFilepath);
- return "require('"+requirePath+"')";
+ return 'require(\'' + requirePath + '\')';
}
var moduleOutputJs = srcFiles.map(srcPathToDestRequire).join('\n');
-
try {
fs.writeFileSync(destFilepath, moduleOutputJs);
}