Created
May 24, 2013 21:34
-
-
Save noahbass/5646677 to your computer and use it in GitHub Desktop.
A starter Gruntfile for use with WordPress Bootstrap by 320press.
This file contains hidden or 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){ | |
| 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