1
1
mirror of https://github.com/primer/css.git synced 2024-11-11 04:00:54 +03:00

Add autoprefixer to our docs CSS, update default task to build docs and run it

This commit is contained in:
Mark Otto 2015-03-28 01:14:03 -07:00
parent c5bf85e179
commit 5be5c91d86

View File

@ -26,6 +26,9 @@ module.exports = function(grunt) {
dist: {
src: 'css/*.css'
},
docs: {
src: '_site/*.css'
}
},
// Runs CSS reporting
@ -60,7 +63,7 @@ module.exports = function(grunt) {
watch: {
sass: {
files: 'scss/**/*.scss',
files: ['scss/**/*.scss', 'docs/docs.scss'],
tasks: ['sass', 'autoprefixer', 'parker']
}
},
@ -98,7 +101,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-sass');
// Generate and format the CSS
grunt.registerTask('default', ['sass', 'autoprefixer', 'parker']);
grunt.registerTask('default', ['sass', 'jekyll', 'autoprefixer', 'parker']);
// Publish to GitHub
grunt.registerTask('publish', ['jekyll', 'buildcontrol:pages']);