aboutsummaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorAlexandr Kondrashov <[email protected]>2015-09-11 16:43:00 +0300
committerAlexandr Kondrashov <[email protected]>2015-09-11 16:43:00 +0300
commitc9725926b2f30bed4e37f57c20ef8ffeb2fd233b (patch)
tree2964ad7556549dd3e0712bdfdbc5fc4ae7a9b45f /Gruntfile.js
parent353e0a49a97c24d89f6cdb95014419d4137dee6e (diff)
parentb811f8cf9628dbcbfe994f71588c5a0c921a092d (diff)
downloadbootstrap-c9725926b2f30bed4e37f57c20ef8ffeb2fd233b.tar.xz
bootstrap-c9725926b2f30bed4e37f57c20ef8ffeb2fd233b.zip
Merge remote-tracking branch 'twbs/v4-dev' into patch-1
Conflicts: scss/_custom-forms.scss scss/_variables.scss
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js41
1 files changed, 9 insertions, 32 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index b2b66855b..e4d0e43e7 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -1,7 +1,7 @@
/*!
* Bootstrap's Gruntfile
* http://getbootstrap.com
- * Copyright 2013-2014 Twitter, Inc.
+ * Copyright 2013-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
@@ -190,10 +190,6 @@ module.exports = function (grunt) {
src: '<%= concat.bootstrap.dest %>',
dest: 'dist/js/<%= pkg.name %>.min.js'
},
- customize: {
- src: configBridge.paths.customizerJs,
- dest: 'docs/assets/js/customize.min.js'
- },
docsJs: {
src: configBridge.paths.docsJs,
dest: 'docs/assets/js/docs.min.js'
@@ -210,6 +206,7 @@ module.exports = function (grunt) {
// CSS build configuration
scsslint: {
options: {
+ bundleExec: true,
config: 'scss/.scsslint.yml',
reporterOutput: null
},
@@ -260,7 +257,7 @@ module.exports = function (grunt) {
options: {
// TODO: disable `zeroUnits` optimization once clean-css 3.2 is released
// and then simplify the fix for https://github.com/twbs/bootstrap/issues/14837 accordingly
- compatibility: 'ie8',
+ compatibility: 'ie9',
keepSpecialComments: '*',
sourceMap: true,
noAdvanced: true
@@ -282,16 +279,6 @@ module.exports = function (grunt) {
}
},
- usebanner: {
- options: {
- position: 'top',
- banner: '<%= banner %>'
- },
- files: {
- src: 'dist/css/*.css'
- }
- },
-
csscomb: {
options: {
config: 'scss/.csscomb.json'
@@ -336,6 +323,7 @@ module.exports = function (grunt) {
jekyll: {
options: {
+ bundleExec: true,
config: '_config.yml'
},
docs: {},
@@ -350,8 +338,7 @@ module.exports = function (grunt) {
options: {
ignore: [
'Element “img” is missing required attribute “src”.',
- 'Bad value “X-UA-Compatible” for attribute “http-equiv” on element “meta”.',
- 'Attribute “autocomplete” not allowed on element “input” at this point.',
+ 'Attribute “autocomplete” is only allowed when the input type is “color”, “date”, “datetime”, “datetime-local”, “email”, “month”, “number”, “password”, “range”, “search”, “tel”, “text”, “time”, “url”, or “week”.',
'Attribute “autocomplete” not allowed on element “button” at this point.',
'Element “div” not allowed as child of element “progress” in this context. (Suppressing further errors from this subtree.)',
'Consider using the “h1” element as a top-level heading only (all “h1” elements are treated as top-level headings by many screen readers and other tools).',
@@ -403,14 +390,6 @@ module.exports = function (grunt) {
exec: {
npmUpdate: {
command: 'npm update'
- },
- bundleUpdate: {
- command: function () {
- // Update dev gems and all the test gemsets
- return 'bundle update && ' + glob.sync('test-infra/gemfiles/*.gemfile').map(function (gemfile) {
- return 'BUNDLE_GEMFILE=' + gemfile + ' bundle update';
- }).join(' && ');
- }
}
},
@@ -438,7 +417,7 @@ module.exports = function (grunt) {
require('time-grunt')(grunt);
// Docs HTML validation task
- grunt.registerTask('validate-html', ['jekyll:docs']);
+ grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint']);
var runSubset = function (subset) {
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;
@@ -467,6 +446,7 @@ module.exports = function (grunt) {
runSubset('sauce-js-unit') &&
// Skip Sauce on Travis when [skip sauce] is in the commit message
isUndefOrNonZero(process.env.TWBS_DO_SAUCE)) {
+ testSubtasks.push('babel:dev');
testSubtasks.push('connect');
testSubtasks.push('saucelabs-qunit');
}
@@ -474,7 +454,7 @@ module.exports = function (grunt) {
grunt.registerTask('test-js', ['eslint', 'jscs:core', 'jscs:test', 'jscs:grunt', 'qunit']);
// JS distribution task.
- grunt.registerTask('dist-js', ['concat', 'lineremover', 'babel:dist', 'stamp', 'uglify:core', 'commonjs']);
+ grunt.registerTask('dist-js', ['babel:dev', 'concat', 'lineremover', 'babel:dist', 'stamp', 'uglify:core', 'commonjs']);
grunt.registerTask('test-scss', ['scsslint']);
@@ -486,7 +466,7 @@ module.exports = function (grunt) {
// grunt.registerTask('sass-compile', ['sass:core', 'sass:extras', 'sass:docs']);
grunt.registerTask('sass-compile', ['sass:core', 'sass:docs']);
- grunt.registerTask('dist-css', ['sass-compile', 'postcss:core', 'autoprefixer:core', 'usebanner', 'csscomb:dist', 'cssmin:core', 'cssmin:docs']);
+ grunt.registerTask('dist-css', ['sass-compile', 'postcss:core', 'autoprefixer:core', 'csscomb:dist', 'cssmin:core', 'cssmin:docs']);
// Full distribution task.
grunt.registerTask('dist', ['clean:dist', 'dist-css', 'dist-js']);
@@ -535,7 +515,4 @@ module.exports = function (grunt) {
done();
});
});
- // Task for updating the cached RubyGem packages used by the Travis build (which are controlled by test-infra/Gemfile.lock).
- // This task should be run and the updated file should be committed whenever Bootstrap's RubyGem dependencies change.
- grunt.registerTask('update-gemfile-lock', ['exec:bundleUpdate']);
};