Skip to content

Commit

Permalink
Fixes autoprefixer/cssmin flow to avoid modification of files each ti…
Browse files Browse the repository at this point in the history
…me grunt runs
  • Loading branch information
daviferreira committed May 7, 2014
1 parent e53955e commit d28d7d2
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 19 deletions.
21 changes: 14 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,27 +95,34 @@ module.exports = function (grunt) {
};

gruntConfig.cssmin = {
minify: {
main: {
expand: true,
cwd: 'dist/css/',
src: ['**/*.css', '!*.min.css'],
src: ['*.css', '!*.min.css'],
dest: 'dist/css/',
ext: '.min.css'
},
themes: {
expand: true,
cwd: 'dist/css/themes/',
src: ['*.css', '!*.min.css'],
dest: 'dist/css/themes/',
ext: '.min.css'
}
};

gruntConfig.autoprefixer = {
main: {
expand: true,
flatten: true,
src: 'dist/css/*.css',
cwd: 'dist/css/',
src: ['*.css', '!*.min.css'],
dest: 'dist/css/',
browsers: autoprefixerBrowsers
},
themes: {
expand: true,
flatten: true,
src: 'dist/css/themes/*.css',
cwd: 'dist/css/themes/',
src: ['*.css', '!*.min.css'],
dest: 'dist/css/themes/',
browsers: autoprefixerBrowsers
}
Expand Down Expand Up @@ -171,7 +178,7 @@ module.exports = function (grunt) {

grunt.registerTask('test', ['jslint', 'jasmine:suite', 'csslint']);
grunt.registerTask('js', ['jslint', 'jasmine:suite', 'uglify', 'concat']);
grunt.registerTask('css', ['sass', 'cssmin', 'autoprefixer', 'csslint']);
grunt.registerTask('css', ['sass', 'autoprefixer', 'cssmin', 'csslint']);
grunt.registerTask('default', ['js', 'css']);

grunt.registerTask('spec', 'Runs a task on a specified file', function (taskName, fileName) {
Expand Down
5 changes: 0 additions & 5 deletions dist/css/medium-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,26 @@
@keyframes pop-upwards {
0% {
-webkit-transform: matrix(0.97, 0, 0, 1, 0, 12);
-ms-transform: matrix(0.97, 0, 0, 1, 0, 12);
transform: matrix(0.97, 0, 0, 1, 0, 12);
opacity: 0; }

20% {
-webkit-transform: matrix(0.99, 0, 0, 1, 0, 2);
-ms-transform: matrix(0.99, 0, 0, 1, 0, 2);
transform: matrix(0.99, 0, 0, 1, 0, 2);
opacity: 0.7; }

40% {
-webkit-transform: matrix(1, 0, 0, 1, 0, -1);
-ms-transform: matrix(1, 0, 0, 1, 0, -1);
transform: matrix(1, 0, 0, 1, 0, -1);
opacity: 1; }

70% {
-webkit-transform: matrix(1, 0, 0, 1, 0, 0);
-ms-transform: matrix(1, 0, 0, 1, 0, 0);
transform: matrix(1, 0, 0, 1, 0, 0);
opacity: 1; }

100% {
-webkit-transform: matrix(1, 0, 0, 1, 0, 0);
-ms-transform: matrix(1, 0, 0, 1, 0, 0);
transform: matrix(1, 0, 0, 1, 0, 0);
opacity: 1; } }

Expand Down
2 changes: 1 addition & 1 deletion dist/css/medium-editor.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/themes/bootstrap.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d28d7d2

Please sign in to comment.