Skip to content

Instantly share code, notes, and snippets.

@ricardoriogo
Created January 4, 2014 16:37
Show Gist options
  • Save ricardoriogo/8257152 to your computer and use it in GitHub Desktop.
Save ricardoriogo/8257152 to your computer and use it in GitHub Desktop.
Grunt base files.
module.exports = function(grunt) {
// Load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
less: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
}
}
});
// Default task(s).
grunt.registerTask('default', ['less']);
};
{
"name": "project-name",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-less": "~0.8.3",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-concat": "~0.3.0",
"matchdep": "~0.3.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment