Created
November 13, 2013 03:26
-
-
Save rianrainey/7443208 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
uglify: { | |
options: { | |
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' | |
}, | |
build: { | |
src: 'content/themes/rachelcruze/assets/js/app.js', | |
dest: 'content/themes/rachelcruze/assets/js/app.min.js', | |
} | |
}, | |
sass: { | |
dist: { | |
options: { | |
loadPath: require('node-bourbon').includePaths, | |
style: 'compact' | |
}, | |
files: { | |
'content/themes/rachelcruze/assets/css/screen.css': 'content/themes/rachelcruze/assets/sass/screen.scss' | |
} | |
} | |
}, | |
watch: { | |
css: { | |
files: '**/*.scss', | |
tasks: ['sass'] | |
} | |
} | |
}); | |
// Load the plugin that provides the "uglify" task. | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.loadNpmTasks('grunt-contrib-sass'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
// Default task(s). | |
grunt.registerTask('production', ['uglify', 'sass']); | |
grunt.registerTask('dev', ['watch']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment