Permalink
Browse files

Properly format copyright in concat

  • Loading branch information...
weikinhuang committed Mar 7, 2013
1 parent 67a3be6 commit ba7657e4733513ef07cfa367ae68196e46b8a3ec
Showing with 11 additions and 6 deletions.
  1. +6 −1 Gruntfile.js
  2. +1 −1 package.json
  3. +2 −4 src/intro.js → srcwrap/copyright.js
  4. +2 −0 srcwrap/intro.js
  5. 0 {src → srcwrap}/outro.js
View
@@ -1,3 +1,5 @@
+var fs = require("fs");
+
module.exports = function(grunt) {
"use strict";
@@ -10,8 +12,11 @@ module.exports = function(grunt) {
concat : {
dist : {
- src : [ "src/intro.js", "src/core.js", "src/create.js", "src/mutator.static.js", "src/mutator.nowrap.js", "src/mutator.alias.js", "src/mutator.bind.js", "src/observer.js", "src/mutator.observable.js", "src/namespace.js", "src/export.js", "src/outro.js" ],
+ src : [ "srcwrap/intro.js", "src/core.js", "src/create.js", "src/mutator.static.js", "src/mutator.nowrap.js", "src/mutator.alias.js", "src/mutator.bind.js", "src/observer.js", "src/mutator.observable.js", "src/namespace.js", "src/export.js", "srcwrap/outro.js" ],
dest : "dist/classify.js",
+ },
+ options : {
+ banner : fs.readFileSync("srcwrap/copyright.js", "utf8")
}
},
View
@@ -15,7 +15,7 @@
"abstraction"
],
"author": "Wei Kin Huang <wei@closedinterval.com>",
- "version": "0.10.0",
+ "version": "0.10.1",
"homepage": "http://classifyjs.com",
"repository": {
"type": "git",
View
@@ -2,10 +2,8 @@
* Classify JavaScript Library v<%= pkg.version %>
* http://www.closedinterval.com/
*
- * Copyright 2011-2013, Wei Kin Huang
+ * Copyright 2011-<%= grunt.template.today("yyyy") %>, Wei Kin Huang
* Classify is freely distributable under the MIT license.
*
- * Date: @DATE
+ * Date: <%= grunt.template.today() %>
*/
-(function(root, undefined) {
- "use strict";
View
@@ -0,0 +1,2 @@
+(function(root, undefined) {
+ "use strict";
File renamed without changes.

0 comments on commit ba7657e

Please sign in to comment.