diff options
| author | James Friend <[email protected]> | 2014-09-09 08:47:23 +0800 |
|---|---|---|
| committer | James Friend <[email protected]> | 2014-09-09 08:47:23 +0800 |
| commit | 4ba4b7c3cf20b8e9df3ec41af63b68300b402814 (patch) | |
| tree | 3c304c6a40f4968463b2f4f47f51750246f26ec1 | |
| parent | 2bc417732c4142091e92fce07f93c4fff11173b1 (diff) | |
| download | bootstrap-4ba4b7c3cf20b8e9df3ec41af63b68300b402814.tar.xz bootstrap-4ba4b7c3cf20b8e9df3ec41af63b68300b402814.zip | |
added banner about generated file
| -rw-r--r-- | dist/js/npm.js | 1 | ||||
| -rw-r--r-- | grunt/bs-commonjs-generator.js | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/dist/js/npm.js b/dist/js/npm.js index c7c20adfe..d5e4f476d 100644 --- a/dist/js/npm.js +++ b/dist/js/npm.js @@ -1,3 +1,4 @@ +// This file is generated. You can require() it in a CommonJS environment. require('../../js/transition.js') require('../../js/alert.js') require('../../js/button.js') diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js index e5173944c..1b0da182f 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); } |
