Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
dcffbbab
Commit
dcffbbab
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
pass grunt into generateRawFilesJs instead of require()ing it
parent
1c6d303b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Gruntfile.js
+1
-1
Gruntfile.js
grunt/bs-raw-files-generator.js
+1
-2
grunt/bs-raw-files-generator.js
with
2 additions
and
3 deletions
+2
-3
Gruntfile.js
+
1
-
1
View file @
dcffbbab
...
...
@@ -460,7 +460,7 @@ module.exports = function (grunt) {
grunt
.
registerTask
(
'
build-customizer-html
'
,
'
jade
'
);
grunt
.
registerTask
(
'
build-raw-files
'
,
'
Add scripts/less files to customizer.
'
,
function
()
{
var
banner
=
grunt
.
template
.
process
(
'
<%= banner %>
'
);
generateRawFiles
(
banner
);
generateRawFiles
(
grunt
,
banner
);
});
// Task for updating the npm packages used by the Travis build.
...
...
This diff is collapsed.
Click to expand it.
grunt/bs-raw-files-generator.js
+
1
-
2
View file @
dcffbbab
...
...
@@ -10,7 +10,6 @@
'
use strict
'
;
var
fs
=
require
(
'
fs
'
);
var
btoa
=
require
(
'
btoa
'
);
var
grunt
=
require
(
'
grunt
'
);
function
getFiles
(
type
)
{
var
files
=
{};
...
...
@@ -25,7 +24,7 @@ function getFiles(type) {
return
'
var __
'
+
type
+
'
=
'
+
JSON
.
stringify
(
files
)
+
'
\n
'
;
}
module
.
exports
=
function
generateRawFilesJs
(
banner
)
{
module
.
exports
=
function
generateRawFilesJs
(
grunt
,
banner
)
{
if
(
!
banner
)
{
banner
=
''
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment