diff options
Diffstat (limited to 'bower_components/bootstrap/grunt/bs-commonjs-generator.js')
-rw-r--r-- | bower_components/bootstrap/grunt/bs-commonjs-generator.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bower_components/bootstrap/grunt/bs-commonjs-generator.js b/bower_components/bootstrap/grunt/bs-commonjs-generator.js index b0642cd8..0b4ebbfc 100644 --- a/bower_components/bootstrap/grunt/bs-commonjs-generator.js +++ b/bower_components/bootstrap/grunt/bs-commonjs-generator.js @@ -1,4 +1,12 @@ +/*! + * Bootstrap Grunt task for the CommonJS module generation + * http://getbootstrap.com + * Copyright 2014-2015 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ + 'use strict'; + var fs = require('fs'); var path = require('path'); @@ -15,8 +23,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.'); |