generate CSS banners via Gruntfile; fixes #10101

This commit is contained in:
Chris Rebert 2013-09-10 19:21:44 -07:00
parent 1f3a87a8a0
commit 2b5d7d23d0
8 changed files with 34 additions and 33 deletions

View File

@ -8,7 +8,7 @@ module.exports = function(grunt) {
// Metadata. // Metadata.
pkg: grunt.file.readJSON('package.json'), pkg: grunt.file.readJSON('package.json'),
banner: '/**\n' + banner: '/*!\n' +
'* Bootstrap v<%= pkg.version %> by @fat and @mdo\n' + '* Bootstrap v<%= pkg.version %> by @fat and @mdo\n' +
'* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' + '* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
'* Licensed under <%= _.pluck(pkg.licenses, "url").join(", ") %>\n' + '* Licensed under <%= _.pluck(pkg.licenses, "url").join(", ") %>\n' +
@ -73,7 +73,8 @@ module.exports = function(grunt) {
recess: { recess: {
options: { options: {
compile: true compile: true,
banner: '<%= banner %>'
}, },
bootstrap: { bootstrap: {
src: ['less/bootstrap.less'], src: ['less/bootstrap.less'],

View File

@ -1,3 +1,10 @@
/*!
* Bootstrap v3.0.0 by @fat and @mdo
* Copyright 2013 Twitter, Inc.
* Licensed under http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world by @mdo and @fat.
*/
.btn-default, .btn-default,
.btn-primary, .btn-primary,
.btn-success, .btn-success,

File diff suppressed because one or more lines are too long

View File

@ -1,13 +1,10 @@
/*! /*!
* Bootstrap v3.0.0 * Bootstrap v3.0.0 by @fat and @mdo
* * Copyright 2013 Twitter, Inc.
* Copyright 2013 Twitter, Inc * Licensed under http://www.apache.org/licenses/LICENSE-2.0
* Licensed under the Apache License v2.0 *
* http://www.apache.org/licenses/LICENSE-2.0 * Designed and built with all the love in the world by @mdo and @fat.
* */
* Designed and built with all the love in the world by @mdo and @fat.
*/
/*! normalize.css v2.1.0 | MIT License | git.io/normalize */ /*! normalize.css v2.1.0 | MIT License | git.io/normalize */
article, article,

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
/** /*!
* Bootstrap v3.0.0 by @fat and @mdo * Bootstrap v3.0.0 by @fat and @mdo
* Copyright 2013 Twitter Inc. * Copyright 2013 Twitter, Inc.
* Licensed under http://www.apache.org/licenses/LICENSE-2.0 * Licensed under http://www.apache.org/licenses/LICENSE-2.0
* *
* Designed and built with all the love in the world by @mdo and @fat. * Designed and built with all the love in the world by @mdo and @fat.

View File

@ -1,6 +1,6 @@
/** /*!
* Bootstrap v3.0.0 by @fat and @mdo * Bootstrap v3.0.0 by @fat and @mdo
* Copyright 2013 Twitter Inc. * Copyright 2013 Twitter, Inc.
* Licensed under http://www.apache.org/licenses/LICENSE-2.0 * Licensed under http://www.apache.org/licenses/LICENSE-2.0
* *
* Designed and built with all the love in the world by @mdo and @fat. * Designed and built with all the love in the world by @mdo and @fat.

10
less/bootstrap.less vendored
View File

@ -1,13 +1,3 @@
/*!
* Bootstrap v3.0.0
*
* Copyright 2013 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world by @mdo and @fat.
*/
// Core variables and mixins // Core variables and mixins
@import "variables.less"; @import "variables.less";
@import "mixins.less"; @import "mixins.less";