Skip to content
Browse files

modified build script to place the contents of LICENSE.txt on the top…

… of the files
  • Loading branch information...
1 parent 5d45e4a commit a05b7ee4998751e4321fd9b4a47380a4bcb172eb @cburgdorf committed Mar 31, 2012
Showing with 37 additions and 1 deletion.
  1. +13 −0 build/swiftcore.js
  2. +11 −1 build/swiftcore.min.js
  3. +12 −0 buildscripts/LICENSE.txt
  4. +1 −0 buildscripts/build.js
View
13 build/swiftcore.js
@@ -1,3 +1,16 @@
+/*
+The MIT License
+
+Copyright (c) 2012 Christoph Burgdorf
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
+
+
(function () {
window.swiftcore = { };
})()
View
12 build/swiftcore.min.js
@@ -1 +1,11 @@
-(function(){window.swiftcore={}})()(function(){if(!window.swiftcore)throw"make sure swiftcore.js was loaded before swiftcore.dependencyFormatters.js";var a=window.swiftcore;a.dependencyFormatters={},a.dependencyFormatters.asIs=function(a){return a},a.dependencyFormatters.camelCase=function(a){return a.replace(/(?:^\w|[A-Z]|\b\w)/g,function(a,b){return b==0?a.toLowerCase():a.toUpperCase()}).replace(/\s+/g,"")}})()(function(){if(!window.swiftcore)throw"make sure swiftcore.js was loaded before swiftcore.instanceProvider.js";var a=window.swiftcore;a.instanceProvider={},a.instanceProvider.constructorBased=function(a,b){var c=new a.type(b);return a.isInitialized=!0,c},a.instanceProvider.initializeBased=function(a,b){return a.instance||(a.instance=new a.type),a.instance.initialize(b),a.isInitialized=!0,a.instance}})()(function(){function c(){}var a=window.swiftcore,b={};a.defaultInstanceProvider=a.instanceProvider.constructorBased,a.defaultDependencyFormatter=a.dependencyFormatters.asIs,c.prototype.register=function(a){return this.name=a,this},c.prototype.withType=function(a){return this.type=a,this},c.prototype.withInstance=function(a){return this.instance=a,this.isInitialized=a!==undefined&&a!==null,this},c.prototype.asSingleton=function(){return this.singleton=!0,this};var d=function(a){return a.type.dependencies!==undefined&&a.type.dependencies.length!==0},e=function(b,c){if(b.singleton&&b.isInitialized)return b.instance;var d=a.defaultInstanceProvider(b,c);return b.singleton&&(b.instance=d),d},f=function(b){var c={};for(var g in b){var h=b[g],i=a.getRegistration(h),j=a.defaultDependencyFormatter(h);if(!d(i))c[j]=e(i);else{var k=f(i.type.dependencies);c[j]=e(i,k)}}return c},g=function(a){return a.trim().toLowerCase()};a.register=function(b,c,d){return a.addRegistration({type:c,singleton:!!d,name:b})},a.addRegistration=function(a){var d=new c;return d.name=a.name,d.type=a.type,d.singleton=!!a.singleton,b[g(d.name)]=d,d},a.getRegistration=function(a){return b[g(a)]},a.resolve=function(b){var c=a.getRegistration(b);if(c===undefined)throw"Failed to resolve: "+b+". Registration unknown";if(c.type===undefined)throw"Failed to resolve: "+b+". Registration has no constructor function";var d=c.type.dependencies||[],d=f(d);return e(c,d)}})();
+/*
+The MIT License
+
+Copyright (c) 2012 Christoph Burgdorf
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/(function(){window.swiftcore={}})()(function(){if(!window.swiftcore)throw"make sure swiftcore.js was loaded before swiftcore.dependencyFormatters.js";var a=window.swiftcore;a.dependencyFormatters={},a.dependencyFormatters.asIs=function(a){return a},a.dependencyFormatters.camelCase=function(a){return a.replace(/(?:^\w|[A-Z]|\b\w)/g,function(a,b){return b==0?a.toLowerCase():a.toUpperCase()}).replace(/\s+/g,"")}})()(function(){if(!window.swiftcore)throw"make sure swiftcore.js was loaded before swiftcore.instanceProvider.js";var a=window.swiftcore;a.instanceProvider={},a.instanceProvider.constructorBased=function(a,b){var c=new a.type(b);return a.isInitialized=!0,c},a.instanceProvider.initializeBased=function(a,b){return a.instance||(a.instance=new a.type),a.instance.initialize(b),a.isInitialized=!0,a.instance}})()(function(){function c(){}var a=window.swiftcore,b={};a.defaultInstanceProvider=a.instanceProvider.constructorBased,a.defaultDependencyFormatter=a.dependencyFormatters.asIs,c.prototype.register=function(a){return this.name=a,this},c.prototype.withType=function(a){return this.type=a,this},c.prototype.withInstance=function(a){return this.instance=a,this.isInitialized=a!==undefined&&a!==null,this},c.prototype.asSingleton=function(){return this.singleton=!0,this};var d=function(a){return a.type.dependencies!==undefined&&a.type.dependencies.length!==0},e=function(b,c){if(b.singleton&&b.isInitialized)return b.instance;var d=a.defaultInstanceProvider(b,c);return b.singleton&&(b.instance=d),d},f=function(b){var c={};for(var g in b){var h=b[g],i=a.getRegistration(h),j=a.defaultDependencyFormatter(h);if(!d(i))c[j]=e(i);else{var k=f(i.type.dependencies);c[j]=e(i,k)}}return c},g=function(a){return a.trim().toLowerCase()};a.register=function(b,c,d){return a.addRegistration({type:c,singleton:!!d,name:b})},a.addRegistration=function(a){var d=new c;return d.name=a.name,d.type=a.type,d.singleton=!!a.singleton,b[g(d.name)]=d,d},a.getRegistration=function(a){return b[g(a)]},a.resolve=function(b){var c=a.getRegistration(b);if(c===undefined)throw"Failed to resolve: "+b+". Registration unknown";if(c.type===undefined)throw"Failed to resolve: "+b+". Registration has no constructor function";var d=c.type.dependencies||[],d=f(d);return e(c,d)}})();
View
12 buildscripts/LICENSE.txt
@@ -0,0 +1,12 @@
+/*
+The MIT License
+
+Copyright (c) 2012 Christoph Burgdorf
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
+
View
1 buildscripts/build.js
@@ -15,6 +15,7 @@
}
concat([
+ 'LICENSE.txt',
'../src/swiftcore.core.js',
'../src/swiftcore.dependencyFormatters.js',
'../src/swiftcore.instanceProvider.js',

0 comments on commit a05b7ee

Please sign in to comment.
Something went wrong with that request. Please try again.