diff options
author | James Friend <james@jsdf.co> | 2014-09-09 04:47:23 +0400 |
---|---|---|
committer | James Friend <james@jsdf.co> | 2014-09-09 04:47:23 +0400 |
commit | 4ba4b7c3cf20b8e9df3ec41af63b68300b402814 (patch) | |
tree | 3c304c6a40f4968463b2f4f47f51750246f26ec1 /grunt | |
parent | 2bc417732c4142091e92fce07f93c4fff11173b1 (diff) |
added banner about generated file
Diffstat (limited to 'grunt')
-rw-r--r-- | grunt/bs-commonjs-generator.js | 3 |
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); } |