Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
58f03754
Commit
58f03754
authored
May 12, 2014
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unfuck the gruntifle
parent
e52920ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Gruntfile.js
Gruntfile.js
+9
-9
No files found.
Gruntfile.js
View file @
58f03754
...
@@ -20,7 +20,7 @@ module.exports = function (grunt) {
...
@@ -20,7 +20,7 @@ module.exports = function (grunt) {
var
generateGlyphiconsData
=
require
(
'
./grunt/bs-glyphicons-data-generator.js
'
);
var
generateGlyphiconsData
=
require
(
'
./grunt/bs-glyphicons-data-generator.js
'
);
var
BsLessdocParser
=
require
(
'
./grunt/bs-lessdoc-parser.js
'
);
var
BsLessdocParser
=
require
(
'
./grunt/bs-lessdoc-parser.js
'
);
var
generateRawFiles
=
require
(
'
./grunt/bs-raw-files-generator.js
'
);
var
generateRawFiles
=
require
(
'
./grunt/bs-raw-files-generator.js
'
);
//
var updateShrinkwrap = require('./grunt/shrinkwrap.js');
var
updateShrinkwrap
=
require
(
'
./grunt/shrinkwrap.js
'
);
// Project configuration.
// Project configuration.
grunt
.
initConfig
({
grunt
.
initConfig
({
...
@@ -182,6 +182,7 @@ module.exports = function (grunt) {
...
@@ -182,6 +182,7 @@ module.exports = function (grunt) {
},
},
files
:
{
files
:
{
'
dist/css/<%= pkg.name %>.min.css
'
:
'
dist/css/<%= pkg.name %>.css
'
,
'
dist/css/<%= pkg.name %>.min.css
'
:
'
dist/css/<%= pkg.name %>.css
'
,
'
dist/css/<%= pkg.name %>-rtl.min.css
'
:
'
dist/css/<%= pkg.name %>-rtl.css
'
,
'
dist/css/<%= pkg.name %>-theme.min.css
'
:
'
dist/css/<%= pkg.name %>-theme.css
'
'
dist/css/<%= pkg.name %>-theme.min.css
'
:
'
dist/css/<%= pkg.name %>-theme.css
'
}
}
}
}
...
@@ -237,8 +238,7 @@ module.exports = function (grunt) {
...
@@ -237,8 +238,7 @@ module.exports = function (grunt) {
cssmin
:
{
cssmin
:
{
options
:
{
options
:
{
compatibility
:
'
ie8
'
,
compatibility
:
'
ie8
'
,
keepSpecialComments
:
'
*
'
,
keepSpecialComments
:
'
*
'
noAdvanced
:
true
},
},
docs
:
{
docs
:
{
src
:
[
src
:
[
...
@@ -388,9 +388,9 @@ module.exports = function (grunt) {
...
@@ -388,9 +388,9 @@ module.exports = function (grunt) {
npmUpdate
:
{
npmUpdate
:
{
command
:
'
npm update
'
command
:
'
npm update
'
},
},
//
npmShrinkWrap: {
npmShrinkWrap
:
{
//
command: 'npm shrinkwrap --dev'
command
:
'
npm shrinkwrap --dev
'
//
}
}
}
}
});
});
...
@@ -435,7 +435,7 @@ module.exports = function (grunt) {
...
@@ -435,7 +435,7 @@ module.exports = function (grunt) {
grunt
.
registerTask
(
'
dist
'
,
[
'
clean
'
,
'
dist-css
'
,
'
copy:fonts
'
,
'
dist-js
'
,
'
dist-docs
'
]);
grunt
.
registerTask
(
'
dist
'
,
[
'
clean
'
,
'
dist-css
'
,
'
copy:fonts
'
,
'
dist-js
'
,
'
dist-docs
'
]);
// Default task.
// Default task.
grunt
.
registerTask
(
'
default
'
,
[
'
test
'
,
'
dist
'
,
'
build-glyphicons-data
'
,
'
build-customizer
'
]);
grunt
.
registerTask
(
'
default
'
,
[
'
test
'
,
'
dist
'
,
'
build-glyphicons-data
'
,
'
build-customizer
'
,
'
update-shrinkwrap
'
]);
// Version numbering task.
// Version numbering task.
// grunt change-version-number --oldver=A.B.C --newver=X.Y.Z
// grunt change-version-number --oldver=A.B.C --newver=X.Y.Z
...
@@ -453,6 +453,6 @@ module.exports = function (grunt) {
...
@@ -453,6 +453,6 @@ module.exports = function (grunt) {
});
});
// Task for updating the npm packages used by the Travis build.
// Task for updating the npm packages used by the Travis build.
//
grunt.registerTask('update-shrinkwrap', ['exec:npmUpdate', 'exec:npmShrinkWrap', '_update-shrinkwrap']);
grunt
.
registerTask
(
'
update-shrinkwrap
'
,
[
'
exec:npmUpdate
'
,
'
exec:npmShrinkWrap
'
,
'
_update-shrinkwrap
'
]);
//
grunt.registerTask('_update-shrinkwrap', function () { updateShrinkwrap.call(this, grunt); });
grunt
.
registerTask
(
'
_update-shrinkwrap
'
,
function
()
{
updateShrinkwrap
.
call
(
this
,
grunt
);
});
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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