summaryrefslogtreecommitdiff
path: root/bower_components/bootstrap/Gruntfile.js
diff options
context:
space:
mode:
authorThomas Park <thomas@thomaspark.me>2014-02-13 15:18:39 -0500
committerThomas Park <thomas@thomaspark.me>2014-02-13 15:18:39 -0500
commita12ab54dac21bdaf0ac3754dec8550fa75cf9f21 (patch)
tree1aee04baf597c7d6d462f6694f3846a6a5572018 /bower_components/bootstrap/Gruntfile.js
parenta43354fc783adee59aae1b6cfb4dc253837af316 (diff)
update bootstrap to 3.1.0
Diffstat (limited to 'bower_components/bootstrap/Gruntfile.js')
-rw-r--r--bower_components/bootstrap/Gruntfile.js67
1 files changed, 35 insertions, 32 deletions
diff --git a/bower_components/bootstrap/Gruntfile.js b/bower_components/bootstrap/Gruntfile.js
index ec9fb594..600c1f12 100644
--- a/bower_components/bootstrap/Gruntfile.js
+++ b/bower_components/bootstrap/Gruntfile.js
@@ -17,10 +17,10 @@ module.exports = function (grunt) {
var fs = require('fs');
var path = require('path');
- var generateGlyphiconsData = require('./docs/grunt/bs-glyphicons-data-generator.js');
- var BsLessdocParser = require('./docs/grunt/bs-lessdoc-parser.js');
- var generateRawFilesJs = require('./docs/grunt/bs-raw-files-generator.js');
- var updateShrinkwrap = require('./test-infra/shrinkwrap.js');
+ var generateGlyphiconsData = require('./grunt/bs-glyphicons-data-generator.js');
+ var BsLessdocParser = require('./grunt/bs-lessdoc-parser.js');
+ var generateRawFilesJs = require('./grunt/bs-raw-files-generator.js');
+ var updateShrinkwrap = require('./grunt/shrinkwrap.js');
// Project configuration.
grunt.initConfig({
@@ -30,13 +30,13 @@ module.exports = function (grunt) {
banner: '/*!\n' +
' * Bootstrap v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
- ' * Licensed under <%= _.pluck(pkg.licenses, "type") %> (<%= _.pluck(pkg.licenses, "url") %>)\n' +
+ ' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' +
' */\n',
- jqueryCheck: 'if (typeof jQuery === \'undefined\') { throw new Error(\'Bootstrap requires jQuery\') }\n\n',
+ jqueryCheck: 'if (typeof jQuery === \'undefined\') { throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery\') }\n\n',
// Task configuration.
clean: {
- dist: 'dist'
+ dist: ['dist', 'docs/dist']
},
jshint: {
@@ -44,7 +44,10 @@ module.exports = function (grunt) {
jshintrc: 'js/.jshintrc'
},
grunt: {
- src: ['Gruntfile.js', 'docs/grunt/*.js', 'test-infra/shrinkwrap.js']
+ options: {
+ jshintrc: 'grunt/.jshintrc'
+ },
+ src: ['Gruntfile.js', 'grunt/*.js']
},
src: {
src: 'js/*.js'
@@ -62,7 +65,7 @@ module.exports = function (grunt) {
config: 'js/.jscs.json',
},
grunt: {
- src: ['Gruntfile.js', 'docs/grunt/*.js', 'test-infra/shrinkwrap.js']
+ src: ['Gruntfile.js', 'grunt/*.js']
},
src: {
src: 'js/*.js'
@@ -82,7 +85,8 @@ module.exports = function (grunt) {
src: [
'dist/css/bootstrap.css',
'dist/css/bootstrap-theme.css',
- 'docs/assets/css/docs.css'
+ 'docs/assets/css/docs.css',
+ 'docs/examples/**/*.css'
]
},
@@ -111,22 +115,23 @@ module.exports = function (grunt) {
},
uglify: {
+ options: {
+ report: 'min'
+ },
bootstrap: {
options: {
- banner: '<%= banner %>',
- report: 'min'
+ banner: '<%= banner %>'
},
src: '<%= concat.bootstrap.dest %>',
dest: 'dist/js/<%= pkg.name %>.min.js'
},
customize: {
options: {
- preserveComments: 'some',
- report: 'min'
+ preserveComments: 'some'
},
src: [
'docs/assets/js/vendor/less.min.js',
- 'docs/assets/js/vendor/jszip.js',
+ 'docs/assets/js/vendor/jszip.min.js',
'docs/assets/js/vendor/uglify.min.js',
'docs/assets/js/vendor/blob.js',
'docs/assets/js/vendor/filesaver.js',
@@ -137,8 +142,7 @@ module.exports = function (grunt) {
},
docsJs: {
options: {
- preserveComments: 'some',
- report: 'min'
+ preserveComments: 'some'
},
src: [
'docs/assets/js/vendor/holder.js',
@@ -219,14 +223,20 @@ module.exports = function (grunt) {
},
csscomb: {
- sort: {
- options: {
- config: 'less/.csscomb.json'
- },
+ options: {
+ config: 'less/.csscomb.json'
+ },
+ dist: {
files: {
'dist/css/<%= pkg.name %>.css': 'dist/css/<%= pkg.name %>.css',
'dist/css/<%= pkg.name %>-theme.css': 'dist/css/<%= pkg.name %>-theme.css'
}
+ },
+ examples: {
+ expand: true,
+ cwd: 'docs/examples/',
+ src: ['**/*.css'],
+ dest: 'docs/examples/'
}
},
@@ -252,7 +262,7 @@ module.exports = function (grunt) {
options: {
inject: 'js/tests/unit/phantom.js'
},
- files: 'js/tests/*.html'
+ files: 'js/tests/index.html'
},
connect: {
@@ -280,8 +290,8 @@ module.exports = function (grunt) {
}
},
files: {
- 'docs/_includes/customizer-variables.html': 'docs/customizer-variables.jade',
- 'docs/_includes/nav-customize.html': 'docs/customizer-nav.jade'
+ 'docs/_includes/customizer-variables.html': 'docs/jade/customizer-variables.jade',
+ 'docs/_includes/nav-customize.html': 'docs/jade/customizer-nav.jade'
}
}
},
@@ -352,7 +362,6 @@ module.exports = function (grunt) {
// These plugins provide necessary tasks.
require('load-grunt-tasks')(grunt, {scope: 'devDependencies'});
- grunt.loadNpmTasks('browserstack-runner');
// Docs HTML validation task
grunt.registerTask('validate-html', ['jekyll', 'validation']);
@@ -374,12 +383,6 @@ module.exports = function (grunt) {
testSubtasks.push('connect');
testSubtasks.push('saucelabs-qunit');
}
- // Only run BrowserStack tests if there's a BrowserStack access key
- if (typeof process.env.BROWSERSTACK_KEY !== 'undefined' &&
- // Skip BrowserStack if running a different subset of the test suite
- (!process.env.TWBS_TEST || process.env.TWBS_TEST === 'browserstack-js-unit')) {
- testSubtasks.push('browserstack_runner');
- }
grunt.registerTask('test', testSubtasks);
// JS distribution task.
@@ -392,7 +395,7 @@ module.exports = function (grunt) {
grunt.registerTask('dist-docs', 'copy:docs');
// Full distribution task.
- grunt.registerTask('dist', ['clean', 'dist-css', 'copy:fonts', 'dist-docs', 'dist-js']);
+ grunt.registerTask('dist', ['clean', 'dist-css', 'copy:fonts', 'dist-js', 'dist-docs']);
// Default task.
grunt.registerTask('default', ['test', 'dist', 'build-glyphicons-data', 'build-customizer', 'update-shrinkwrap']);