Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
46b0874e
Commit
46b0874e
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
add copyright notice to raw-files.js
parent
027af6de
1 merge request
!12224
add copyright notice to raw-files.js
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Gruntfile.js
+4
-1
Gruntfile.js
docs/assets/js/raw-files.js
+5
-0
docs/assets/js/raw-files.js
docs/grunt/bs-raw-files-generator.js
+5
-2
docs/grunt/bs-raw-files-generator.js
with
14 additions
and
3 deletions
+14
-3
Gruntfile.js
+
4
-
1
View file @
46b0874e
...
...
@@ -396,5 +396,8 @@ module.exports = function (grunt) {
// task for building customizer
grunt
.
registerTask
(
'
build-customizer
'
,
[
'
build-customizer-vars-form
'
,
'
build-raw-files
'
]);
grunt
.
registerTask
(
'
build-customizer-vars-form
'
,
[
'
jade
'
]);
grunt
.
registerTask
(
'
build-raw-files
'
,
'
Add scripts/less files to customizer.
'
,
generateRawFilesJs
);
grunt
.
registerTask
(
'
build-raw-files
'
,
'
Add scripts/less files to customizer.
'
,
function
()
{
var
banner
=
grunt
.
template
.
process
(
'
<%= banner %>
'
);
generateRawFilesJs
(
banner
);
});
};
This diff is collapsed.
Click to expand it.
docs/assets/js/raw-files.js
+
5
-
0
View file @
46b0874e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
docs/grunt/bs-raw-files-generator.js
+
5
-
2
View file @
46b0874e
...
...
@@ -16,7 +16,10 @@ function getFiles(type) {
return
'
var __
'
+
type
+
'
=
'
+
JSON
.
stringify
(
files
)
+
'
\n
'
}
module
.
exports
=
function
generateRawFilesJs
()
{
var
files
=
getFiles
(
'
js
'
)
+
getFiles
(
'
less
'
)
+
getFiles
(
'
fonts
'
)
module
.
exports
=
function
generateRawFilesJs
(
banner
)
{
if
(
!
banner
)
{
banner
=
''
}
var
files
=
banner
+
getFiles
(
'
js
'
)
+
getFiles
(
'
less
'
)
+
getFiles
(
'
fonts
'
)
fs
.
writeFileSync
(
'
docs/assets/js/raw-files.js
'
,
files
)
}
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
Menu
Explore
Projects
Groups
Snippets