app-bundler 0.0.96 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bundler.js +10 -6
- package/lib/cli.js +10 -6
- package/package.json +5 -4
- package/tools/build.js +1 -1
package/lib/bundler.js
CHANGED
|
@@ -530,8 +530,12 @@ function path_isRelative(path) {
|
|
|
530
530
|
exports.path_isRelative = path_isRelative;
|
|
531
531
|
;
|
|
532
532
|
function path_toRelative(path, anchor, base) {
|
|
533
|
-
var
|
|
534
|
-
|
|
533
|
+
var pathNormalized = path_normalize(path);
|
|
534
|
+
var anchorNormalized = path_normalize(anchor);
|
|
535
|
+
var path_ = path_resolveUrl(pathNormalized, base);
|
|
536
|
+
var absolute_ = path_resolveUrl(anchorNormalized, base);
|
|
537
|
+
if (pathNormalized.includes(anchorNormalized) === false && path_getExtension(absolute_) !== '') {
|
|
538
|
+
// in-case anchor is a File
|
|
535
539
|
absolute_ = path_getDir(absolute_);
|
|
536
540
|
}
|
|
537
541
|
absolute_ = path_combine(absolute_, '/');
|
|
@@ -3844,7 +3848,7 @@ exports.MaskHandler = MaskHandler;
|
|
|
3844
3848
|
var module = { exports: exports };
|
|
3845
3849
|
"use strict";
|
|
3846
3850
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3847
|
-
var UglifyJS = require("uglify-
|
|
3851
|
+
var UglifyJS = require("uglify-js");
|
|
3848
3852
|
var nope = function () {
|
|
3849
3853
|
return true;
|
|
3850
3854
|
}, variableOverrides = null, walk = function (node, fn) {
|
|
@@ -4392,7 +4396,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4392
4396
|
var global_1 = _src_global;
|
|
4393
4397
|
exports.Templates = {
|
|
4394
4398
|
Module: "\n// source ./Module.js\n__register(\"%MODULE_PATH%\", function(require, module, exports, __filename, __dirname){\n\t%MODULE%\n\n\t%FOOTER%\n});\n\n// end:source ./Module.js\n",
|
|
4395
|
-
ModuleSimplified: "\n// source ./ModuleSimplified.js\nvar ___VAR_ID___;\n(function () {\n // ensure AMD is not active for the model, so that any UMD exports as commonjs\n var define = null;\n var exports = ___VAR_ID___ != null ? ___VAR_ID___ : {};\n var module = { exports: exports };\n\n ___MODULE___;\n\n function __isObj(x) {\n return x != null && typeof x === 'object' && x.constructor === Object;\n }\n if (__isObj(___VAR_ID___) && __isObj(module.exports)) {\n Object.assign(___VAR_ID___, module.exports);\n } else {\n ___VAR_ID___ = module.exports;\n }\n\n ___FOOTER___;\n}());\n\n// end:source ./ModuleSimplified.js\n",
|
|
4399
|
+
ModuleSimplified: "\n// source ./ModuleSimplified.js\nvar ___VAR_ID___;\n(function () {\n // ensure AMD is not active for the model, so that any UMD exports as commonjs\n var define = null;\n var exports = ___VAR_ID___ != null ? ___VAR_ID___ : {};\n var module = { exports: exports };\n\n ___MODULE___;\n\n function __isObj(x) {\n return x != null && typeof x === 'object' && x.constructor === Object;\n }\n if (___VAR_ID___ === module.exports) {\n // do nothing if\n } else if (__isObj(___VAR_ID___) && __isObj(module.exports)) {\n Object.assign(___VAR_ID___, module.exports);\n } else {\n ___VAR_ID___ = module.exports;\n }\n\n ___FOOTER___;\n}());\n\n// end:source ./ModuleSimplified.js\n",
|
|
4396
4400
|
Header: "\n// source ./Header.js\nvar __register, __require, require;\n\n(function(){\n\n\t// source ./path.js\n\tvar path_getDir,\n\t\tpath_resolveCurrent,\n\t\tpath_normalize,\n\t\tpath_resolveUrl,\n\t\tpath_combine\t\n\t\t;\n\t(function(){\n\t\tvar isNodeJS = typeof process !== 'undefined' \n\t\t\t&& typeof window === 'undefined' \n\t\t\t&& typeof navigator === 'undefined';\n\t\n\t\tpath_getDir = function(path) {\n\t\t\treturn path.substring(0, path.lastIndexOf('/') + 1);\n\t\t};\n\t\n\t\t(function(){\n\t\t\tvar current_;\t\t\n\t\t\tif (isNodeJS === false) {\n\t\t\t\tpath_resolveCurrent = function(){\n\t\t\t\t\tif (current_ != null) return current_;\n\t\n\t\t\t\t\tvar fn = 'baseURI' in window.document\n\t\t\t\t\t\t\t? fromBase\n\t\t\t\t\t\t\t: fromLocation;\n\t\t\t\t\treturn (current_ = path_sliceFilename(fn()));\n\t\t\t\t};\n\t\t\t\tfunction fromBase() {\n\t\t\t\t\tvar path = window.document.baseURI;\n\t\t\t\t\tvar i = path.indexOf('?');\n\t\t\t\t\treturn i === -1 ? path : path.substring(0, i);\n\t\t\t\t}\n\t\t\t\tfunction fromLocation() {\n\t\t\t\t\treturn window.location.origin + window.location.pathname;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\n\t\t\t\tpath_resolveCurrent = function(){\n\t\t\t\t\tif (current_ != null) return current_;\n\t\t\t\t\treturn (current_ = path_win32Normalize(__dirname));\n\t\t\t\t};\n\t\t\t}\n\t\t}());\n\t\n\t\n\t\tpath_normalize = function(path) {\n\t\t\tvar path_ = path\n\t\t\t\t.replace(new RegExp(\"\\\\\\\\\", \"g\"), '/')\n\t\t\t\t// remove double slashes, but not near protocol\n\t\t\t\t.replace(new RegExp(\"([^:\\\\/])\\\\/{2,}\", \"g\"), '$1/')\n\t\t\t\t// './xx' to relative string\n\t\t\t\t.replace(new RegExp(\"^\\\\.\\\\/\"), '')\n\t\t\t\t// join 'xx/./xx'\n\t\t\t\t.replace(new RegExp(\"\\\\/\\\\.\\\\//\", \"g\"), '/')\n\t\t\t\t;\n\t\t\tpath_ = path_collapse(path_);\t\t\n\t\t\treturn path_;\n\t\t};\n\t\tpath_resolveUrl = function(path, location) {\n\t\t\tif (/\\.\\w+$/.test(path) === false) {\n\t\t\t\tpath += '.js';\n\t\t\t}\n\t\t\tvar url = path_normalize(path);\n\t\t\tif (url[0] === '/') {\n\t\t\t\turl = path_combine(path_resolveCurrent(), url);\n\t\t\t} else if (rgx_PROTOCOL.test(url) === false) {\n\t\t\t\turl = path_normalize(path_combine(location || path_resolveCurrent(), url));\n\t\t\t}\n\t\t\tif (rgx_PROTOCOL.test(url) === false) {\n\t\t\t\turl = 'file://' + url;\n\t\t\t}\n\t\t\treturn url;\n\t\t};\n\t\t\n\t\tpath_combine = function() {\n\t\t\tvar out = '',\n\t\t\t\timax = arguments.length,\n\t\t\t\ti = -1, x;\n\t\t\twhile ( ++i < imax ){\n\t\t\t\tx = arguments[i];\n\t\t\t\tif (!x) continue;\n\t\n\t\t\t\tx = path_normalize(x);\n\t\t\t\tif (out === '') {\n\t\t\t\t\tout = x;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (out[out.length - 1] !== '/') {\n\t\t\t\t\tout += '/'\n\t\t\t\t}\n\t\t\t\tif (x[0] === '/') {\n\t\t\t\t\tx = x.substring(1);\n\t\t\t\t}\n\t\t\t\tout += x;\n\t\t\t}\n\t\t\treturn path_collapse(out);\n\t\t};\n\t\n\t\tvar rgx_PROTOCOL = /^(file|https?):/i,\n\t\t\trgx_SUB_DIR = new RegExp(\"[^\\\\/\\\\.]+/\\\\.\\\\.\\\\/\"),\n\t\t\trgx_FILENAME = new RegExp(\"\\\\/[^\\\\/]+\\\\.\\\\w+(\\\\?.*)?(#.*)?$\"),\n\t\t\trgx_EXT = new RegExp(\"\\\\.(\\\\w+)$\"),\n\t\t\trgx_win32Drive = new RegExp(\"(^\\\\/?\\\\w{1}:)(\\\\/|$)\")\n\t\t\t;\n\t\n\t\tfunction path_win32Normalize (path){\n\t\t\tpath = path_normalize(path);\n\t\t\tif (path.substring(0, 5) === 'file:')\n\t\t\t\treturn path;\n\t\n\t\t\treturn 'file://' + path;\n\t\t}\n\t\n\t\tfunction path_collapse(url_) {\n\t\t\tvar url = url_;\n\t\t\twhile (rgx_SUB_DIR.test(url)) {\n\t\t\t\turl = url.replace(rgx_SUB_DIR, '');\n\t\t\t}\n\t\t\treturn url;\n\t\t}\n\t\tfunction path_ensureTrailingSlash(path) {\n\t\t\tif (path.charCodeAt(path.length - 1) === 47 /* / */)\n\t\t\t\treturn path;\n\t\n\t\t\treturn path + '/';\n\t\t}\n\t\tfunction path_sliceFilename(path) {\n\t\t\treturn path_ensureTrailingSlash(path.replace(rgx_FILENAME, ''));\n\t\t}\n\t\n\t}());\n\t\n\t// end:source ./path.js\n\n\tvar __global = typeof global !== 'undefined' && global ? global : window;\n\tvar __nativeRequire = __global.require;\n\tvar __originalRequire = function (path_) {\n\t\tvar location = this.location;\n\t\tvar path = path_resolveUrl(path_, location);\n\n\t\tif (modules[path]) {\n\t\t\treturn modules[path].runOnce();\n\t\t}\n\n\t\treturn __nativeRequire(path_);\n\t};\n\n\t__register = function (path, factory) {\n\t\tvar filename = path_resolveUrl(path);\t\n\t\tmodules[filename] = new Module(filename, factory);\t\t\t\n\t};\n\n\t__require =__originalRequire.bind({ location: path_getDir(path_resolveUrl('%ROOT_DIR%')) });\n\n\tvar modules = {};\n\tvar Module = function(filename, factory){\t\n\t\tthis.filename = filename;\n\t\tthis.dirname = path_getDir(filename);\n\t\tthis.factory = factory;\n\t\tthis.exports = null;\n\t};\n\tModule.prototype.runOnce = function(){\n\t\tif (this.exports != null) {\n\t\t\treturn this.exports;\n\t\t}\n\t\tvar require = __originalRequire.bind({ \n\t\t\tlocation: this.dirname \n\t\t});\n\t\tthis.exports = {};\n\t\tthis.factory(\n\t\t\trequire, \n\t\t\tthis, \n\t\t\tthis.exports, \n\t\t\tthis.filename, \n\t\t\tthis.dirname\n\t\t);\n\t\treturn this.exports;\n\t};\n\t\n\trequire = __require;\n\n\tif (__nativeRequire == null) {\n\t\t__global.require = __require;\n\t}\n}());\n// end:source ./Header.js\n",
|
|
4397
4401
|
RootModule: "\n// source ./RootModule.js\n(function(){\n\t\n\t%BUNDLE%\n\n}());\n// end:source ./RootModule.js\n",
|
|
4398
4402
|
UMD: "\n// source ./UMD.js\n(function (factory) {\n\n var _name = '%NAME%',\n _global = typeof window === 'undefined' ? global : window,\n _module = {\n exports: {}\n };\n\n factory(_module, _module.exports, _global);\n\n if (typeof module === 'object' && module.exports) {\n module.exports = _module.exports;\n }\n\n if (typeof define === 'function' && define.amd) {\n define([], function () {\n return _module.exports;\n });\n return;\n }\n \n if (_name) {\n _global[_name] = _module.exports;\n }\n\n}(function (module, exports, global) {\n\n %MODULE%\n\n}));\n\n// end:source ./UMD.js\n",
|
|
@@ -4406,7 +4410,7 @@ exports.Templates = {
|
|
|
4406
4410
|
return template;
|
|
4407
4411
|
}
|
|
4408
4412
|
};
|
|
4409
|
-
//# sourceMappingURL=
|
|
4413
|
+
//# sourceMappingURL=api.js.map
|
|
4410
4414
|
//# sourceMappingURL=Templates.ts.map;
|
|
4411
4415
|
|
|
4412
4416
|
function isObject(x) {
|
|
@@ -4487,7 +4491,7 @@ function getVarId(resource) {
|
|
|
4487
4491
|
function getModuleVars(resources) {
|
|
4488
4492
|
return resources.map(getVarId).sort().map(function (x) { return "var " + x + " = {};"; }).join('\n') + '\n';
|
|
4489
4493
|
}
|
|
4490
|
-
//# sourceMappingURL=
|
|
4494
|
+
//# sourceMappingURL=api.js.map
|
|
4491
4495
|
//# sourceMappingURL=CommonJsBuilderSimplified.ts.map;
|
|
4492
4496
|
|
|
4493
4497
|
function isObject(x) {
|
package/lib/cli.js
CHANGED
|
@@ -532,8 +532,12 @@ function path_isRelative(path) {
|
|
|
532
532
|
exports.path_isRelative = path_isRelative;
|
|
533
533
|
;
|
|
534
534
|
function path_toRelative(path, anchor, base) {
|
|
535
|
-
var
|
|
536
|
-
|
|
535
|
+
var pathNormalized = path_normalize(path);
|
|
536
|
+
var anchorNormalized = path_normalize(anchor);
|
|
537
|
+
var path_ = path_resolveUrl(pathNormalized, base);
|
|
538
|
+
var absolute_ = path_resolveUrl(anchorNormalized, base);
|
|
539
|
+
if (pathNormalized.includes(anchorNormalized) === false && path_getExtension(absolute_) !== '') {
|
|
540
|
+
// in-case anchor is a File
|
|
537
541
|
absolute_ = path_getDir(absolute_);
|
|
538
542
|
}
|
|
539
543
|
absolute_ = path_combine(absolute_, '/');
|
|
@@ -3846,7 +3850,7 @@ exports.MaskHandler = MaskHandler;
|
|
|
3846
3850
|
var module = { exports: exports };
|
|
3847
3851
|
"use strict";
|
|
3848
3852
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3849
|
-
var UglifyJS = require("uglify-
|
|
3853
|
+
var UglifyJS = require("uglify-js");
|
|
3850
3854
|
var nope = function () {
|
|
3851
3855
|
return true;
|
|
3852
3856
|
}, variableOverrides = null, walk = function (node, fn) {
|
|
@@ -4394,7 +4398,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4394
4398
|
var global_1 = _src_global;
|
|
4395
4399
|
exports.Templates = {
|
|
4396
4400
|
Module: "\n// source ./Module.js\n__register(\"%MODULE_PATH%\", function(require, module, exports, __filename, __dirname){\n\t%MODULE%\n\n\t%FOOTER%\n});\n\n// end:source ./Module.js\n",
|
|
4397
|
-
ModuleSimplified: "\n// source ./ModuleSimplified.js\nvar ___VAR_ID___;\n(function () {\n // ensure AMD is not active for the model, so that any UMD exports as commonjs\n var define = null;\n var exports = ___VAR_ID___ != null ? ___VAR_ID___ : {};\n var module = { exports: exports };\n\n ___MODULE___;\n\n function __isObj(x) {\n return x != null && typeof x === 'object' && x.constructor === Object;\n }\n if (__isObj(___VAR_ID___) && __isObj(module.exports)) {\n Object.assign(___VAR_ID___, module.exports);\n } else {\n ___VAR_ID___ = module.exports;\n }\n\n ___FOOTER___;\n}());\n\n// end:source ./ModuleSimplified.js\n",
|
|
4401
|
+
ModuleSimplified: "\n// source ./ModuleSimplified.js\nvar ___VAR_ID___;\n(function () {\n // ensure AMD is not active for the model, so that any UMD exports as commonjs\n var define = null;\n var exports = ___VAR_ID___ != null ? ___VAR_ID___ : {};\n var module = { exports: exports };\n\n ___MODULE___;\n\n function __isObj(x) {\n return x != null && typeof x === 'object' && x.constructor === Object;\n }\n if (___VAR_ID___ === module.exports) {\n // do nothing if\n } else if (__isObj(___VAR_ID___) && __isObj(module.exports)) {\n Object.assign(___VAR_ID___, module.exports);\n } else {\n ___VAR_ID___ = module.exports;\n }\n\n ___FOOTER___;\n}());\n\n// end:source ./ModuleSimplified.js\n",
|
|
4398
4402
|
Header: "\n// source ./Header.js\nvar __register, __require, require;\n\n(function(){\n\n\t// source ./path.js\n\tvar path_getDir,\n\t\tpath_resolveCurrent,\n\t\tpath_normalize,\n\t\tpath_resolveUrl,\n\t\tpath_combine\t\n\t\t;\n\t(function(){\n\t\tvar isNodeJS = typeof process !== 'undefined' \n\t\t\t&& typeof window === 'undefined' \n\t\t\t&& typeof navigator === 'undefined';\n\t\n\t\tpath_getDir = function(path) {\n\t\t\treturn path.substring(0, path.lastIndexOf('/') + 1);\n\t\t};\n\t\n\t\t(function(){\n\t\t\tvar current_;\t\t\n\t\t\tif (isNodeJS === false) {\n\t\t\t\tpath_resolveCurrent = function(){\n\t\t\t\t\tif (current_ != null) return current_;\n\t\n\t\t\t\t\tvar fn = 'baseURI' in window.document\n\t\t\t\t\t\t\t? fromBase\n\t\t\t\t\t\t\t: fromLocation;\n\t\t\t\t\treturn (current_ = path_sliceFilename(fn()));\n\t\t\t\t};\n\t\t\t\tfunction fromBase() {\n\t\t\t\t\tvar path = window.document.baseURI;\n\t\t\t\t\tvar i = path.indexOf('?');\n\t\t\t\t\treturn i === -1 ? path : path.substring(0, i);\n\t\t\t\t}\n\t\t\t\tfunction fromLocation() {\n\t\t\t\t\treturn window.location.origin + window.location.pathname;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\n\t\t\t\tpath_resolveCurrent = function(){\n\t\t\t\t\tif (current_ != null) return current_;\n\t\t\t\t\treturn (current_ = path_win32Normalize(__dirname));\n\t\t\t\t};\n\t\t\t}\n\t\t}());\n\t\n\t\n\t\tpath_normalize = function(path) {\n\t\t\tvar path_ = path\n\t\t\t\t.replace(new RegExp(\"\\\\\\\\\", \"g\"), '/')\n\t\t\t\t// remove double slashes, but not near protocol\n\t\t\t\t.replace(new RegExp(\"([^:\\\\/])\\\\/{2,}\", \"g\"), '$1/')\n\t\t\t\t// './xx' to relative string\n\t\t\t\t.replace(new RegExp(\"^\\\\.\\\\/\"), '')\n\t\t\t\t// join 'xx/./xx'\n\t\t\t\t.replace(new RegExp(\"\\\\/\\\\.\\\\//\", \"g\"), '/')\n\t\t\t\t;\n\t\t\tpath_ = path_collapse(path_);\t\t\n\t\t\treturn path_;\n\t\t};\n\t\tpath_resolveUrl = function(path, location) {\n\t\t\tif (/\\.\\w+$/.test(path) === false) {\n\t\t\t\tpath += '.js';\n\t\t\t}\n\t\t\tvar url = path_normalize(path);\n\t\t\tif (url[0] === '/') {\n\t\t\t\turl = path_combine(path_resolveCurrent(), url);\n\t\t\t} else if (rgx_PROTOCOL.test(url) === false) {\n\t\t\t\turl = path_normalize(path_combine(location || path_resolveCurrent(), url));\n\t\t\t}\n\t\t\tif (rgx_PROTOCOL.test(url) === false) {\n\t\t\t\turl = 'file://' + url;\n\t\t\t}\n\t\t\treturn url;\n\t\t};\n\t\t\n\t\tpath_combine = function() {\n\t\t\tvar out = '',\n\t\t\t\timax = arguments.length,\n\t\t\t\ti = -1, x;\n\t\t\twhile ( ++i < imax ){\n\t\t\t\tx = arguments[i];\n\t\t\t\tif (!x) continue;\n\t\n\t\t\t\tx = path_normalize(x);\n\t\t\t\tif (out === '') {\n\t\t\t\t\tout = x;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (out[out.length - 1] !== '/') {\n\t\t\t\t\tout += '/'\n\t\t\t\t}\n\t\t\t\tif (x[0] === '/') {\n\t\t\t\t\tx = x.substring(1);\n\t\t\t\t}\n\t\t\t\tout += x;\n\t\t\t}\n\t\t\treturn path_collapse(out);\n\t\t};\n\t\n\t\tvar rgx_PROTOCOL = /^(file|https?):/i,\n\t\t\trgx_SUB_DIR = new RegExp(\"[^\\\\/\\\\.]+/\\\\.\\\\.\\\\/\"),\n\t\t\trgx_FILENAME = new RegExp(\"\\\\/[^\\\\/]+\\\\.\\\\w+(\\\\?.*)?(#.*)?$\"),\n\t\t\trgx_EXT = new RegExp(\"\\\\.(\\\\w+)$\"),\n\t\t\trgx_win32Drive = new RegExp(\"(^\\\\/?\\\\w{1}:)(\\\\/|$)\")\n\t\t\t;\n\t\n\t\tfunction path_win32Normalize (path){\n\t\t\tpath = path_normalize(path);\n\t\t\tif (path.substring(0, 5) === 'file:')\n\t\t\t\treturn path;\n\t\n\t\t\treturn 'file://' + path;\n\t\t}\n\t\n\t\tfunction path_collapse(url_) {\n\t\t\tvar url = url_;\n\t\t\twhile (rgx_SUB_DIR.test(url)) {\n\t\t\t\turl = url.replace(rgx_SUB_DIR, '');\n\t\t\t}\n\t\t\treturn url;\n\t\t}\n\t\tfunction path_ensureTrailingSlash(path) {\n\t\t\tif (path.charCodeAt(path.length - 1) === 47 /* / */)\n\t\t\t\treturn path;\n\t\n\t\t\treturn path + '/';\n\t\t}\n\t\tfunction path_sliceFilename(path) {\n\t\t\treturn path_ensureTrailingSlash(path.replace(rgx_FILENAME, ''));\n\t\t}\n\t\n\t}());\n\t\n\t// end:source ./path.js\n\n\tvar __global = typeof global !== 'undefined' && global ? global : window;\n\tvar __nativeRequire = __global.require;\n\tvar __originalRequire = function (path_) {\n\t\tvar location = this.location;\n\t\tvar path = path_resolveUrl(path_, location);\n\n\t\tif (modules[path]) {\n\t\t\treturn modules[path].runOnce();\n\t\t}\n\n\t\treturn __nativeRequire(path_);\n\t};\n\n\t__register = function (path, factory) {\n\t\tvar filename = path_resolveUrl(path);\t\n\t\tmodules[filename] = new Module(filename, factory);\t\t\t\n\t};\n\n\t__require =__originalRequire.bind({ location: path_getDir(path_resolveUrl('%ROOT_DIR%')) });\n\n\tvar modules = {};\n\tvar Module = function(filename, factory){\t\n\t\tthis.filename = filename;\n\t\tthis.dirname = path_getDir(filename);\n\t\tthis.factory = factory;\n\t\tthis.exports = null;\n\t};\n\tModule.prototype.runOnce = function(){\n\t\tif (this.exports != null) {\n\t\t\treturn this.exports;\n\t\t}\n\t\tvar require = __originalRequire.bind({ \n\t\t\tlocation: this.dirname \n\t\t});\n\t\tthis.exports = {};\n\t\tthis.factory(\n\t\t\trequire, \n\t\t\tthis, \n\t\t\tthis.exports, \n\t\t\tthis.filename, \n\t\t\tthis.dirname\n\t\t);\n\t\treturn this.exports;\n\t};\n\t\n\trequire = __require;\n\n\tif (__nativeRequire == null) {\n\t\t__global.require = __require;\n\t}\n}());\n// end:source ./Header.js\n",
|
|
4399
4403
|
RootModule: "\n// source ./RootModule.js\n(function(){\n\t\n\t%BUNDLE%\n\n}());\n// end:source ./RootModule.js\n",
|
|
4400
4404
|
UMD: "\n// source ./UMD.js\n(function (factory) {\n\n var _name = '%NAME%',\n _global = typeof window === 'undefined' ? global : window,\n _module = {\n exports: {}\n };\n\n factory(_module, _module.exports, _global);\n\n if (typeof module === 'object' && module.exports) {\n module.exports = _module.exports;\n }\n\n if (typeof define === 'function' && define.amd) {\n define([], function () {\n return _module.exports;\n });\n return;\n }\n \n if (_name) {\n _global[_name] = _module.exports;\n }\n\n}(function (module, exports, global) {\n\n %MODULE%\n\n}));\n\n// end:source ./UMD.js\n",
|
|
@@ -4408,7 +4412,7 @@ exports.Templates = {
|
|
|
4408
4412
|
return template;
|
|
4409
4413
|
}
|
|
4410
4414
|
};
|
|
4411
|
-
//# sourceMappingURL=
|
|
4415
|
+
//# sourceMappingURL=api.js.map
|
|
4412
4416
|
//# sourceMappingURL=Templates.ts.map;
|
|
4413
4417
|
|
|
4414
4418
|
function isObject(x) {
|
|
@@ -4489,7 +4493,7 @@ function getVarId(resource) {
|
|
|
4489
4493
|
function getModuleVars(resources) {
|
|
4490
4494
|
return resources.map(getVarId).sort().map(function (x) { return "var " + x + " = {};"; }).join('\n') + '\n';
|
|
4491
4495
|
}
|
|
4492
|
-
//# sourceMappingURL=
|
|
4496
|
+
//# sourceMappingURL=api.js.map
|
|
4493
4497
|
//# sourceMappingURL=CommonJsBuilderSimplified.ts.map;
|
|
4494
4498
|
|
|
4495
4499
|
function isObject(x) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "app-bundler",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/bundler.js",
|
|
6
6
|
"bin": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"homepage": "https://github.com/atmajs/app-bundler",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"alot": "^0.2.81",
|
|
37
|
-
"appcfg": "^0.
|
|
37
|
+
"appcfg": "^0.4.54",
|
|
38
38
|
"atma-class": "^1.1.83",
|
|
39
39
|
"atma-io": "^1.2.16",
|
|
40
40
|
"atma-loader-ts": "^1.1.12",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"includejs": "^0.15.44",
|
|
46
46
|
"maskjs": "^0.64.41",
|
|
47
47
|
"memd": "^0.2.88",
|
|
48
|
-
"uglify-
|
|
48
|
+
"uglify-js": "^3.13.10"
|
|
49
49
|
},
|
|
50
50
|
"atma": {
|
|
51
51
|
"plugins": [
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"atma": "^0.12.7",
|
|
91
91
|
"atma-io-middleware-importer": "^1.1.34",
|
|
92
92
|
"selenium-query": "^0.50.35",
|
|
93
|
-
"tslib": "^1.11.1"
|
|
93
|
+
"tslib": "^1.11.1",
|
|
94
|
+
"uglify-es": "^3.3.9"
|
|
94
95
|
}
|
|
95
96
|
}
|