Skip to content

Commit

Permalink
Updated grunt to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeHunger committed Jun 8, 2013
1 parent 9f7d396 commit e16c528
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,61 @@
module.exports = function(grunt) {
var files = ['<banner:meta.banner>',
'source/jarallax.js',
'source/jarallax_tools.js',
'source/jarallax_controller.js',
'source/jarallax_counter.js',
'source/jarallax_object.js',
'source/jarallax_animation.js',
'source/controllers/*.js',
'import/*/*.js']

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '/*!\n' +
' * <%= pkg.name %>\n' +
' * Version: <%= pkg.version %>\n' +
' * website: <%= pkg.website %>\n' +
' *\n' +
' * Copyright <%= grunt.template.today("yyyy") %>, <%= pkg.author %>\n' +
' * <%= pkg.license.type%>\n' +
' * <%= pkg.license.url%>\n' +
' * \n' +
' * Date: <%= grunt.template.today("dd mmm yyyy") %>\n' +
' */\n\n'
},
jshint: {
files: ['source/*.js', 'source/controllers/*.js']
},
concat: {
options: {
banner: '/*!\n' +
' * <%= pkg.name %>\n' +
' * Version: <%= pkg.version %>\n' +
' * website: <%= pkg.website %>\n' +
' *\n' +
' * Copyright <%= grunt.template.today("yyyy") %>, <%= pkg.author %>\n' +
' * <%= pkg.license.type%>\n' +
' * <%= pkg.license.url%>\n' +
' * \n' +
' * Date: <%= grunt.template.today("dd mmm yyyy") %>\n' +
' */\n\n'
},
dist: {
src: files,
dest: '<%= pkg.destination %><%= pkg.file_name %>-<%= pkg.version %>.js'
}
},
uglify: {
dist: {
src: files,
dest: '<%= pkg.destination %><%= pkg.file_name %>-<%= pkg.version %>.min.js'
}
}
});

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.registerTask('default', ['jshint', 'concat', 'uglify']);
};

0 comments on commit e16c528

Please sign in to comment.