Skip to content

Commit

Permalink
updating gruntfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Sevilleja committed Sep 25, 2014
1 parent bf1fcc4 commit 0b524a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 6 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module.exports = function(grunt) {

grunt.initConfig({

pkg: grunt.file.readJSON('package.json'),

// configure jshint to validate js files -----------------------------------
jshint: {
options: {
Expand All @@ -13,10 +15,10 @@ module.exports = function(grunt) {
// configure uglify to minify js files -------------------------------------
uglify: {
options: {
banner: '/*\n <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> \n*/\n' +
banner: '/*\n* <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> \n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>; */\n'
},
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %> \n*/\n'
},
build: {
files: {
'dist/scotchPanels.min.js': 'src/scotchPanels.js'
Expand All @@ -28,7 +30,7 @@ module.exports = function(grunt) {
watch: {
scripts: {
files: 'src/*.js',
tasks: ['jshint', 'uglify']
tasks: ['uglify']
}
}

Expand Down
Loading

0 comments on commit 0b524a2

Please sign in to comment.