ensure new line at end of compiled files

This commit is contained in:
FezVrasta 2014-12-04 14:00:01 +01:00
parent 518434d6d0
commit 52e073a3c5
15 changed files with 77 additions and 28 deletions

View File

@ -130,6 +130,46 @@ module.exports = function(grunt) {
}
},
// Ensure new line at end of every file
file_append: {
materialcss: {
files: {
"dist/css/material.css": { append: "\n" },
"dist/css/material.min.css": { append: "\n" },
"dist/css/material.css.map": { append: "\n" },
"dist/css/material.min.css.map": { append: "\n" }
}
},
materialwfontcss: {
files: {
"dist/css/material-wfont.css": { append: "\n" },
"dist/css/material-wfont.min.css": { append: "\n" },
"dist/css/material-wfont.css.map": { append: "\n" },
"dist/css/material-wfont.min.css.map": { append: "\n" }
}
},
ripplescss: {
files: {
"dist/css/ripples.css": { append: "\n" },
"dist/css/ripples.min.css": { append: "\n" },
"dist/css/ripples.css.map": { append: "\n" },
"dist/css/ripples.min.css.map": { append: "\n" }
}
},
materialjs: {
files: {
"dist/js/material.min.js": { append: "\n" },
"dist/js/material.min.js.map": { append: "\n" }
}
},
ripplesjs: {
files: {
"dist/js/ripples.min.js": { append: "\n" },
"dist/js/ripples.min.js.map": { append: "\n" }
}
}
},
connect: {
options: {
port: 8040,
@ -208,21 +248,13 @@ module.exports = function(grunt) {
]
}
}
});
grunt.registerTask("default", ["material", "ripples"]);
grunt.registerTask("material", [
"less:material",
"less:materialwfont",
"csswring:material",
"csswring:materialwfont",
"csswring:ripples",
"autoprefixer:material",
"autoprefixer:materialwfont",
"copy:material",
"uglify:material"
"material:less",
"material:js"
]);
grunt.registerTask("material:less", [
"less:material",
@ -230,7 +262,9 @@ module.exports = function(grunt) {
"csswring:material",
"csswring:materialwfont",
"autoprefixer:material",
"autoprefixer:materialwfont"
"autoprefixer:materialwfont",
"file_append:materialcss",
"file_append:materialwfontcss"
]);
grunt.registerTask("material:js", [
"copy:material",
@ -238,20 +272,20 @@ module.exports = function(grunt) {
]);
grunt.registerTask("ripples", [
"less:ripples",
"csswring:ripples",
"autoprefixer:ripples",
"copy:ripples",
"uglify:ripples"
"ripples:less",
"ripples:js",
"file_append:ripplescss"
]);
grunt.registerTask("ripples:less", [
"less:ripples",
"csswring:ripples",
"autoprefixer:ripples"
"autoprefixer:ripples",
"file_append:materialjs"
]);
grunt.registerTask("ripples:js", [
"copy:ripples",
"uglify:ripples"
"uglify:ripples",
"file_append:ripplesjs"
]);
grunt.registerTask("build", function(target) {

View File

@ -2311,6 +2311,11 @@ h5,
h6 {
font-weight: 400;
}
a,
a:hover,
a:focus {
color: #009587;
}
body .well,
.container .well,
.container-fluid .well,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2287,6 +2287,11 @@ h5,
h6 {
font-weight: 400;
}
a,
a:hover,
a:focus {
color: #009587;
}
body .well,
.container .well,
.container-fluid .well,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -23,6 +23,10 @@ h5, h6{
font-weight: 400;
}
a, a:hover, a:focus {
color: @primary;
}
// Well and Jumbotrons
@import "_welljumbo.less";

View File

@ -29,6 +29,7 @@
"grunt-contrib-uglify": "^0.6.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-csswring": "^1.1.0",
"grunt-file-append": "0.0.5",
"grunt-newer": "^0.7.0",
"jshint-stylish": "^1.0.0",
"load-grunt-tasks": "^0.6.0"