Add license header for coffee & js files
This commit is contained in:
parent
07c740414b
commit
8e38ecc593
32
Gruntfile.js
32
Gruntfile.js
|
@ -2,6 +2,7 @@ module.exports = function (grunt) {
|
||||||
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
|
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
coffee: {
|
coffee: {
|
||||||
lib: {
|
lib: {
|
||||||
options: { bare: false },
|
options: { bare: false },
|
||||||
|
@ -17,15 +18,25 @@ module.exports = function (grunt) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
concat: {
|
concat: {
|
||||||
'build/morris.coffee': [
|
'build/morris.coffee': {
|
||||||
'lib/morris.coffee',
|
options: {
|
||||||
'lib/morris.grid.coffee',
|
banner: "### @license\n"+
|
||||||
'lib/morris.hover.coffee',
|
"<%= pkg.name %> v<%= pkg.version %>\n"+
|
||||||
'lib/morris.line.coffee',
|
"Copyright <%= (new Date()).getFullYear() %> <%= pkg.author.name %> All rights reserved.\n" +
|
||||||
'lib/morris.area.coffee',
|
"Licensed under the <%= pkg.license %> License.\n" +
|
||||||
'lib/morris.bar.coffee',
|
"###\n",
|
||||||
'lib/morris.donut.coffee'
|
},
|
||||||
],
|
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']
|
'build/spec.coffee': ['spec/support/**/*.coffee', 'spec/lib/**/*.coffee']
|
||||||
},
|
},
|
||||||
less: {
|
less: {
|
||||||
|
@ -39,6 +50,9 @@ module.exports = function (grunt) {
|
||||||
},
|
},
|
||||||
uglify: {
|
uglify: {
|
||||||
build: {
|
build: {
|
||||||
|
options: {
|
||||||
|
preserveComments: 'some'
|
||||||
|
},
|
||||||
files: {
|
files: {
|
||||||
'morris.min.js': 'morris.js'
|
'morris.min.js': 'morris.js'
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
"name": "morris.js",
|
"name": "morris.js",
|
||||||
"version": "0.5.0",
|
"version": "0.5.0",
|
||||||
"homepage": "http://oesmith.github.com/morris.js",
|
"homepage": "http://oesmith.github.com/morris.js",
|
||||||
|
"license": "BSD-2-Clause",
|
||||||
"description": "Easy, pretty charts",
|
"description": "Easy, pretty charts",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Olly Smith",
|
"name": "Olly Smith",
|
||||||
|
|
Loading…
Reference in New Issue