Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add license header for coffee & js files
  • Loading branch information
sudodoki committed Jan 30, 2014
1 parent 07c7404 commit 8e38ecc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
32 changes: 23 additions & 9 deletions Gruntfile.js
Expand Up @@ -2,6 +2,7 @@ module.exports = function (grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
coffee: {
lib: {
options: { bare: false },
Expand All @@ -17,15 +18,25 @@ module.exports = function (grunt) {
},
},
concat: {
'build/morris.coffee': [
'lib/morris.coffee',
'lib/morris.grid.coffee',
'lib/morris.hover.coffee',
'lib/morris.line.coffee',
'lib/morris.area.coffee',
'lib/morris.bar.coffee',
'lib/morris.donut.coffee'
],
'build/morris.coffee': {
options: {
banner: "### @license\n"+
"<%= pkg.name %> v<%= pkg.version %>\n"+
"Copyright <%= (new Date()).getFullYear() %> <%= pkg.author.name %> All rights reserved.\n" +
"Licensed under the <%= pkg.license %> License.\n" +
"###\n",
},
src: [
'lib/morris.coffee',
'lib/morris.grid.coffee',
'lib/morris.hover.coffee',
'lib/morris.line.coffee',
'lib/morris.area.coffee',
'lib/morris.bar.coffee',
'lib/morris.donut.coffee'
],
dest: 'build/morris.coffee'
},
'build/spec.coffee': ['spec/support/**/*.coffee', 'spec/lib/**/*.coffee']
},
less: {
Expand All @@ -39,6 +50,9 @@ module.exports = function (grunt) {
},
uglify: {
build: {
options: {
preserveComments: 'some'
},
files: {
'morris.min.js': 'morris.js'
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -2,6 +2,7 @@
"name": "morris.js",
"version": "0.5.0",
"homepage": "http://oesmith.github.com/morris.js",
"license": "BSD-2-Clause",
"description": "Easy, pretty charts",
"author": {
"name": "Olly Smith",
Expand Down

0 comments on commit 8e38ecc

Please sign in to comment.