Skip to content

Instantly share code, notes, and snippets.

@cowboy
Created April 18, 2012 12:01
Show Gist options
  • Select an option

  • Save cowboy/2413120 to your computer and use it in GitHub Desktop.

Select an option

Save cowboy/2413120 to your computer and use it in GitHub Desktop.
For matjas
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
'meta': {
'banner': '/*! LOL PENIS | <%= grunt.template.today("yyyy-mm-dd HH:MM:ss") %> */',
srcfiles: [
'js/libs/jquery-1.7.2.js',
'js/libs/jquery.placeholder.js',
'js/main.js',
'jscustom/custom.js'
]
},
'concat': {
'dist': {
'src': ['<banner:meta.banner>', '<config:meta.srcfiles>'],
'dest': 'js/build/all.js'
}
},
'min': {
'dist': {
'src': ['<banner:meta.banner>', '<config:concat.dist.dest>'],
'dest': 'js/build/all.min.js'
}
},
'watch': {
'files': '<config:meta.srcfiles>',
'tasks': 'concat min'
}
});
// Default task.
grunt.registerTask('default', 'concat min');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment