Permalink
Browse files

Add copyright and license

  • Loading branch information...
1 parent 3c11875 commit c13a6baaff570907114b035a652f47b4fad82806 @gzip committed Jun 2, 2012
Showing with 19 additions and 2 deletions.
  1. +1 −1 README.md
  2. +2 −1 build/index.js
  3. +6 −0 examples/public/libs/cmbn/0.0.1/cmbn.js
  4. +1 −0 examples/public/libs/cmbn/0.0.1/cmbn.min.js
  5. +3 −0 lib/cdns.js
  6. +3 −0 lib/combine.js
  7. +3 −0 lib/server.js
View
2 README.md
@@ -109,4 +109,4 @@ See the examples folder and code for more usage information.
## License
-MIT
+MIT License. See the accompanying LICENSE file for terms.
View
3 build/index.js
@@ -5,6 +5,7 @@ var fs = require('fs'),
cdns = root + 'lib/cdns.js',
client = root + 'lib/combine.js',
pkg = JSON.parse(fs.readFileSync(root + 'package.json', 'utf-8')),
+ c = fs.readFileSync(root + 'build/copyright.js', 'utf-8'),
ver = pkg.version,
outfile = root + 'examples/public/libs/cmbn/' + ver + '/cmbn.min.js',
out = strip(cdns) + '\n' + strip(client);
@@ -28,7 +29,7 @@ function write(outfile, out)
// write minified
console.log('Writing ' + file + '...');
- fs.writeFileSync(file, outmin, 'utf-8');
+ fs.writeFileSync(file, c + outmin, 'utf-8');
// write unminified
file = file.replace('.min', '');
View
6 examples/public/libs/cmbn/0.0.1/cmbn.js
@@ -1,3 +1,6 @@
+/* Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */
+
;(function(){
/* was attempting the following formatters for gg and ms but the assets don't have enough consistency
@@ -78,6 +81,9 @@ var methods =
})();
+/* Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */
+
;(function(){
var combine = function (urls, options)
View
1 examples/public/libs/cmbn/0.0.1/cmbn.min.js
@@ -1 +1,2 @@
+/* Copyright (c) 2012 Yahoo! Inc. All rights reserved. Copyrights licensed under the MIT License.*/
(function(){function a(a,b){return(b||"3.5.1")+"/build/"+a+"/"+a+"-min.js"}function b(a){var b=(new RegExp("/([0-9ab.]+)/build/([a-z-]+)/[a-z-]+.js$")).exec(a);return b?[b[2],b[1]]:!1}var c={cb:{host:"cmbn.us"},cc:{host:"cdncss.com"},cj:{host:"cdnjs.cloudflare.com",prefix:"ajax/libs/"},gg:{host:"ajax.googleapis.com",prefix:"ajax/libs/"},gh:{host:"raw.github.com",protocol:"https"},ms:{host:"ajax.aspnetcdn.com",prefix:"ajax/"},yui:{host:"yui.yahooapis.com",formatter:a,deformatter:b}},d={getCdnByHost:function(a){var b,d;for(b in c){d=c.hasOwnProperty(b)?c[b]:{};if(d.host===a)return d.code=b,d}return null},getCdn:function(a){return c[a]},addCdn:function(a,b){c[a]=b},isFunc:function(a){return typeof a=="function"}},e=function(){return this}();e.cmbn=e.cmbn||{},e.cmbn.cdns=d})(),function(){var a=function(a,b){var c=b||{},e="",f,g;return a.forEach(function(a){var b=a.charAt(0);if("~"===b)g="/"+a;else{var c=(new RegExp("^https?://([^/]+)([^?#]+)")).exec(a),h=c[1],i=c[2],j=d.getCdnByHost(h)||[],k=j.code,l;if(j){var m=1+(j.prefix?j.prefix.length:0),l;l=d.isFunc(j.deformatter)?j.deformatter(i):i.substr(m).replace(/\//g,","),l instanceof Array&&(k+="@"+l[1],l=l[0]),g=(f===k?"":"/~"+k)+";"+l,f=k}}e+=g}),(c.protocol||"http")+"://"+(c.host||"cmbn.us")+e},b=function(){return this}(),c=b.cmbn;if(c){var d=c.cdns;c.client={combine:a}}}()
View
3 lib/cdns.js
@@ -1,3 +1,6 @@
+/* Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */
+
;(function(){
/* was attempting the following formatters for gg and ms but the assets don't have enough consistency
View
3 lib/combine.js
@@ -1,3 +1,6 @@
+/* Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */
+
;(function(){
var combine = function (urls, options)
View
3 lib/server.js
@@ -1,3 +1,6 @@
+/* Copyright (c) 2012 Yahoo! Inc. All rights reserved.
+ Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */
+
var url = require('url'),
md5 = require('MD5'),
lru = require('lru-cache'),

0 comments on commit c13a6ba

Please sign in to comment.