Skip to content

Commit

Permalink
fix(ticks): Add autoprefixer for CSS builds to prefix transform
Browse files Browse the repository at this point in the history
close #472
  • Loading branch information
ValentinH committed Dec 11, 2016
1 parent ec5cb57 commit 36a012c
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 50 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 5.8.9 (2016-12-11)
## Improvement
- Add autoprefixer for CSS builds (#472)

# 5.8.8 (2016-12-11)
## Fix
- Prevent angular being loaded twice when using with browserify (#474)
Expand Down
24 changes: 19 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = function(grunt) {
var banner = '/*! <%= pkg.name %> - v<%= pkg.version %> - \n' +
' (c) <%= pkg.author %> - \n'+
' <%= pkg.repository.url %> - \n' +
' <%= grunt.template.today("yyyy-mm-dd") %> */\n',
' (c) <%= pkg.author %> - \n' +
' <%= pkg.repository.url %> - \n' +
' <%= grunt.template.today("yyyy-mm-dd") %> */\n',
minBanner = banner.replace(/\n/g, '') + '\n';

// Project configuration.
Expand Down Expand Up @@ -155,6 +155,19 @@ module.exports = function(grunt) {
{expand: false, src: ['dist/rzslider.css'], dest: 'dist/rzslider.scss'},
]
}
},
postcss: {
options: {
map: true,
processors: [
require('autoprefixer')({
browsers: ['> 1%', 'last 2 versions', 'Firefox ESR']
})
]
},
dist: {
src: 'dist/rzslider.css'
}
}
});

Expand All @@ -168,10 +181,11 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-serve');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-postcss');

grunt.registerTask('default', ['css', 'js']);
grunt.registerTask('test', ['karma']);

grunt.registerTask('css', ['recess','concat:css', 'copy:copyToSass']);
grunt.registerTask('js', ['ngtemplates', 'replace','concat:js', 'ngAnnotate', 'uglify']);
grunt.registerTask('css', ['recess', 'concat:css', 'postcss:dist', 'copy:copyToSass']);
grunt.registerTask('js', ['ngtemplates', 'replace', 'concat:js', 'ngAnnotate', 'uglify']);
};
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-slider",
"version": "5.8.8",
"version": "5.8.9",
"homepage": "https://github.com/angular-slider/angularjs-slider",
"authors": [
"Rafal Zajac <[email protected]>",
Expand Down
33 changes: 15 additions & 18 deletions dist/rzslider.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/rzslider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! angularjs-slider - v5.8.8 -
/*! angularjs-slider - v5.8.9 -
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
https://github.com/angular-slider/angularjs-slider -
2016-12-11 */
Expand Down
Loading

0 comments on commit 36a012c

Please sign in to comment.