aboutsummaryrefslogtreecommitdiff
path: root/grunt/bs-commonjs-generator.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2015-04-26 13:53:45 +0300
committerXhmikosR <[email protected]>2015-04-28 11:03:37 +0300
commit3e7ca3bbc8eaa60013d4ab9f2edd42f6dcd8dd4b (patch)
tree968eee9693cf578b4f3f2991f4a482019cf4cf43 /grunt/bs-commonjs-generator.js
parent4e027718a816f50e9d87acd890644b8f0ecce856 (diff)
downloadbootstrap-3e7ca3bbc8eaa60013d4ab9f2edd42f6dcd8dd4b.tar.xz
bootstrap-3e7ca3bbc8eaa60013d4ab9f2edd42f6dcd8dd4b.zip
Minor lint tweaks.
Diffstat (limited to 'grunt/bs-commonjs-generator.js')
-rw-r--r--grunt/bs-commonjs-generator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js
index b0642cd8f..582eefe37 100644
--- a/grunt/bs-commonjs-generator.js
+++ b/grunt/bs-commonjs-generator.js
@@ -1,4 +1,5 @@
'use strict';
+
var fs = require('fs');
var path = require('path');
@@ -15,8 +16,7 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
var moduleOutputJs = COMMONJS_BANNER + srcFiles.map(srcPathToDestRequire).join('\n');
try {
fs.writeFileSync(destFilepath, moduleOutputJs);
- }
- catch (err) {
+ } catch (err) {
grunt.fail.warn(err);
}
grunt.log.writeln('File ' + destFilepath.cyan + ' created.');