mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Merge two fs variable declarations into one
One is enough.
This commit is contained in:
parent
a2aaf80c7e
commit
0016b508cb
@ -9,7 +9,10 @@ module.exports = function (grunt) {
|
|||||||
RegExp.quote = function (string) {
|
RegExp.quote = function (string) {
|
||||||
return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&')
|
return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var fs = require('fs')
|
||||||
var btoa = require('btoa')
|
var btoa = require('btoa')
|
||||||
|
|
||||||
// Project configuration.
|
// Project configuration.
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
|
|
||||||
@ -320,8 +323,6 @@ module.exports = function (grunt) {
|
|||||||
grunt.registerTask('change-version-number', ['sed']);
|
grunt.registerTask('change-version-number', ['sed']);
|
||||||
|
|
||||||
grunt.registerTask('build-glyphicons-data', function () {
|
grunt.registerTask('build-glyphicons-data', function () {
|
||||||
var fs = require('fs')
|
|
||||||
|
|
||||||
// Pass encoding, utf8, so `readFileSync` will return a string instead of a
|
// Pass encoding, utf8, so `readFileSync` will return a string instead of a
|
||||||
// buffer
|
// buffer
|
||||||
var glyphiconsFile = fs.readFileSync('less/glyphicons.less', 'utf8')
|
var glyphiconsFile = fs.readFileSync('less/glyphicons.less', 'utf8')
|
||||||
@ -347,8 +348,6 @@ module.exports = function (grunt) {
|
|||||||
|
|
||||||
// task for building customizer
|
// task for building customizer
|
||||||
grunt.registerTask('build-customizer', 'Add scripts/less files to customizer.', function () {
|
grunt.registerTask('build-customizer', 'Add scripts/less files to customizer.', function () {
|
||||||
var fs = require('fs')
|
|
||||||
|
|
||||||
function getFiles(type) {
|
function getFiles(type) {
|
||||||
var files = {}
|
var files = {}
|
||||||
fs.readdirSync(type)
|
fs.readdirSync(type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user