mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-06 04:08:22 +01:00
Merge pull request #11739 from XhmikosR/lint-assets
Lint docs-assets/js/application.js and docs-assets/js/customizer.js.
This commit is contained in:
commit
ed63dfd8d3
@ -37,6 +37,9 @@ module.exports = function (grunt) {
|
||||
},
|
||||
test: {
|
||||
src: ['js/tests/unit/*.js']
|
||||
},
|
||||
assets: {
|
||||
src: ['docs-assets/js/application.js', 'docs-assets/js/customizer.js']
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
* details, see http://creativecommons.org/licenses/by/3.0/.
|
||||
*/
|
||||
|
||||
/* jshint multistr:true */
|
||||
|
||||
window.onload = function () { // wait for load in a dumb way because B-0
|
||||
var cw = '/*!\n * Bootstrap v3.0.3\n *\n * Copyright 2013 Twitter, Inc\n * Licensed under the Apache License v2.0\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Designed and built with all the love in the world @twitter by @mdo and @fat.\n */\n\n'
|
||||
@ -130,20 +131,20 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
||||
|
||||
if (js) {
|
||||
var jsFolder = zip.folder('js')
|
||||
for (var fileName in js) {
|
||||
jsFolder.file(fileName, js[fileName])
|
||||
for (var jsFileName in js) {
|
||||
jsFolder.file(jsFileName, js[jsFileName])
|
||||
}
|
||||
}
|
||||
|
||||
if (fonts) {
|
||||
var fontsFolder = zip.folder('fonts')
|
||||
for (var fileName in fonts) {
|
||||
fontsFolder.file(fileName, fonts[fileName], {base64: true})
|
||||
for (var fontsFileName in fonts) {
|
||||
fontsFolder.file(fontsFileName, fonts[fontsFileName], {base64: true})
|
||||
}
|
||||
}
|
||||
|
||||
if (config) {
|
||||
zip.file('config.json', config)
|
||||
zip.file("config.json", config)
|
||||
}
|
||||
|
||||
var content = zip.generate({ type: "blob" })
|
||||
|
Loading…
x
Reference in New Issue
Block a user