Skip to content

Commit

Permalink
Updated gruntfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
robbz committed Mar 16, 2013
1 parent 1826a0b commit 152455c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions Gruntfile.js
@@ -1,6 +1,16 @@
'use strict';

module.exports = function (grunt) {

var banner = '/*!\n' +
' * <%= pkg.name %> - v<%= pkg.version %>\n' +
' * (c) <%= pkg.author %>\n' +
' * License: MIT (http://www.opensource.org/licenses/mit-license.php)\n' +
' * <%= grunt.template.today("yyyy-mm-dd") %> \n' +
' */\n';

var jsFiles = ['lib/flexigin.js', 'lib/load.js', 'lib/resolve.js']

grunt.initConfig({
jshint: {
files: [ '**/*.js', '!node_modules/**/*.js', '!public/**/*.js' ],
Expand All @@ -12,31 +22,21 @@ module.exports = function (grunt) {
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*!\n' +
' * <%= pkg.name %> - v<%= pkg.version %>\n' +
' * (c) <%= pkg.author %>\n' +
' * License: MIT (http://www.opensource.org/licenses/mit-license.php)\n' +
' * <%= grunt.template.today("yyyy-mm-dd") %> \n' +
' */\n'
banner: banner
},
my_target: {
files: {
'bin/flexigin-<%= pkg.version %>.min.js': ['lib/flexigin.js', 'lib/load.js', 'lib/resolve.js']
'bin/flexigin-<%= pkg.version %>.min.js': jsFiles
}
}
},

concat: {
options: {
banner: '/*!\n' +
' * <%= pkg.name %> - v<%= pkg.version %>\n' +
' * (c) <%= pkg.author %>\n' +
' * License: MIT (http://www.opensource.org/licenses/mit-license.php)\n' +
' * <%= grunt.template.today("yyyy-mm-dd") %> \n' +
' */\n'
banner: banner
},
dist: {
src: ['lib/flexigin.js', 'lib/load.js', 'lib/resolve.js'],
src: jsFiles,
dest: 'bin/flexigin-<%= pkg.version %>.js'
}
},
Expand Down

0 comments on commit 152455c

Please sign in to comment.