Skip to content

Commit

Permalink
Properly format copyright in concat
Browse files Browse the repository at this point in the history
  • Loading branch information
weikinhuang committed Mar 29, 2013
1 parent 9522674 commit e5c0b54
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
var fs = require("fs");

module.exports = function(grunt) {
"use strict";

Expand All @@ -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")
}
},

Expand Down
6 changes: 2 additions & 4 deletions src/intro.js → srcwrap/copyright.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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";
2 changes: 2 additions & 0 deletions srcwrap/intro.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(function(root, undefined) {
"use strict";
File renamed without changes.

0 comments on commit e5c0b54

Please sign in to comment.