Skip to content

Instantly share code, notes, and snippets.

@rianrainey
Created November 13, 2013 03:26
Show Gist options
  • Save rianrainey/7443208 to your computer and use it in GitHub Desktop.
Save rianrainey/7443208 to your computer and use it in GitHub Desktop.
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