mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Use the docs banner for all the docs generated files.
This commit is contained in:
+9
-6
@@ -23,6 +23,12 @@ module.exports = function (grunt) {
|
|||||||
' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
|
' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
|
||||||
' * Licensed under <%= _.pluck(pkg.licenses, "type") %> (<%= _.pluck(pkg.licenses, "url") %>)\n' +
|
' * Licensed under <%= _.pluck(pkg.licenses, "type") %> (<%= _.pluck(pkg.licenses, "url") %>)\n' +
|
||||||
' */\n',
|
' */\n',
|
||||||
|
bannerDocs: '/*!\n' +
|
||||||
|
' * Bootstrap Docs (<%= pkg.homepage %>)\n' +
|
||||||
|
' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
|
||||||
|
' * Licensed under the Creative Commons Attribution 3.0 Unported License. For\n' +
|
||||||
|
' * details, see http://creativecommons.org/licenses/by/3.0/.\n' +
|
||||||
|
' */\n',
|
||||||
jqueryCheck: 'if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery") }\n\n',
|
jqueryCheck: 'if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery") }\n\n',
|
||||||
|
|
||||||
// Task configuration.
|
// Task configuration.
|
||||||
@@ -112,12 +118,7 @@ module.exports = function (grunt) {
|
|||||||
},
|
},
|
||||||
customize: {
|
customize: {
|
||||||
options: {
|
options: {
|
||||||
banner: '/*!\n' +
|
banner: '<%= bannerDocs %>\n',
|
||||||
' * Bootstrap Docs (<%= pkg.homepage %>)\n' +
|
|
||||||
' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
|
|
||||||
' * Licensed under the Creative Commons Attribution 3.0 Unported License. For\n' +
|
|
||||||
' * details, see http://creativecommons.org/licenses/by/3.0/.\n' +
|
|
||||||
' */\n',
|
|
||||||
report: 'min'
|
report: 'min'
|
||||||
},
|
},
|
||||||
src: [
|
src: [
|
||||||
@@ -132,6 +133,7 @@ module.exports = function (grunt) {
|
|||||||
},
|
},
|
||||||
docsJs: {
|
docsJs: {
|
||||||
options: {
|
options: {
|
||||||
|
banner: '<%= bannerDocs %>\n',
|
||||||
report: 'min'
|
report: 'min'
|
||||||
},
|
},
|
||||||
src: [
|
src: [
|
||||||
@@ -182,6 +184,7 @@ module.exports = function (grunt) {
|
|||||||
cssmin: {
|
cssmin: {
|
||||||
compress: {
|
compress: {
|
||||||
options: {
|
options: {
|
||||||
|
banner: '<%= bannerDocs %>\n',
|
||||||
keepSpecialComments: '*',
|
keepSpecialComments: '*',
|
||||||
noAdvanced: true, // turn advanced optimizations off until it's fixed in clean-css
|
noAdvanced: true, // turn advanced optimizations off until it's fixed in clean-css
|
||||||
report: 'min',
|
report: 'min',
|
||||||
|
|||||||
Vendored
+10
-2
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
+7
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user