Skip to content

Instantly share code, notes, and snippets.

@noahbass
Created May 24, 2013 21:34
Show Gist options
  • Select an option

  • Save noahbass/5646677 to your computer and use it in GitHub Desktop.

Select an option

Save noahbass/5646677 to your computer and use it in GitHub Desktop.
A starter Gruntfile for use with WordPress Bootstrap by 320press.
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
less: {
production: {
files: {
"library/less/bootstrap.less": "library/css/bootstrap.css"
}
}
},
cssmin: {
options: {
banner: '/*! <%= pkg.name %> | <%= grunt.template.today("yyyy-mm-dd") %> */'
},
minify: {
src: ['library/css/bootstrap.css'],
dest: 'library/css/bootstrap.min.css'
}
},
concat: {
build: {
src: ['library/js/*.js'],
dest: 'library/js/main.js'
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> | <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
files: {
'library/js/main.min.js': ['library/js/main.js']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['concat', 'less', 'cssmin', 'uglify']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment