jeefo_core
Advanced tools
Comparing version
@@ -30,16 +30,19 @@ /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
var source_files = require("../source_files"); | ||
var libs = [], source = []; | ||
var source = source_files.map(function (file) { | ||
source_files.forEach(function (file) { | ||
var code = fse.readFileSync(`./${ file }`, "utf8"); | ||
if (! file.startsWith("node_modules")) { | ||
code = preprocessor(file, code).trim(); | ||
source.push( | ||
preprocessor(file, code).trim() | ||
); | ||
} else { | ||
libs.push(code); | ||
} | ||
}); | ||
return code; | ||
}).join("\n\n"); | ||
// Compile | ||
var license = `The ${ _package.license } license`; | ||
var license = `The ${ _package.license } License`; | ||
var header = header_compiler({ | ||
@@ -53,5 +56,8 @@ [_package.name] : `v${ _package.version }`, | ||
source = `${ header }jeefo.use(function () {\n\n${ source.join("\n\n") }\n\n});`; | ||
libs.push(source); | ||
source = libs.join("\n\n"); | ||
var browser_source = `(function (jeefo, $window, $document) { "use strict";\n\n${ source }\n\n}(window.jeefo, window, document));`; | ||
var node_source = `${ header }\n"use strict";\n\nmodule.exports = function (jeefo) {\n\n${ source }\n\nreturn jeefo\n\n};`; | ||
var output_source = `${ header }(function (jeefo) {\n\n${ source }\n\n}(jeefo));`; | ||
var node_source = `\n"use strict";\n\nmodule.exports = function (jeefo) {\n\n${ source }\n\nreturn jeefo\n\n};`; | ||
var node_min_source; | ||
@@ -69,3 +75,3 @@ | ||
fse.outputFileSync(output_filename, output_source); | ||
fse.outputFileSync(output_filename, source); | ||
fse.outputFileSync(node_filename, node_source); | ||
@@ -72,0 +78,0 @@ fse.outputFileSync(node_min_filename, node_min_source); |
/** | ||
* jeefo_core : v0.0.7 | ||
* jeefo_core : v0.0.8 | ||
* Author : je3f0o, <je3f0o@gmail.com> | ||
* Homepage : https://github.com/je3f0o/jeefo_core | ||
* License : The MIT license | ||
* Copyright : undefined | ||
* License : The MIT License | ||
* Copyright : 2017 | ||
**/ | ||
(function (jeefo) { | ||
jeefo.use(function () { | ||
@@ -224,2 +224,2 @@ /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
}(jeefo)); | ||
}); |
/** | ||
* jeefo_core : v0.0.7 | ||
* jeefo_core : v0.0.8 | ||
* Author : je3f0o, <je3f0o@gmail.com> | ||
* Homepage : https://github.com/je3f0o/jeefo_core | ||
* License : The MIT license | ||
* Copyright : undefined | ||
* License : The MIT License | ||
* Copyright : 2017 | ||
**/ | ||
!function(n,e,t){"use strict";var r=n.module("jeefo_core",[]),i=function(n){return n.replace(/[A-Z]/g,function(n,e){return(e?"-":"")+n.toLowerCase()})},c=function(n){return n.replace(/[A-Z]/g,function(n,e){return(e?"_":"")+n.toLowerCase()})},o=Object.prototype.toString,u=Function.toString,s=/^\[object .+?Constructor\]$/,a=/^function.*?\(\) \{ \[native code\] \}$/,f=function(n){return"[object Date]"===o.call(n)},l=function(n){return"[object RegExp]"===o.call(n)},p=function(n,e){return(e?/^\d+(?:.\d+)?$/:/^\-?\d+(?:.\d+)?$/).test(n)},_=function(n,e){return(e?/^\d+$/:/^\-?\d+$/).test(n)},g=function(n){var e=typeof n;return"function"===e?a.test(u.call(n)):n&&"object"===e&&s.test(o.call(n))||!1},d=function(n){try{return JSON.parse(n)}catch(n){}};r.extend("namespace",["$injector","make_injectable"],function(n,e){return function(t){for(var r,i,c=t.split("."),o=c.pop(),u=0,s="";u<c.length;++u)r=c[u],s&&(i=n.resolve_sync(s)),s=s?s+"."+r:r,n.has(s)||(n.register(s,{fn:function(){return{}}}),i&&(i[r]=n.resolve_sync(s)));return n.register(t,e.apply(null,arguments)),s&&(i=n.resolve_sync(s),i[o]=n.resolve_sync(t)),this}}).namespace("transform.dash_case",function(){return i}).namespace("transform.snake_case",function(){return c}).extend("curry",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){return n.register(t(r+"Curry"),e.apply(null,arguments)),this}}).extend("run",["$injector","$q","Array"],function(n,e,t){var r=this;return function(i,c){if("function"===typeof i)i.call(this);else if("string"===typeof i)n.resolve(i).then(function(n){c.call(r,n)});else{var o=new t(i.length);e.for_each_async(i,function(e,t,r){n.resolve(e).then(function(n){o[t]=n,r()})}).then(function(){c.apply(r,o)})}return this}}).extend("factory",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){return n.register(t(r+"Factory"),e.apply(null,arguments)),this}}).extend("service",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){var i=e.apply(null,arguments);return i.is_constructor=!0,n.register(t(r+"Service"),i),this}}).run("$injector",function(n){n.register("is_date",{fn:function(){return f}}).register("is_regex",{fn:function(){return l}}).register("is_digit",{fn:function(){return p}}).register("is_digit_int",{fn:function(){return _}}).register("is_native",{fn:function(){return g}}).register("json_parse",{fn:function(){return d}})})}(window.jeefo,window,document); | ||
!function(n,e,t){"use strict";n.use(function(){var e=n.module("jeefo_core",[]),t=function(n){return n.replace(/[A-Z]/g,function(n,e){return(e?"-":"")+n.toLowerCase()})},r=function(n){return n.replace(/[A-Z]/g,function(n,e){return(e?"_":"")+n.toLowerCase()})},i=Object.prototype.toString,c=Function.toString,o=/^\[object .+?Constructor\]$/,u=/^function.*?\(\) \{ \[native code\] \}$/,s=function(n){return"[object Date]"===i.call(n)},a=function(n){return"[object RegExp]"===i.call(n)},f=function(n,e){return(e?/^\d+(?:.\d+)?$/:/^\-?\d+(?:.\d+)?$/).test(n)},l=function(n,e){return(e?/^\d+$/:/^\-?\d+$/).test(n)},p=function(n){var e=typeof n;return"function"===e?u.test(c.call(n)):n&&"object"===e&&o.test(i.call(n))||!1},_=function(n){try{return JSON.parse(n)}catch(n){}};e.extend("namespace",["$injector","make_injectable"],function(n,e){return function(t){for(var r,i,c=t.split("."),o=c.pop(),u=0,s="";u<c.length;++u)r=c[u],s&&(i=n.resolve_sync(s)),s=s?s+"."+r:r,n.has(s)||(n.register(s,{fn:function(){return{}}}),i&&(i[r]=n.resolve_sync(s)));return n.register(t,e.apply(null,arguments)),s&&(i=n.resolve_sync(s),i[o]=n.resolve_sync(t)),this}}).namespace("transform.dash_case",function(){return t}).namespace("transform.snake_case",function(){return r}).extend("curry",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){return n.register(t(r+"Curry"),e.apply(null,arguments)),this}}).extend("run",["$injector","$q","Array"],function(n,e,t){var r=this;return function(i,c){if("function"===typeof i)i.call(this);else if("string"===typeof i)n.resolve(i).then(function(n){c.call(r,n)});else{var o=new t(i.length);e.for_each_async(i,function(e,t,r){n.resolve(e).then(function(n){o[t]=n,r()})}).then(function(){c.apply(r,o)})}return this}}).extend("factory",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){return n.register(t(r+"Factory"),e.apply(null,arguments)),this}}).extend("service",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){var i=e.apply(null,arguments);return i.is_constructor=!0,n.register(t(r+"Service"),i),this}}).run("$injector",function(n){n.register("is_date",{fn:function(){return s}}).register("is_regex",{fn:function(){return a}}).register("is_digit",{fn:function(){return f}}).register("is_digit_int",{fn:function(){return l}}).register("is_native",{fn:function(){return p}}).register("json_parse",{fn:function(){return _}})})})}(window.jeefo,window,document); |
@@ -0,13 +1,15 @@ | ||
"use strict"; | ||
module.exports = function (jeefo) { | ||
/** | ||
* jeefo_core : v0.0.7 | ||
* jeefo_core : v0.0.8 | ||
* Author : je3f0o, <je3f0o@gmail.com> | ||
* Homepage : https://github.com/je3f0o/jeefo_core | ||
* License : The MIT license | ||
* Copyright : undefined | ||
* License : The MIT License | ||
* Copyright : 2017 | ||
**/ | ||
jeefo.use(function () { | ||
"use strict"; | ||
module.exports = function (jeefo) { | ||
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
@@ -227,4 +229,6 @@ * File Name : core.js | ||
}); | ||
return jeefo | ||
}; |
/** | ||
* jeefo_core : v0.0.7 | ||
* jeefo_core : v0.0.8 | ||
* Author : je3f0o, <je3f0o@gmail.com> | ||
* Homepage : https://github.com/je3f0o/jeefo_core | ||
* License : The MIT license | ||
* Copyright : undefined | ||
* License : The MIT License | ||
* Copyright : 2017 | ||
**/ | ||
"use strict";module.exports=function(n){var e=n.module("jeefo_core",[]),t=function(n){return n.replace(/[A-Z]/g,function(n,e){return(e?"-":"")+n.toLowerCase()})},r=function(n){return n.replace(/[A-Z]/g,function(n,e){return(e?"_":"")+n.toLowerCase()})},c=Object.prototype.toString,i=Function.toString,o=/^\[object .+?Constructor\]$/,u=/^function.*?\(\) \{ \[native code\] \}$/,s=function(n){return"[object Date]"===c.call(n)},a=function(n){return"[object RegExp]"===c.call(n)},f=function(n,e){return(e?/^\d+(?:.\d+)?$/:/^\-?\d+(?:.\d+)?$/).test(n)},l=function(n,e){return(e?/^\d+$/:/^\-?\d+$/).test(n)},p=function(n){var e=typeof n;return"function"===e?u.test(i.call(n)):n&&"object"===e&&o.test(c.call(n))||!1},_=function(n){try{return JSON.parse(n)}catch(n){}};return e.extend("namespace",["$injector","make_injectable"],function(n,e){return function(t){for(var r,c,i=t.split("."),o=i.pop(),u=0,s="";u<i.length;++u)r=i[u],s&&(c=n.resolve_sync(s)),s=s?s+"."+r:r,n.has(s)||(n.register(s,{fn:function(){return{}}}),c&&(c[r]=n.resolve_sync(s)));return n.register(t,e.apply(null,arguments)),s&&(c=n.resolve_sync(s),c[o]=n.resolve_sync(t)),this}}).namespace("transform.dash_case",function(){return t}).namespace("transform.snake_case",function(){return r}).extend("curry",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){return n.register(t(r+"Curry"),e.apply(null,arguments)),this}}).extend("run",["$injector","$q","Array"],function(n,e,t){var r=this;return function(c,i){if("function"===typeof c)c.call(this);else if("string"===typeof c)n.resolve(c).then(function(n){i.call(r,n)});else{var o=new t(c.length);e.for_each_async(c,function(e,t,r){n.resolve(e).then(function(n){o[t]=n,r()})}).then(function(){i.apply(r,o)})}return this}}).extend("factory",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){return n.register(t(r+"Factory"),e.apply(null,arguments)),this}}).extend("service",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){var c=e.apply(null,arguments);return c.is_constructor=!0,n.register(t(r+"Service"),c),this}}).run("$injector",function(n){n.register("is_date",{fn:function(){return s}}).register("is_regex",{fn:function(){return a}}).register("is_digit",{fn:function(){return f}}).register("is_digit_int",{fn:function(){return l}}).register("is_native",{fn:function(){return p}}).register("json_parse",{fn:function(){return _}})}),n}; | ||
"use strict";module.exports=function(n){return n.use(function(){var e=n.module("jeefo_core",[]),t=function(n){return n.replace(/[A-Z]/g,function(n,e){return(e?"-":"")+n.toLowerCase()})},r=function(n){return n.replace(/[A-Z]/g,function(n,e){return(e?"_":"")+n.toLowerCase()})},c=Object.prototype.toString,i=Function.toString,o=/^\[object .+?Constructor\]$/,u=/^function.*?\(\) \{ \[native code\] \}$/,s=function(n){return"[object Date]"===c.call(n)},a=function(n){return"[object RegExp]"===c.call(n)},f=function(n,e){return(e?/^\d+(?:.\d+)?$/:/^\-?\d+(?:.\d+)?$/).test(n)},l=function(n,e){return(e?/^\d+$/:/^\-?\d+$/).test(n)},p=function(n){var e=typeof n;return"function"===e?u.test(i.call(n)):n&&"object"===e&&o.test(c.call(n))||!1},_=function(n){try{return JSON.parse(n)}catch(n){}};e.extend("namespace",["$injector","make_injectable"],function(n,e){return function(t){for(var r,c,i=t.split("."),o=i.pop(),u=0,s="";u<i.length;++u)r=i[u],s&&(c=n.resolve_sync(s)),s=s?s+"."+r:r,n.has(s)||(n.register(s,{fn:function(){return{}}}),c&&(c[r]=n.resolve_sync(s)));return n.register(t,e.apply(null,arguments)),s&&(c=n.resolve_sync(s),c[o]=n.resolve_sync(t)),this}}).namespace("transform.dash_case",function(){return t}).namespace("transform.snake_case",function(){return r}).extend("curry",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){return n.register(t(r+"Curry"),e.apply(null,arguments)),this}}).extend("run",["$injector","$q","Array"],function(n,e,t){var r=this;return function(c,i){if("function"===typeof c)c.call(this);else if("string"===typeof c)n.resolve(c).then(function(n){i.call(r,n)});else{var o=new t(c.length);e.for_each_async(c,function(e,t,r){n.resolve(e).then(function(n){o[t]=n,r()})}).then(function(){i.apply(r,o)})}return this}}).extend("factory",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){return n.register(t(r+"Factory"),e.apply(null,arguments)),this}}).extend("service",["$injector","make_injectable","transform.snake_case"],function(n,e,t){return function(r){var c=e.apply(null,arguments);return c.is_constructor=!0,n.register(t(r+"Service"),c),this}}).run("$injector",function(n){n.register("is_date",{fn:function(){return s}}).register("is_regex",{fn:function(){return a}}).register("is_digit",{fn:function(){return f}}).register("is_digit_int",{fn:function(){return l}}).register("is_native",{fn:function(){return p}}).register("json_parse",{fn:function(){return _}})})}),n}; |
{ | ||
"name": "jeefo_core", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"homepage": "https://github.com/je3f0o/jeefo_core", | ||
"copyright": "2017", | ||
"description": "jeefo core", | ||
@@ -6,0 +7,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
65945
0.19%1356
0.59%