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@jsdf.co>2014-09-09 04:47:23 +0400
committerJames Friend <james@jsdf.co>2014-09-09 04:47:23 +0400
commit4ba4b7c3cf20b8e9df3ec41af63b68300b402814 (patch)
tree3c304c6a40f4968463b2f4f47f51750246f26ec1 /grunt
parent2bc417732c4142091e92fce07f93c4fff11173b1 (diff)
added banner about generated file
Diffstat (limited to 'grunt')
-rw-r--r--grunt/bs-commonjs-generator.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js
index e5173944ca..1b0da182f7 100644
--- a/grunt/bs-commonjs-generator.js
+++ b/grunt/bs-commonjs-generator.js
@@ -10,7 +10,8 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
return 'require(\'' + requirePath + '\')';
}
- var moduleOutputJs = srcFiles.map(srcPathToDestRequire).join('\n');
+ var moduleOutputJs = '// This file is generated. You can require() it in a CommonJS environment.\n' +
+ srcFiles.map(srcPathToDestRequire).join('\n');
try {
fs.writeFileSync(destFilepath, moduleOutputJs);
}