diff --git a/bin/backed.js b/bin/backed.js old mode 100644 new mode 100755 index 31d098c..6b67050 --- a/bin/backed.js +++ b/bin/backed.js @@ -256,12 +256,12 @@ class Server { } const {readFileSync} = require('fs'); - class Config { constructor() { - let config = this.importConfig(); - const name = this.importPackageName() || this.importBowerName(); - return this.updateConfig(config, name); + this.importConfig().then(config => { + const name = this.importPackageName() || this.importBowerName(); + return this.updateConfig(config, name); + }); } /** @@ -271,34 +271,56 @@ class Config { * @return {object|array|function|class} module or file */ require(path) { - let root = process.cwd(); - root += `/${path}`; - try { - return require(root); - } catch (error) { - return console.warn(error); - } + return new Promise((resolve, reject) => { + let root = process.cwd(); + root += `/${path}`; + try { + let required = require(root); + resolve(required); + } catch (error) { + reject(error); + } + }); } /** * @return {object} value of 'backed.json' */ importConfig() { - return this.require('backed.json'); + return new Promise((resolve, reject) => { + this.require('backed.json').then(config => { + resolve(config); + }).catch(() => { + logger.warn('backed.json:: not found, using default options.'); + resolve({ + name: 'your-element' + }); + }); + }) } /** * @return {string} name from 'package.json' */ importPackageName() { - return JSON.parse(readFileSync(`${process.cwd()}/package.json`)).name; + try { + return JSON.parse(readFileSync(`${process.cwd()}/package.json`)).name; + } catch(e) { + logger.warn('no package.json found'); + } + return null; } /** - * @return {string} name from 'package.json' + * @return {string} name from 'bower.json' */ importBowerName() { - return JSON.parse(readFileSync(`${process.cwd()}/bower.json`)).name; + try { + return JSON.parse(readFileSync(`${process.cwd()}/bower.json`)).name; + } catch(e) { + logger.warn('no bower.json found'); + } + return null; } /** diff --git a/docs/ast/source/backed.js.json b/docs/ast/source/backed.js.json index f202728..23b87af 100644 --- a/docs/ast/source/backed.js.json +++ b/docs/ast/source/backed.js.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 1187, + "end": 1142, "loc": { "start": { "line": 1, @@ -15,7 +15,7 @@ "program": { "type": "Program", "start": 0, - "end": 1187, + "end": 1142, "loc": { "start": { "line": 1, @@ -131,8 +131,8 @@ }, { "type": "VariableDeclaration", - "start": 27, - "end": 66, + "start": 26, + "end": 65, "loc": { "start": { "line": 2, @@ -146,8 +146,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 33, - "end": 65, + "start": 32, + "end": 64, "loc": { "start": { "line": 2, @@ -160,8 +160,8 @@ }, "id": { "type": "Identifier", - "start": 33, - "end": 42, + "start": 32, + "end": 41, "loc": { "start": { "line": 2, @@ -177,8 +177,8 @@ }, "init": { "type": "CallExpression", - "start": 45, - "end": 65, + "start": 44, + "end": 64, "loc": { "start": { "line": 2, @@ -191,8 +191,8 @@ }, "callee": { "type": "Identifier", - "start": 45, - "end": 52, + "start": 44, + "end": 51, "loc": { "start": { "line": 2, @@ -209,8 +209,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 53, - "end": 64, + "start": 52, + "end": 63, "loc": { "start": { "line": 2, @@ -235,8 +235,8 @@ }, { "type": "VariableDeclaration", - "start": 68, - "end": 115, + "start": 66, + "end": 113, "loc": { "start": { "line": 3, @@ -250,8 +250,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 74, - "end": 114, + "start": 72, + "end": 112, "loc": { "start": { "line": 3, @@ -264,8 +264,8 @@ }, "id": { "type": "ObjectPattern", - "start": 74, - "end": 83, + "start": 72, + "end": 81, "loc": { "start": { "line": 3, @@ -279,8 +279,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 75, - "end": 82, + "start": 73, + "end": 80, "loc": { "start": { "line": 3, @@ -296,8 +296,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 75, - "end": 82, + "start": 73, + "end": 80, "loc": { "start": { "line": 3, @@ -313,8 +313,8 @@ }, "value": { "type": "Identifier", - "start": 75, - "end": 82, + "start": 73, + "end": 80, "loc": { "start": { "line": 3, @@ -336,8 +336,8 @@ }, "init": { "type": "CallExpression", - "start": 86, - "end": 114, + "start": 84, + "end": 112, "loc": { "start": { "line": 3, @@ -350,8 +350,8 @@ }, "callee": { "type": "Identifier", - "start": 86, - "end": 93, + "start": 84, + "end": 91, "loc": { "start": { "line": 3, @@ -368,8 +368,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 94, - "end": 113, + "start": 92, + "end": 111, "loc": { "start": { "line": 3, @@ -394,8 +394,8 @@ }, { "type": "ImportDeclaration", - "start": 119, - "end": 154, + "start": 115, + "end": 150, "loc": { "start": { "line": 5, @@ -409,8 +409,8 @@ "specifiers": [ { "type": "ImportDefaultSpecifier", - "start": 126, - "end": 133, + "start": 122, + "end": 129, "loc": { "start": { "line": 5, @@ -423,8 +423,8 @@ }, "local": { "type": "Identifier", - "start": 126, - "end": 133, + "start": 122, + "end": 129, "loc": { "start": { "line": 5, @@ -442,8 +442,8 @@ ], "source": { "type": "StringLiteral", - "start": 139, - "end": 153, + "start": 135, + "end": 149, "loc": { "start": { "line": 5, @@ -463,8 +463,8 @@ }, { "type": "ImportDeclaration", - "start": 156, - "end": 189, + "start": 151, + "end": 184, "loc": { "start": { "line": 6, @@ -478,8 +478,8 @@ "specifiers": [ { "type": "ImportDefaultSpecifier", - "start": 163, - "end": 169, + "start": 158, + "end": 164, "loc": { "start": { "line": 6, @@ -492,8 +492,8 @@ }, "local": { "type": "Identifier", - "start": 163, - "end": 169, + "start": 158, + "end": 164, "loc": { "start": { "line": 6, @@ -511,8 +511,8 @@ ], "source": { "type": "StringLiteral", - "start": 175, - "end": 188, + "start": 170, + "end": 183, "loc": { "start": { "line": 6, @@ -532,8 +532,8 @@ }, { "type": "ImportDeclaration", - "start": 191, - "end": 224, + "start": 185, + "end": 218, "loc": { "start": { "line": 7, @@ -547,8 +547,8 @@ "specifiers": [ { "type": "ImportDefaultSpecifier", - "start": 198, - "end": 204, + "start": 192, + "end": 198, "loc": { "start": { "line": 7, @@ -561,8 +561,8 @@ }, "local": { "type": "Identifier", - "start": 198, - "end": 204, + "start": 192, + "end": 198, "loc": { "start": { "line": 7, @@ -580,8 +580,8 @@ ], "source": { "type": "StringLiteral", - "start": 210, - "end": 223, + "start": 204, + "end": 217, "loc": { "start": { "line": 7, @@ -601,8 +601,8 @@ }, { "type": "ImportDeclaration", - "start": 226, - "end": 257, + "start": 219, + "end": 250, "loc": { "start": { "line": 8, @@ -616,8 +616,8 @@ "specifiers": [ { "type": "ImportDefaultSpecifier", - "start": 233, - "end": 238, + "start": 226, + "end": 231, "loc": { "start": { "line": 8, @@ -630,8 +630,8 @@ }, "local": { "type": "Identifier", - "start": 233, - "end": 238, + "start": 226, + "end": 231, "loc": { "start": { "line": 8, @@ -649,8 +649,8 @@ ], "source": { "type": "StringLiteral", - "start": 244, - "end": 256, + "start": 237, + "end": 249, "loc": { "start": { "line": 8, @@ -670,8 +670,8 @@ }, { "type": "VariableDeclaration", - "start": 259, - "end": 287, + "start": 251, + "end": 279, "loc": { "start": { "line": 9, @@ -685,8 +685,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 265, - "end": 286, + "start": 257, + "end": 278, "loc": { "start": { "line": 9, @@ -699,8 +699,8 @@ }, "id": { "type": "Identifier", - "start": 265, - "end": 271, + "start": 257, + "end": 263, "loc": { "start": { "line": 9, @@ -716,8 +716,8 @@ }, "init": { "type": "NewExpression", - "start": 274, - "end": 286, + "start": 266, + "end": 278, "loc": { "start": { "line": 9, @@ -730,8 +730,8 @@ }, "callee": { "type": "Identifier", - "start": 278, - "end": 284, + "start": 270, + "end": 276, "loc": { "start": { "line": 9, @@ -753,8 +753,8 @@ }, { "type": "VariableDeclaration", - "start": 289, - "end": 315, + "start": 280, + "end": 306, "loc": { "start": { "line": 10, @@ -768,8 +768,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 295, - "end": 314, + "start": 286, + "end": 305, "loc": { "start": { "line": 10, @@ -782,8 +782,8 @@ }, "id": { "type": "Identifier", - "start": 295, - "end": 300, + "start": 286, + "end": 291, "loc": { "start": { "line": 10, @@ -799,8 +799,8 @@ }, "init": { "type": "NewExpression", - "start": 303, - "end": 314, + "start": 294, + "end": 305, "loc": { "start": { "line": 10, @@ -813,8 +813,8 @@ }, "callee": { "type": "Identifier", - "start": 307, - "end": 312, + "start": 298, + "end": 303, "loc": { "start": { "line": 10, @@ -836,8 +836,8 @@ }, { "type": "VariableDeclaration", - "start": 319, - "end": 426, + "start": 308, + "end": 410, "loc": { "start": { "line": 12, @@ -851,8 +851,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 325, - "end": 425, + "start": 314, + "end": 409, "loc": { "start": { "line": 12, @@ -865,8 +865,8 @@ }, "id": { "type": "Identifier", - "start": 325, - "end": 334, + "start": 314, + "end": 323, "loc": { "start": { "line": 12, @@ -882,8 +882,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 337, - "end": 425, + "start": 326, + "end": 409, "loc": { "start": { "line": 12, @@ -896,8 +896,8 @@ }, "id": { "type": "Identifier", - "start": 325, - "end": 334, + "start": 314, + "end": 323, "loc": { "start": { "line": 12, @@ -917,8 +917,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 343, - "end": 425, + "start": 332, + "end": 409, "loc": { "start": { "line": 12, @@ -932,8 +932,8 @@ "body": [ { "type": "IfStatement", - "start": 348, - "end": 406, + "start": 336, + "end": 392, "loc": { "start": { "line": 13, @@ -946,8 +946,8 @@ }, "test": { "type": "BinaryExpression", - "start": 352, - "end": 379, + "start": 340, + "end": 367, "loc": { "start": { "line": 13, @@ -960,8 +960,8 @@ }, "left": { "type": "MemberExpression", - "start": 352, - "end": 365, + "start": 340, + "end": 353, "loc": { "start": { "line": 13, @@ -974,8 +974,8 @@ }, "object": { "type": "Identifier", - "start": 352, - "end": 358, + "start": 340, + "end": 346, "loc": { "start": { "line": 13, @@ -991,8 +991,8 @@ }, "property": { "type": "Identifier", - "start": 359, - "end": 365, + "start": 347, + "end": 353, "loc": { "start": { "line": 13, @@ -1011,8 +1011,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 370, - "end": 379, + "start": 358, + "end": 367, "loc": { "start": { "line": 13, @@ -1029,8 +1029,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 381, - "end": 406, + "start": 369, + "end": 392, "loc": { "start": { "line": 13, @@ -1044,8 +1044,8 @@ "body": [ { "type": "ReturnStatement", - "start": 388, - "end": 401, + "start": 375, + "end": 388, "loc": { "start": { "line": 14, @@ -1058,8 +1058,8 @@ }, "argument": { "type": "BooleanLiteral", - "start": 395, - "end": 400, + "start": 382, + "end": 387, "loc": { "start": { "line": 14, @@ -1080,8 +1080,8 @@ }, { "type": "ReturnStatement", - "start": 410, - "end": 422, + "start": 395, + "end": 407, "loc": { "start": { "line": 16, @@ -1094,8 +1094,8 @@ }, "argument": { "type": "BooleanLiteral", - "start": 417, - "end": 421, + "start": 402, + "end": 406, "loc": { "start": { "line": 16, @@ -1119,8 +1119,8 @@ }, { "type": "ExpressionStatement", - "start": 430, - "end": 740, + "start": 412, + "end": 716, "loc": { "start": { "line": 19, @@ -1133,8 +1133,8 @@ }, "expression": { "type": "CallExpression", - "start": 430, - "end": 739, + "start": 412, + "end": 715, "loc": { "start": { "line": 19, @@ -1147,8 +1147,8 @@ }, "callee": { "type": "MemberExpression", - "start": 430, - "end": 725, + "start": 412, + "end": 701, "loc": { "start": { "line": 19, @@ -1161,8 +1161,8 @@ }, "object": { "type": "CallExpression", - "start": 430, - "end": 715, + "start": 412, + "end": 692, "loc": { "start": { "line": 19, @@ -1175,8 +1175,8 @@ }, "callee": { "type": "MemberExpression", - "start": 430, - "end": 679, + "start": 412, + "end": 656, "loc": { "start": { "line": 19, @@ -1189,8 +1189,8 @@ }, "object": { "type": "CallExpression", - "start": 430, - "end": 668, + "start": 412, + "end": 646, "loc": { "start": { "line": 19, @@ -1203,8 +1203,8 @@ }, "callee": { "type": "MemberExpression", - "start": 430, - "end": 579, + "start": 412, + "end": 557, "loc": { "start": { "line": 19, @@ -1217,8 +1217,8 @@ }, "object": { "type": "CallExpression", - "start": 430, - "end": 568, + "start": 412, + "end": 547, "loc": { "start": { "line": 19, @@ -1231,8 +1231,8 @@ }, "callee": { "type": "MemberExpression", - "start": 430, - "end": 525, + "start": 412, + "end": 504, "loc": { "start": { "line": 19, @@ -1245,8 +1245,8 @@ }, "object": { "type": "CallExpression", - "start": 430, - "end": 514, + "start": 412, + "end": 494, "loc": { "start": { "line": 19, @@ -1259,8 +1259,8 @@ }, "callee": { "type": "MemberExpression", - "start": 430, - "end": 471, + "start": 412, + "end": 451, "loc": { "start": { "line": 19, @@ -1273,8 +1273,8 @@ }, "object": { "type": "CallExpression", - "start": 430, - "end": 460, + "start": 412, + "end": 441, "loc": { "start": { "line": 19, @@ -1287,8 +1287,8 @@ }, "callee": { "type": "MemberExpression", - "start": 430, - "end": 451, + "start": 412, + "end": 432, "loc": { "start": { "line": 19, @@ -1301,8 +1301,8 @@ }, "object": { "type": "Identifier", - "start": 430, - "end": 439, + "start": 412, + "end": 421, "loc": { "start": { "line": 19, @@ -1318,8 +1318,8 @@ }, "property": { "type": "Identifier", - "start": 444, - "end": 451, + "start": 425, + "end": 432, "loc": { "start": { "line": 20, @@ -1338,8 +1338,8 @@ "arguments": [ { "type": "Identifier", - "start": 452, - "end": 459, + "start": 433, + "end": 440, "loc": { "start": { "line": 20, @@ -1357,8 +1357,8 @@ }, "property": { "type": "Identifier", - "start": 465, - "end": 471, + "start": 445, + "end": 451, "loc": { "start": { "line": 21, @@ -1377,8 +1377,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 472, - "end": 485, + "start": 452, + "end": 465, "loc": { "start": { "line": 21, @@ -1397,8 +1397,8 @@ }, { "type": "StringLiteral", - "start": 487, - "end": 513, + "start": 467, + "end": 493, "loc": { "start": { "line": 21, @@ -1419,8 +1419,8 @@ }, "property": { "type": "Identifier", - "start": 519, - "end": 525, + "start": 498, + "end": 504, "loc": { "start": { "line": 22, @@ -1439,8 +1439,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 526, - "end": 539, + "start": 505, + "end": 518, "loc": { "start": { "line": 22, @@ -1459,8 +1459,8 @@ }, { "type": "StringLiteral", - "start": 541, - "end": 567, + "start": 520, + "end": 546, "loc": { "start": { "line": 22, @@ -1481,8 +1481,8 @@ }, "property": { "type": "Identifier", - "start": 573, - "end": 579, + "start": 551, + "end": 557, "loc": { "start": { "line": 23, @@ -1501,8 +1501,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 580, - "end": 592, + "start": 558, + "end": 570, "loc": { "start": { "line": 23, @@ -1521,8 +1521,8 @@ }, { "type": "StringLiteral", - "start": 594, - "end": 667, + "start": 572, + "end": 645, "loc": { "start": { "line": 23, @@ -1543,8 +1543,8 @@ }, "property": { "type": "Identifier", - "start": 673, - "end": 679, + "start": 650, + "end": 656, "loc": { "start": { "line": 24, @@ -1563,8 +1563,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 680, - "end": 693, + "start": 657, + "end": 670, "loc": { "start": { "line": 24, @@ -1583,8 +1583,8 @@ }, { "type": "StringLiteral", - "start": 695, - "end": 714, + "start": 672, + "end": 691, "loc": { "start": { "line": 24, @@ -1605,8 +1605,8 @@ }, "property": { "type": "Identifier", - "start": 720, - "end": 725, + "start": 696, + "end": 701, "loc": { "start": { "line": 25, @@ -1625,8 +1625,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 726, - "end": 738, + "start": 702, + "end": 714, "loc": { "start": { "line": 25, @@ -1639,8 +1639,8 @@ }, "object": { "type": "Identifier", - "start": 726, - "end": 733, + "start": 702, + "end": 709, "loc": { "start": { "line": 25, @@ -1656,8 +1656,8 @@ }, "property": { "type": "Identifier", - "start": 734, - "end": 738, + "start": 710, + "end": 714, "loc": { "start": { "line": 25, @@ -1678,8 +1678,8 @@ }, { "type": "VariableDeclaration", - "start": 744, - "end": 772, + "start": 718, + "end": 746, "loc": { "start": { "line": 27, @@ -1693,8 +1693,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 748, - "end": 771, + "start": 722, + "end": 745, "loc": { "start": { "line": 27, @@ -1707,8 +1707,8 @@ }, "id": { "type": "Identifier", - "start": 748, - "end": 753, + "start": 722, + "end": 727, "loc": { "start": { "line": 27, @@ -1724,8 +1724,8 @@ }, "init": { "type": "MemberExpression", - "start": 756, - "end": 771, + "start": 730, + "end": 745, "loc": { "start": { "line": 27, @@ -1738,8 +1738,8 @@ }, "object": { "type": "Identifier", - "start": 756, - "end": 765, + "start": 730, + "end": 739, "loc": { "start": { "line": 27, @@ -1755,8 +1755,8 @@ }, "property": { "type": "Identifier", - "start": 766, - "end": 771, + "start": 740, + "end": 745, "loc": { "start": { "line": 27, @@ -1778,8 +1778,8 @@ }, { "type": "VariableDeclaration", - "start": 774, - "end": 819, + "start": 747, + "end": 792, "loc": { "start": { "line": 28, @@ -1793,8 +1793,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 778, - "end": 818, + "start": 751, + "end": 791, "loc": { "start": { "line": 28, @@ -1807,8 +1807,8 @@ }, "id": { "type": "Identifier", - "start": 778, - "end": 782, + "start": 751, + "end": 755, "loc": { "start": { "line": 28, @@ -1824,8 +1824,8 @@ }, "init": { "type": "LogicalExpression", - "start": 785, - "end": 818, + "start": 758, + "end": 791, "loc": { "start": { "line": 28, @@ -1838,8 +1838,8 @@ }, "left": { "type": "MemberExpression", - "start": 785, - "end": 800, + "start": 758, + "end": 773, "loc": { "start": { "line": 28, @@ -1852,8 +1852,8 @@ }, "object": { "type": "Identifier", - "start": 785, - "end": 794, + "start": 758, + "end": 767, "loc": { "start": { "line": 28, @@ -1869,8 +1869,8 @@ }, "property": { "type": "Identifier", - "start": 795, - "end": 800, + "start": 768, + "end": 773, "loc": { "start": { "line": 28, @@ -1889,8 +1889,8 @@ "operator": "||", "right": { "type": "MemberExpression", - "start": 804, - "end": 818, + "start": 777, + "end": 791, "loc": { "start": { "line": 28, @@ -1903,8 +1903,8 @@ }, "object": { "type": "Identifier", - "start": 804, - "end": 813, + "start": 777, + "end": 786, "loc": { "start": { "line": 28, @@ -1920,8 +1920,8 @@ }, "property": { "type": "Identifier", - "start": 814, - "end": 818, + "start": 787, + "end": 791, "loc": { "start": { "line": 28, @@ -1944,8 +1944,8 @@ }, { "type": "VariableDeclaration", - "start": 821, - "end": 849, + "start": 793, + "end": 821, "loc": { "start": { "line": 29, @@ -1959,8 +1959,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 825, - "end": 848, + "start": 797, + "end": 820, "loc": { "start": { "line": 29, @@ -1973,8 +1973,8 @@ }, "id": { "type": "Identifier", - "start": 825, - "end": 830, + "start": 797, + "end": 802, "loc": { "start": { "line": 29, @@ -1990,8 +1990,8 @@ }, "init": { "type": "MemberExpression", - "start": 833, - "end": 848, + "start": 805, + "end": 820, "loc": { "start": { "line": 29, @@ -2004,8 +2004,8 @@ }, "object": { "type": "Identifier", - "start": 833, - "end": 842, + "start": 805, + "end": 814, "loc": { "start": { "line": 29, @@ -2021,8 +2021,8 @@ }, "property": { "type": "Identifier", - "start": 843, - "end": 848, + "start": 815, + "end": 820, "loc": { "start": { "line": 29, @@ -2044,8 +2044,8 @@ }, { "type": "VariableDeclaration", - "start": 851, - "end": 879, + "start": 822, + "end": 850, "loc": { "start": { "line": 30, @@ -2059,8 +2059,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 855, - "end": 878, + "start": 826, + "end": 849, "loc": { "start": { "line": 30, @@ -2073,8 +2073,8 @@ }, "id": { "type": "Identifier", - "start": 855, - "end": 860, + "start": 826, + "end": 831, "loc": { "start": { "line": 30, @@ -2090,8 +2090,8 @@ }, "init": { "type": "MemberExpression", - "start": 863, - "end": 878, + "start": 834, + "end": 849, "loc": { "start": { "line": 30, @@ -2104,8 +2104,8 @@ }, "object": { "type": "Identifier", - "start": 863, - "end": 872, + "start": 834, + "end": 843, "loc": { "start": { "line": 30, @@ -2121,8 +2121,8 @@ }, "property": { "type": "Identifier", - "start": 873, - "end": 878, + "start": 844, + "end": 849, "loc": { "start": { "line": 30, @@ -2144,8 +2144,8 @@ }, { "type": "IfStatement", - "start": 883, - "end": 1185, + "start": 852, + "end": 1141, "loc": { "start": { "line": 32, @@ -2158,8 +2158,8 @@ }, "test": { "type": "CallExpression", - "start": 887, - "end": 898, + "start": 856, + "end": 867, "loc": { "start": { "line": 32, @@ -2172,8 +2172,8 @@ }, "callee": { "type": "Identifier", - "start": 887, - "end": 896, + "start": 856, + "end": 865, "loc": { "start": { "line": 32, @@ -2191,8 +2191,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 900, - "end": 1185, + "start": 869, + "end": 1141, "loc": { "start": { "line": 32, @@ -2206,8 +2206,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 905, - "end": 942, + "start": 873, + "end": 910, "loc": { "start": { "line": 33, @@ -2220,8 +2220,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 905, - "end": 941, + "start": 873, + "end": 909, "loc": { "start": { "line": 33, @@ -2235,8 +2235,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 905, - "end": 917, + "start": 873, + "end": 885, "loc": { "start": { "line": 33, @@ -2249,8 +2249,8 @@ }, "object": { "type": "Identifier", - "start": 905, - "end": 911, + "start": 873, + "end": 879, "loc": { "start": { "line": 33, @@ -2266,8 +2266,8 @@ }, "property": { "type": "Identifier", - "start": 912, - "end": 917, + "start": 880, + "end": 885, "loc": { "start": { "line": 33, @@ -2285,8 +2285,8 @@ }, "right": { "type": "LogicalExpression", - "start": 920, - "end": 941, + "start": 888, + "end": 909, "loc": { "start": { "line": 33, @@ -2299,8 +2299,8 @@ }, "left": { "type": "Identifier", - "start": 920, - "end": 925, + "start": 888, + "end": 893, "loc": { "start": { "line": 33, @@ -2317,8 +2317,8 @@ "operator": "||", "right": { "type": "MemberExpression", - "start": 929, - "end": 941, + "start": 897, + "end": 909, "loc": { "start": { "line": 33, @@ -2331,8 +2331,8 @@ }, "object": { "type": "Identifier", - "start": 929, - "end": 935, + "start": 897, + "end": 903, "loc": { "start": { "line": 33, @@ -2348,8 +2348,8 @@ }, "property": { "type": "Identifier", - "start": 936, - "end": 941, + "start": 904, + "end": 909, "loc": { "start": { "line": 33, @@ -2370,8 +2370,8 @@ }, { "type": "IfStatement", - "start": 946, - "end": 1033, + "start": 913, + "end": 997, "loc": { "start": { "line": 34, @@ -2384,8 +2384,8 @@ }, "test": { "type": "Identifier", - "start": 950, - "end": 955, + "start": 917, + "end": 922, "loc": { "start": { "line": 34, @@ -2401,8 +2401,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 957, - "end": 1033, + "start": 924, + "end": 997, "loc": { "start": { "line": 34, @@ -2416,8 +2416,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 964, - "end": 1000, + "start": 930, + "end": 966, "loc": { "start": { "line": 35, @@ -2431,8 +2431,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 970, - "end": 999, + "start": 936, + "end": 965, "loc": { "start": { "line": 35, @@ -2445,8 +2445,8 @@ }, "id": { "type": "Identifier", - "start": 970, - "end": 977, + "start": 936, + "end": 943, "loc": { "start": { "line": 35, @@ -2462,8 +2462,8 @@ }, "init": { "type": "NewExpression", - "start": 980, - "end": 999, + "start": 946, + "end": 965, "loc": { "start": { "line": 35, @@ -2476,8 +2476,8 @@ }, "callee": { "type": "Identifier", - "start": 984, - "end": 991, + "start": 950, + "end": 957, "loc": { "start": { "line": 35, @@ -2494,8 +2494,8 @@ "arguments": [ { "type": "Identifier", - "start": 992, - "end": 998, + "start": 958, + "end": 964, "loc": { "start": { "line": 35, @@ -2517,8 +2517,8 @@ }, { "type": "ExpressionStatement", - "start": 1006, - "end": 1028, + "start": 971, + "end": 993, "loc": { "start": { "line": 36, @@ -2531,8 +2531,8 @@ }, "expression": { "type": "CallExpression", - "start": 1006, - "end": 1027, + "start": 971, + "end": 992, "loc": { "start": { "line": 36, @@ -2545,8 +2545,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1006, - "end": 1019, + "start": 971, + "end": 984, "loc": { "start": { "line": 36, @@ -2559,8 +2559,8 @@ }, "object": { "type": "Identifier", - "start": 1006, - "end": 1013, + "start": 971, + "end": 978, "loc": { "start": { "line": 36, @@ -2576,8 +2576,8 @@ }, "property": { "type": "Identifier", - "start": 1014, - "end": 1019, + "start": 979, + "end": 984, "loc": { "start": { "line": 36, @@ -2596,8 +2596,8 @@ "arguments": [ { "type": "Identifier", - "start": 1020, - "end": 1026, + "start": 985, + "end": 991, "loc": { "start": { "line": 36, @@ -2621,8 +2621,8 @@ }, { "type": "IfStatement", - "start": 1037, - "end": 1093, + "start": 1000, + "end": 1054, "loc": { "start": { "line": 38, @@ -2635,8 +2635,8 @@ }, "test": { "type": "Identifier", - "start": 1041, - "end": 1045, + "start": 1004, + "end": 1008, "loc": { "start": { "line": 38, @@ -2652,8 +2652,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1047, - "end": 1093, + "start": 1010, + "end": 1054, "loc": { "start": { "line": 38, @@ -2667,8 +2667,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1054, - "end": 1088, + "start": 1016, + "end": 1050, "loc": { "start": { "line": 39, @@ -2681,8 +2681,8 @@ }, "expression": { "type": "CallExpression", - "start": 1054, - "end": 1087, + "start": 1016, + "end": 1049, "loc": { "start": { "line": 39, @@ -2695,8 +2695,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1054, - "end": 1071, + "start": 1016, + "end": 1033, "loc": { "start": { "line": 39, @@ -2709,8 +2709,8 @@ }, "object": { "type": "Identifier", - "start": 1054, - "end": 1059, + "start": 1016, + "end": 1021, "loc": { "start": { "line": 39, @@ -2726,8 +2726,8 @@ }, "property": { "type": "Identifier", - "start": 1060, - "end": 1071, + "start": 1022, + "end": 1033, "loc": { "start": { "line": 39, @@ -2746,8 +2746,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 1072, - "end": 1086, + "start": 1034, + "end": 1048, "loc": { "start": { "line": 39, @@ -2760,8 +2760,8 @@ }, "object": { "type": "Identifier", - "start": 1072, - "end": 1078, + "start": 1034, + "end": 1040, "loc": { "start": { "line": 39, @@ -2777,8 +2777,8 @@ }, "property": { "type": "Identifier", - "start": 1079, - "end": 1086, + "start": 1041, + "end": 1048, "loc": { "start": { "line": 39, @@ -2804,8 +2804,8 @@ }, { "type": "IfStatement", - "start": 1097, - "end": 1182, + "start": 1057, + "end": 1139, "loc": { "start": { "line": 41, @@ -2818,8 +2818,8 @@ }, "test": { "type": "Identifier", - "start": 1101, - "end": 1106, + "start": 1061, + "end": 1066, "loc": { "start": { "line": 41, @@ -2835,8 +2835,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1108, - "end": 1182, + "start": 1068, + "end": 1139, "loc": { "start": { "line": 41, @@ -2850,8 +2850,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 1115, - "end": 1143, + "start": 1074, + "end": 1102, "loc": { "start": { "line": 42, @@ -2865,8 +2865,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 1121, - "end": 1142, + "start": 1080, + "end": 1101, "loc": { "start": { "line": 42, @@ -2879,8 +2879,8 @@ }, "id": { "type": "Identifier", - "start": 1121, - "end": 1127, + "start": 1080, + "end": 1086, "loc": { "start": { "line": 42, @@ -2896,8 +2896,8 @@ }, "init": { "type": "NewExpression", - "start": 1130, - "end": 1142, + "start": 1089, + "end": 1101, "loc": { "start": { "line": 42, @@ -2910,8 +2910,8 @@ }, "callee": { "type": "Identifier", - "start": 1134, - "end": 1140, + "start": 1093, + "end": 1099, "loc": { "start": { "line": 42, @@ -2933,8 +2933,8 @@ }, { "type": "ExpressionStatement", - "start": 1149, - "end": 1177, + "start": 1107, + "end": 1135, "loc": { "start": { "line": 43, @@ -2947,8 +2947,8 @@ }, "expression": { "type": "CallExpression", - "start": 1149, - "end": 1176, + "start": 1107, + "end": 1134, "loc": { "start": { "line": 43, @@ -2961,8 +2961,8 @@ }, "callee": { "type": "MemberExpression", - "start": 1149, - "end": 1161, + "start": 1107, + "end": 1119, "loc": { "start": { "line": 43, @@ -2975,8 +2975,8 @@ }, "object": { "type": "Identifier", - "start": 1149, - "end": 1155, + "start": 1107, + "end": 1113, "loc": { "start": { "line": 43, @@ -2992,8 +2992,8 @@ }, "property": { "type": "Identifier", - "start": 1156, - "end": 1161, + "start": 1114, + "end": 1119, "loc": { "start": { "line": 43, @@ -3012,8 +3012,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 1162, - "end": 1175, + "start": 1120, + "end": 1133, "loc": { "start": { "line": 43, @@ -3026,8 +3026,8 @@ }, "object": { "type": "Identifier", - "start": 1162, - "end": 1168, + "start": 1120, + "end": 1126, "loc": { "start": { "line": 43, @@ -3043,8 +3043,8 @@ }, "property": { "type": "Identifier", - "start": 1169, - "end": 1175, + "start": 1127, + "end": 1133, "loc": { "start": { "line": 43, @@ -3251,8 +3251,8 @@ "updateContext": null }, "value": "const", - "start": 27, - "end": 32, + "start": 26, + "end": 31, "loc": { "start": { "line": 2, @@ -3277,8 +3277,8 @@ "binop": null }, "value": "commander", - "start": 33, - "end": 42, + "start": 32, + "end": 41, "loc": { "start": { "line": 2, @@ -3304,8 +3304,8 @@ "updateContext": null }, "value": "=", - "start": 43, - "end": 44, + "start": 42, + "end": 43, "loc": { "start": { "line": 2, @@ -3330,8 +3330,8 @@ "binop": null }, "value": "require", - "start": 45, - "end": 52, + "start": 44, + "end": 51, "loc": { "start": { "line": 2, @@ -3355,8 +3355,8 @@ "postfix": false, "binop": null }, - "start": 52, - "end": 53, + "start": 51, + "end": 52, "loc": { "start": { "line": 2, @@ -3382,8 +3382,8 @@ "updateContext": null }, "value": "commander", - "start": 53, - "end": 64, + "start": 52, + "end": 63, "loc": { "start": { "line": 2, @@ -3407,8 +3407,8 @@ "postfix": false, "binop": null }, - "start": 64, - "end": 65, + "start": 63, + "end": 64, "loc": { "start": { "line": 2, @@ -3433,8 +3433,8 @@ "binop": null, "updateContext": null }, - "start": 65, - "end": 66, + "start": 64, + "end": 65, "loc": { "start": { "line": 2, @@ -3461,8 +3461,8 @@ "updateContext": null }, "value": "const", - "start": 68, - "end": 73, + "start": 66, + "end": 71, "loc": { "start": { "line": 3, @@ -3486,8 +3486,8 @@ "postfix": false, "binop": null }, - "start": 74, - "end": 75, + "start": 72, + "end": 73, "loc": { "start": { "line": 3, @@ -3512,8 +3512,8 @@ "binop": null }, "value": "version", - "start": 75, - "end": 82, + "start": 73, + "end": 80, "loc": { "start": { "line": 3, @@ -3537,8 +3537,8 @@ "postfix": false, "binop": null }, - "start": 82, - "end": 83, + "start": 80, + "end": 81, "loc": { "start": { "line": 3, @@ -3564,8 +3564,8 @@ "updateContext": null }, "value": "=", - "start": 84, - "end": 85, + "start": 82, + "end": 83, "loc": { "start": { "line": 3, @@ -3590,8 +3590,8 @@ "binop": null }, "value": "require", - "start": 86, - "end": 93, + "start": 84, + "end": 91, "loc": { "start": { "line": 3, @@ -3615,8 +3615,8 @@ "postfix": false, "binop": null }, - "start": 93, - "end": 94, + "start": 91, + "end": 92, "loc": { "start": { "line": 3, @@ -3642,8 +3642,8 @@ "updateContext": null }, "value": "./../package.json", - "start": 94, - "end": 113, + "start": 92, + "end": 111, "loc": { "start": { "line": 3, @@ -3667,8 +3667,8 @@ "postfix": false, "binop": null }, - "start": 113, - "end": 114, + "start": 111, + "end": 112, "loc": { "start": { "line": 3, @@ -3693,8 +3693,8 @@ "binop": null, "updateContext": null }, - "start": 114, - "end": 115, + "start": 112, + "end": 113, "loc": { "start": { "line": 3, @@ -3721,8 +3721,8 @@ "updateContext": null }, "value": "import", - "start": 119, - "end": 125, + "start": 115, + "end": 121, "loc": { "start": { "line": 5, @@ -3747,8 +3747,8 @@ "binop": null }, "value": "Builder", - "start": 126, - "end": 133, + "start": 122, + "end": 129, "loc": { "start": { "line": 5, @@ -3773,8 +3773,8 @@ "binop": null }, "value": "from", - "start": 134, - "end": 138, + "start": 130, + "end": 134, "loc": { "start": { "line": 5, @@ -3800,8 +3800,8 @@ "updateContext": null }, "value": "./builder.js", - "start": 139, - "end": 153, + "start": 135, + "end": 149, "loc": { "start": { "line": 5, @@ -3826,8 +3826,8 @@ "binop": null, "updateContext": null }, - "start": 153, - "end": 154, + "start": 149, + "end": 150, "loc": { "start": { "line": 5, @@ -3854,8 +3854,8 @@ "updateContext": null }, "value": "import", - "start": 156, - "end": 162, + "start": 151, + "end": 157, "loc": { "start": { "line": 6, @@ -3880,8 +3880,8 @@ "binop": null }, "value": "Server", - "start": 163, - "end": 169, + "start": 158, + "end": 164, "loc": { "start": { "line": 6, @@ -3906,8 +3906,8 @@ "binop": null }, "value": "from", - "start": 170, - "end": 174, + "start": 165, + "end": 169, "loc": { "start": { "line": 6, @@ -3933,8 +3933,8 @@ "updateContext": null }, "value": "./server.js", - "start": 175, - "end": 188, + "start": 170, + "end": 183, "loc": { "start": { "line": 6, @@ -3959,8 +3959,8 @@ "binop": null, "updateContext": null }, - "start": 188, - "end": 189, + "start": 183, + "end": 184, "loc": { "start": { "line": 6, @@ -3987,8 +3987,8 @@ "updateContext": null }, "value": "import", - "start": 191, - "end": 197, + "start": 185, + "end": 191, "loc": { "start": { "line": 7, @@ -4013,8 +4013,8 @@ "binop": null }, "value": "Config", - "start": 198, - "end": 204, + "start": 192, + "end": 198, "loc": { "start": { "line": 7, @@ -4039,8 +4039,8 @@ "binop": null }, "value": "from", - "start": 205, - "end": 209, + "start": 199, + "end": 203, "loc": { "start": { "line": 7, @@ -4066,8 +4066,8 @@ "updateContext": null }, "value": "./config.js", - "start": 210, - "end": 223, + "start": 204, + "end": 217, "loc": { "start": { "line": 7, @@ -4092,8 +4092,8 @@ "binop": null, "updateContext": null }, - "start": 223, - "end": 224, + "start": 217, + "end": 218, "loc": { "start": { "line": 7, @@ -4120,8 +4120,8 @@ "updateContext": null }, "value": "import", - "start": 226, - "end": 232, + "start": 219, + "end": 225, "loc": { "start": { "line": 8, @@ -4146,8 +4146,8 @@ "binop": null }, "value": "Utils", - "start": 233, - "end": 238, + "start": 226, + "end": 231, "loc": { "start": { "line": 8, @@ -4172,8 +4172,8 @@ "binop": null }, "value": "from", - "start": 239, - "end": 243, + "start": 232, + "end": 236, "loc": { "start": { "line": 8, @@ -4199,8 +4199,8 @@ "updateContext": null }, "value": "./utils.js", - "start": 244, - "end": 256, + "start": 237, + "end": 249, "loc": { "start": { "line": 8, @@ -4225,8 +4225,8 @@ "binop": null, "updateContext": null }, - "start": 256, - "end": 257, + "start": 249, + "end": 250, "loc": { "start": { "line": 8, @@ -4253,8 +4253,8 @@ "updateContext": null }, "value": "const", - "start": 259, - "end": 264, + "start": 251, + "end": 256, "loc": { "start": { "line": 9, @@ -4279,8 +4279,8 @@ "binop": null }, "value": "config", - "start": 265, - "end": 271, + "start": 257, + "end": 263, "loc": { "start": { "line": 9, @@ -4306,8 +4306,8 @@ "updateContext": null }, "value": "=", - "start": 272, - "end": 273, + "start": 264, + "end": 265, "loc": { "start": { "line": 9, @@ -4334,8 +4334,8 @@ "updateContext": null }, "value": "new", - "start": 274, - "end": 277, + "start": 266, + "end": 269, "loc": { "start": { "line": 9, @@ -4360,8 +4360,8 @@ "binop": null }, "value": "Config", - "start": 278, - "end": 284, + "start": 270, + "end": 276, "loc": { "start": { "line": 9, @@ -4385,8 +4385,8 @@ "postfix": false, "binop": null }, - "start": 284, - "end": 285, + "start": 276, + "end": 277, "loc": { "start": { "line": 9, @@ -4410,8 +4410,8 @@ "postfix": false, "binop": null }, - "start": 285, - "end": 286, + "start": 277, + "end": 278, "loc": { "start": { "line": 9, @@ -4436,8 +4436,8 @@ "binop": null, "updateContext": null }, - "start": 286, - "end": 287, + "start": 278, + "end": 279, "loc": { "start": { "line": 9, @@ -4464,8 +4464,8 @@ "updateContext": null }, "value": "const", - "start": 289, - "end": 294, + "start": 280, + "end": 285, "loc": { "start": { "line": 10, @@ -4490,8 +4490,8 @@ "binop": null }, "value": "utils", - "start": 295, - "end": 300, + "start": 286, + "end": 291, "loc": { "start": { "line": 10, @@ -4517,8 +4517,8 @@ "updateContext": null }, "value": "=", - "start": 301, - "end": 302, + "start": 292, + "end": 293, "loc": { "start": { "line": 10, @@ -4545,8 +4545,8 @@ "updateContext": null }, "value": "new", - "start": 303, - "end": 306, + "start": 294, + "end": 297, "loc": { "start": { "line": 10, @@ -4571,8 +4571,8 @@ "binop": null }, "value": "Utils", - "start": 307, - "end": 312, + "start": 298, + "end": 303, "loc": { "start": { "line": 10, @@ -4596,8 +4596,8 @@ "postfix": false, "binop": null }, - "start": 312, - "end": 313, + "start": 303, + "end": 304, "loc": { "start": { "line": 10, @@ -4621,8 +4621,8 @@ "postfix": false, "binop": null }, - "start": 313, - "end": 314, + "start": 304, + "end": 305, "loc": { "start": { "line": 10, @@ -4647,8 +4647,8 @@ "binop": null, "updateContext": null }, - "start": 314, - "end": 315, + "start": 305, + "end": 306, "loc": { "start": { "line": 10, @@ -4675,8 +4675,8 @@ "updateContext": null }, "value": "const", - "start": 319, - "end": 324, + "start": 308, + "end": 313, "loc": { "start": { "line": 12, @@ -4701,8 +4701,8 @@ "binop": null }, "value": "hasConfig", - "start": 325, - "end": 334, + "start": 314, + "end": 323, "loc": { "start": { "line": 12, @@ -4728,8 +4728,8 @@ "updateContext": null }, "value": "=", - "start": 335, - "end": 336, + "start": 324, + "end": 325, "loc": { "start": { "line": 12, @@ -4753,8 +4753,8 @@ "postfix": false, "binop": null }, - "start": 337, - "end": 338, + "start": 326, + "end": 327, "loc": { "start": { "line": 12, @@ -4778,8 +4778,8 @@ "postfix": false, "binop": null }, - "start": 338, - "end": 339, + "start": 327, + "end": 328, "loc": { "start": { "line": 12, @@ -4804,8 +4804,8 @@ "binop": null, "updateContext": null }, - "start": 340, - "end": 342, + "start": 329, + "end": 331, "loc": { "start": { "line": 12, @@ -4829,8 +4829,8 @@ "postfix": false, "binop": null }, - "start": 343, - "end": 344, + "start": 332, + "end": 333, "loc": { "start": { "line": 12, @@ -4857,8 +4857,8 @@ "updateContext": null }, "value": "if", - "start": 348, - "end": 350, + "start": 336, + "end": 338, "loc": { "start": { "line": 13, @@ -4882,8 +4882,8 @@ "postfix": false, "binop": null }, - "start": 351, - "end": 352, + "start": 339, + "end": 340, "loc": { "start": { "line": 13, @@ -4908,8 +4908,8 @@ "binop": null }, "value": "global", - "start": 352, - "end": 358, + "start": 340, + "end": 346, "loc": { "start": { "line": 13, @@ -4934,8 +4934,8 @@ "binop": null, "updateContext": null }, - "start": 358, - "end": 359, + "start": 346, + "end": 347, "loc": { "start": { "line": 13, @@ -4960,8 +4960,8 @@ "binop": null }, "value": "config", - "start": 359, - "end": 365, + "start": 347, + "end": 353, "loc": { "start": { "line": 13, @@ -4987,8 +4987,8 @@ "updateContext": null }, "value": "===", - "start": 366, - "end": 369, + "start": 354, + "end": 357, "loc": { "start": { "line": 13, @@ -5013,8 +5013,8 @@ "binop": null }, "value": "undefined", - "start": 370, - "end": 379, + "start": 358, + "end": 367, "loc": { "start": { "line": 13, @@ -5038,8 +5038,8 @@ "postfix": false, "binop": null }, - "start": 379, - "end": 380, + "start": 367, + "end": 368, "loc": { "start": { "line": 13, @@ -5063,8 +5063,8 @@ "postfix": false, "binop": null }, - "start": 381, - "end": 382, + "start": 369, + "end": 370, "loc": { "start": { "line": 13, @@ -5091,8 +5091,8 @@ "updateContext": null }, "value": "return", - "start": 388, - "end": 394, + "start": 375, + "end": 381, "loc": { "start": { "line": 14, @@ -5119,8 +5119,8 @@ "updateContext": null }, "value": "false", - "start": 395, - "end": 400, + "start": 382, + "end": 387, "loc": { "start": { "line": 14, @@ -5145,8 +5145,8 @@ "binop": null, "updateContext": null }, - "start": 400, - "end": 401, + "start": 387, + "end": 388, "loc": { "start": { "line": 14, @@ -5170,8 +5170,8 @@ "postfix": false, "binop": null }, - "start": 405, - "end": 406, + "start": 391, + "end": 392, "loc": { "start": { "line": 15, @@ -5198,8 +5198,8 @@ "updateContext": null }, "value": "return", - "start": 410, - "end": 416, + "start": 395, + "end": 401, "loc": { "start": { "line": 16, @@ -5226,8 +5226,8 @@ "updateContext": null }, "value": "true", - "start": 417, - "end": 421, + "start": 402, + "end": 406, "loc": { "start": { "line": 16, @@ -5252,8 +5252,8 @@ "binop": null, "updateContext": null }, - "start": 421, - "end": 422, + "start": 406, + "end": 407, "loc": { "start": { "line": 16, @@ -5277,8 +5277,8 @@ "postfix": false, "binop": null }, - "start": 424, - "end": 425, + "start": 408, + "end": 409, "loc": { "start": { "line": 17, @@ -5303,8 +5303,8 @@ "binop": null, "updateContext": null }, - "start": 425, - "end": 426, + "start": 409, + "end": 410, "loc": { "start": { "line": 17, @@ -5329,8 +5329,8 @@ "binop": null }, "value": "commander", - "start": 430, - "end": 439, + "start": 412, + "end": 421, "loc": { "start": { "line": 19, @@ -5355,8 +5355,8 @@ "binop": null, "updateContext": null }, - "start": 443, - "end": 444, + "start": 424, + "end": 425, "loc": { "start": { "line": 20, @@ -5381,8 +5381,8 @@ "binop": null }, "value": "version", - "start": 444, - "end": 451, + "start": 425, + "end": 432, "loc": { "start": { "line": 20, @@ -5406,8 +5406,8 @@ "postfix": false, "binop": null }, - "start": 451, - "end": 452, + "start": 432, + "end": 433, "loc": { "start": { "line": 20, @@ -5432,8 +5432,8 @@ "binop": null }, "value": "version", - "start": 452, - "end": 459, + "start": 433, + "end": 440, "loc": { "start": { "line": 20, @@ -5457,8 +5457,8 @@ "postfix": false, "binop": null }, - "start": 459, - "end": 460, + "start": 440, + "end": 441, "loc": { "start": { "line": 20, @@ -5483,8 +5483,8 @@ "binop": null, "updateContext": null }, - "start": 464, - "end": 465, + "start": 444, + "end": 445, "loc": { "start": { "line": 21, @@ -5509,8 +5509,8 @@ "binop": null }, "value": "option", - "start": 465, - "end": 471, + "start": 445, + "end": 451, "loc": { "start": { "line": 21, @@ -5534,8 +5534,8 @@ "postfix": false, "binop": null }, - "start": 471, - "end": 472, + "start": 451, + "end": 452, "loc": { "start": { "line": 21, @@ -5561,8 +5561,8 @@ "updateContext": null }, "value": "-b, --build", - "start": 472, - "end": 485, + "start": 452, + "end": 465, "loc": { "start": { "line": 21, @@ -5587,8 +5587,8 @@ "binop": null, "updateContext": null }, - "start": 485, - "end": 486, + "start": 465, + "end": 466, "loc": { "start": { "line": 21, @@ -5614,8 +5614,8 @@ "updateContext": null }, "value": "build your app/component", - "start": 487, - "end": 513, + "start": 467, + "end": 493, "loc": { "start": { "line": 21, @@ -5639,8 +5639,8 @@ "postfix": false, "binop": null }, - "start": 513, - "end": 514, + "start": 493, + "end": 494, "loc": { "start": { "line": 21, @@ -5665,8 +5665,8 @@ "binop": null, "updateContext": null }, - "start": 518, - "end": 519, + "start": 497, + "end": 498, "loc": { "start": { "line": 22, @@ -5691,8 +5691,8 @@ "binop": null }, "value": "option", - "start": 519, - "end": 525, + "start": 498, + "end": 504, "loc": { "start": { "line": 22, @@ -5716,8 +5716,8 @@ "postfix": false, "binop": null }, - "start": 525, - "end": 526, + "start": 504, + "end": 505, "loc": { "start": { "line": 22, @@ -5743,8 +5743,8 @@ "updateContext": null }, "value": "-s, --serve", - "start": 526, - "end": 539, + "start": 505, + "end": 518, "loc": { "start": { "line": 22, @@ -5769,8 +5769,8 @@ "binop": null, "updateContext": null }, - "start": 539, - "end": 540, + "start": 518, + "end": 519, "loc": { "start": { "line": 22, @@ -5796,8 +5796,8 @@ "updateContext": null }, "value": "serve your app/component", - "start": 541, - "end": 567, + "start": 520, + "end": 546, "loc": { "start": { "line": 22, @@ -5821,8 +5821,8 @@ "postfix": false, "binop": null }, - "start": 567, - "end": 568, + "start": 546, + "end": 547, "loc": { "start": { "line": 22, @@ -5847,8 +5847,8 @@ "binop": null, "updateContext": null }, - "start": 572, - "end": 573, + "start": 550, + "end": 551, "loc": { "start": { "line": 23, @@ -5873,8 +5873,8 @@ "binop": null }, "value": "option", - "start": 573, - "end": 579, + "start": 551, + "end": 557, "loc": { "start": { "line": 23, @@ -5898,8 +5898,8 @@ "postfix": false, "binop": null }, - "start": 579, - "end": 580, + "start": 557, + "end": 558, "loc": { "start": { "line": 23, @@ -5925,8 +5925,8 @@ "updateContext": null }, "value": "-c, --copy", - "start": 580, - "end": 592, + "start": 558, + "end": 570, "loc": { "start": { "line": 23, @@ -5951,8 +5951,8 @@ "binop": null, "updateContext": null }, - "start": 592, - "end": 593, + "start": 570, + "end": 571, "loc": { "start": { "line": 23, @@ -5978,8 +5978,8 @@ "updateContext": null }, "value": "copy files from your app/component src folder to it distribution folder", - "start": 594, - "end": 667, + "start": 572, + "end": 645, "loc": { "start": { "line": 23, @@ -6003,8 +6003,8 @@ "postfix": false, "binop": null }, - "start": 667, - "end": 668, + "start": 645, + "end": 646, "loc": { "start": { "line": 23, @@ -6029,8 +6029,8 @@ "binop": null, "updateContext": null }, - "start": 672, - "end": 673, + "start": 649, + "end": 650, "loc": { "start": { "line": 24, @@ -6055,8 +6055,8 @@ "binop": null }, "value": "option", - "start": 673, - "end": 679, + "start": 650, + "end": 656, "loc": { "start": { "line": 24, @@ -6080,8 +6080,8 @@ "postfix": false, "binop": null }, - "start": 679, - "end": 680, + "start": 656, + "end": 657, "loc": { "start": { "line": 24, @@ -6107,8 +6107,8 @@ "updateContext": null }, "value": "-d, --debug", - "start": 680, - "end": 693, + "start": 657, + "end": 670, "loc": { "start": { "line": 24, @@ -6133,8 +6133,8 @@ "binop": null, "updateContext": null }, - "start": 693, - "end": 694, + "start": 670, + "end": 671, "loc": { "start": { "line": 24, @@ -6160,8 +6160,8 @@ "updateContext": null }, "value": "show all warnings", - "start": 695, - "end": 714, + "start": 672, + "end": 691, "loc": { "start": { "line": 24, @@ -6185,8 +6185,8 @@ "postfix": false, "binop": null }, - "start": 714, - "end": 715, + "start": 691, + "end": 692, "loc": { "start": { "line": 24, @@ -6211,8 +6211,8 @@ "binop": null, "updateContext": null }, - "start": 719, - "end": 720, + "start": 695, + "end": 696, "loc": { "start": { "line": 25, @@ -6237,8 +6237,8 @@ "binop": null }, "value": "parse", - "start": 720, - "end": 725, + "start": 696, + "end": 701, "loc": { "start": { "line": 25, @@ -6262,8 +6262,8 @@ "postfix": false, "binop": null }, - "start": 725, - "end": 726, + "start": 701, + "end": 702, "loc": { "start": { "line": 25, @@ -6288,8 +6288,8 @@ "binop": null }, "value": "process", - "start": 726, - "end": 733, + "start": 702, + "end": 709, "loc": { "start": { "line": 25, @@ -6314,8 +6314,8 @@ "binop": null, "updateContext": null }, - "start": 733, - "end": 734, + "start": 709, + "end": 710, "loc": { "start": { "line": 25, @@ -6340,8 +6340,8 @@ "binop": null }, "value": "argv", - "start": 734, - "end": 738, + "start": 710, + "end": 714, "loc": { "start": { "line": 25, @@ -6365,8 +6365,8 @@ "postfix": false, "binop": null }, - "start": 738, - "end": 739, + "start": 714, + "end": 715, "loc": { "start": { "line": 25, @@ -6391,8 +6391,8 @@ "binop": null, "updateContext": null }, - "start": 739, - "end": 740, + "start": 715, + "end": 716, "loc": { "start": { "line": 25, @@ -6419,8 +6419,8 @@ "updateContext": null }, "value": "let", - "start": 744, - "end": 747, + "start": 718, + "end": 721, "loc": { "start": { "line": 27, @@ -6445,8 +6445,8 @@ "binop": null }, "value": "build", - "start": 748, - "end": 753, + "start": 722, + "end": 727, "loc": { "start": { "line": 27, @@ -6472,8 +6472,8 @@ "updateContext": null }, "value": "=", - "start": 754, - "end": 755, + "start": 728, + "end": 729, "loc": { "start": { "line": 27, @@ -6498,8 +6498,8 @@ "binop": null }, "value": "commander", - "start": 756, - "end": 765, + "start": 730, + "end": 739, "loc": { "start": { "line": 27, @@ -6524,8 +6524,8 @@ "binop": null, "updateContext": null }, - "start": 765, - "end": 766, + "start": 739, + "end": 740, "loc": { "start": { "line": 27, @@ -6550,8 +6550,8 @@ "binop": null }, "value": "build", - "start": 766, - "end": 771, + "start": 740, + "end": 745, "loc": { "start": { "line": 27, @@ -6576,8 +6576,8 @@ "binop": null, "updateContext": null }, - "start": 771, - "end": 772, + "start": 745, + "end": 746, "loc": { "start": { "line": 27, @@ -6604,8 +6604,8 @@ "updateContext": null }, "value": "let", - "start": 774, - "end": 777, + "start": 747, + "end": 750, "loc": { "start": { "line": 28, @@ -6630,8 +6630,8 @@ "binop": null }, "value": "copy", - "start": 778, - "end": 782, + "start": 751, + "end": 755, "loc": { "start": { "line": 28, @@ -6657,8 +6657,8 @@ "updateContext": null }, "value": "=", - "start": 783, - "end": 784, + "start": 756, + "end": 757, "loc": { "start": { "line": 28, @@ -6683,8 +6683,8 @@ "binop": null }, "value": "commander", - "start": 785, - "end": 794, + "start": 758, + "end": 767, "loc": { "start": { "line": 28, @@ -6709,8 +6709,8 @@ "binop": null, "updateContext": null }, - "start": 794, - "end": 795, + "start": 767, + "end": 768, "loc": { "start": { "line": 28, @@ -6735,8 +6735,8 @@ "binop": null }, "value": "build", - "start": 795, - "end": 800, + "start": 768, + "end": 773, "loc": { "start": { "line": 28, @@ -6762,8 +6762,8 @@ "updateContext": null }, "value": "||", - "start": 801, - "end": 803, + "start": 774, + "end": 776, "loc": { "start": { "line": 28, @@ -6788,8 +6788,8 @@ "binop": null }, "value": "commander", - "start": 804, - "end": 813, + "start": 777, + "end": 786, "loc": { "start": { "line": 28, @@ -6814,8 +6814,8 @@ "binop": null, "updateContext": null }, - "start": 813, - "end": 814, + "start": 786, + "end": 787, "loc": { "start": { "line": 28, @@ -6840,8 +6840,8 @@ "binop": null }, "value": "copy", - "start": 814, - "end": 818, + "start": 787, + "end": 791, "loc": { "start": { "line": 28, @@ -6866,8 +6866,8 @@ "binop": null, "updateContext": null }, - "start": 818, - "end": 819, + "start": 791, + "end": 792, "loc": { "start": { "line": 28, @@ -6894,8 +6894,8 @@ "updateContext": null }, "value": "let", - "start": 821, - "end": 824, + "start": 793, + "end": 796, "loc": { "start": { "line": 29, @@ -6920,8 +6920,8 @@ "binop": null }, "value": "serve", - "start": 825, - "end": 830, + "start": 797, + "end": 802, "loc": { "start": { "line": 29, @@ -6947,8 +6947,8 @@ "updateContext": null }, "value": "=", - "start": 831, - "end": 832, + "start": 803, + "end": 804, "loc": { "start": { "line": 29, @@ -6973,8 +6973,8 @@ "binop": null }, "value": "commander", - "start": 833, - "end": 842, + "start": 805, + "end": 814, "loc": { "start": { "line": 29, @@ -6999,8 +6999,8 @@ "binop": null, "updateContext": null }, - "start": 842, - "end": 843, + "start": 814, + "end": 815, "loc": { "start": { "line": 29, @@ -7025,8 +7025,8 @@ "binop": null }, "value": "serve", - "start": 843, - "end": 848, + "start": 815, + "end": 820, "loc": { "start": { "line": 29, @@ -7051,8 +7051,8 @@ "binop": null, "updateContext": null }, - "start": 848, - "end": 849, + "start": 820, + "end": 821, "loc": { "start": { "line": 29, @@ -7079,8 +7079,8 @@ "updateContext": null }, "value": "let", - "start": 851, - "end": 854, + "start": 822, + "end": 825, "loc": { "start": { "line": 30, @@ -7105,8 +7105,8 @@ "binop": null }, "value": "debug", - "start": 855, - "end": 860, + "start": 826, + "end": 831, "loc": { "start": { "line": 30, @@ -7132,8 +7132,8 @@ "updateContext": null }, "value": "=", - "start": 861, - "end": 862, + "start": 832, + "end": 833, "loc": { "start": { "line": 30, @@ -7158,8 +7158,8 @@ "binop": null }, "value": "commander", - "start": 863, - "end": 872, + "start": 834, + "end": 843, "loc": { "start": { "line": 30, @@ -7184,8 +7184,8 @@ "binop": null, "updateContext": null }, - "start": 872, - "end": 873, + "start": 843, + "end": 844, "loc": { "start": { "line": 30, @@ -7210,8 +7210,8 @@ "binop": null }, "value": "debug", - "start": 873, - "end": 878, + "start": 844, + "end": 849, "loc": { "start": { "line": 30, @@ -7236,8 +7236,8 @@ "binop": null, "updateContext": null }, - "start": 878, - "end": 879, + "start": 849, + "end": 850, "loc": { "start": { "line": 30, @@ -7264,8 +7264,8 @@ "updateContext": null }, "value": "if", - "start": 883, - "end": 885, + "start": 852, + "end": 854, "loc": { "start": { "line": 32, @@ -7289,8 +7289,8 @@ "postfix": false, "binop": null }, - "start": 886, - "end": 887, + "start": 855, + "end": 856, "loc": { "start": { "line": 32, @@ -7315,8 +7315,8 @@ "binop": null }, "value": "hasConfig", - "start": 887, - "end": 896, + "start": 856, + "end": 865, "loc": { "start": { "line": 32, @@ -7340,8 +7340,8 @@ "postfix": false, "binop": null }, - "start": 896, - "end": 897, + "start": 865, + "end": 866, "loc": { "start": { "line": 32, @@ -7365,8 +7365,8 @@ "postfix": false, "binop": null }, - "start": 897, - "end": 898, + "start": 866, + "end": 867, "loc": { "start": { "line": 32, @@ -7390,8 +7390,8 @@ "postfix": false, "binop": null }, - "start": 898, - "end": 899, + "start": 867, + "end": 868, "loc": { "start": { "line": 32, @@ -7415,8 +7415,8 @@ "postfix": false, "binop": null }, - "start": 900, - "end": 901, + "start": 869, + "end": 870, "loc": { "start": { "line": 32, @@ -7441,8 +7441,8 @@ "binop": null }, "value": "global", - "start": 905, - "end": 911, + "start": 873, + "end": 879, "loc": { "start": { "line": 33, @@ -7467,8 +7467,8 @@ "binop": null, "updateContext": null }, - "start": 911, - "end": 912, + "start": 879, + "end": 880, "loc": { "start": { "line": 33, @@ -7493,8 +7493,8 @@ "binop": null }, "value": "debug", - "start": 912, - "end": 917, + "start": 880, + "end": 885, "loc": { "start": { "line": 33, @@ -7520,8 +7520,8 @@ "updateContext": null }, "value": "=", - "start": 918, - "end": 919, + "start": 886, + "end": 887, "loc": { "start": { "line": 33, @@ -7546,8 +7546,8 @@ "binop": null }, "value": "debug", - "start": 920, - "end": 925, + "start": 888, + "end": 893, "loc": { "start": { "line": 33, @@ -7573,8 +7573,8 @@ "updateContext": null }, "value": "||", - "start": 926, - "end": 928, + "start": 894, + "end": 896, "loc": { "start": { "line": 33, @@ -7599,8 +7599,8 @@ "binop": null }, "value": "config", - "start": 929, - "end": 935, + "start": 897, + "end": 903, "loc": { "start": { "line": 33, @@ -7625,8 +7625,8 @@ "binop": null, "updateContext": null }, - "start": 935, - "end": 936, + "start": 903, + "end": 904, "loc": { "start": { "line": 33, @@ -7651,8 +7651,8 @@ "binop": null }, "value": "debug", - "start": 936, - "end": 941, + "start": 904, + "end": 909, "loc": { "start": { "line": 33, @@ -7677,8 +7677,8 @@ "binop": null, "updateContext": null }, - "start": 941, - "end": 942, + "start": 909, + "end": 910, "loc": { "start": { "line": 33, @@ -7705,8 +7705,8 @@ "updateContext": null }, "value": "if", - "start": 946, - "end": 948, + "start": 913, + "end": 915, "loc": { "start": { "line": 34, @@ -7730,8 +7730,8 @@ "postfix": false, "binop": null }, - "start": 949, - "end": 950, + "start": 916, + "end": 917, "loc": { "start": { "line": 34, @@ -7756,8 +7756,8 @@ "binop": null }, "value": "build", - "start": 950, - "end": 955, + "start": 917, + "end": 922, "loc": { "start": { "line": 34, @@ -7781,8 +7781,8 @@ "postfix": false, "binop": null }, - "start": 955, - "end": 956, + "start": 922, + "end": 923, "loc": { "start": { "line": 34, @@ -7806,8 +7806,8 @@ "postfix": false, "binop": null }, - "start": 957, - "end": 958, + "start": 924, + "end": 925, "loc": { "start": { "line": 34, @@ -7834,8 +7834,8 @@ "updateContext": null }, "value": "const", - "start": 964, - "end": 969, + "start": 930, + "end": 935, "loc": { "start": { "line": 35, @@ -7860,8 +7860,8 @@ "binop": null }, "value": "builder", - "start": 970, - "end": 977, + "start": 936, + "end": 943, "loc": { "start": { "line": 35, @@ -7887,8 +7887,8 @@ "updateContext": null }, "value": "=", - "start": 978, - "end": 979, + "start": 944, + "end": 945, "loc": { "start": { "line": 35, @@ -7915,8 +7915,8 @@ "updateContext": null }, "value": "new", - "start": 980, - "end": 983, + "start": 946, + "end": 949, "loc": { "start": { "line": 35, @@ -7941,8 +7941,8 @@ "binop": null }, "value": "Builder", - "start": 984, - "end": 991, + "start": 950, + "end": 957, "loc": { "start": { "line": 35, @@ -7966,8 +7966,8 @@ "postfix": false, "binop": null }, - "start": 991, - "end": 992, + "start": 957, + "end": 958, "loc": { "start": { "line": 35, @@ -7992,8 +7992,8 @@ "binop": null }, "value": "config", - "start": 992, - "end": 998, + "start": 958, + "end": 964, "loc": { "start": { "line": 35, @@ -8017,8 +8017,8 @@ "postfix": false, "binop": null }, - "start": 998, - "end": 999, + "start": 964, + "end": 965, "loc": { "start": { "line": 35, @@ -8043,8 +8043,8 @@ "binop": null, "updateContext": null }, - "start": 999, - "end": 1000, + "start": 965, + "end": 966, "loc": { "start": { "line": 35, @@ -8069,8 +8069,8 @@ "binop": null }, "value": "builder", - "start": 1006, - "end": 1013, + "start": 971, + "end": 978, "loc": { "start": { "line": 36, @@ -8095,8 +8095,8 @@ "binop": null, "updateContext": null }, - "start": 1013, - "end": 1014, + "start": 978, + "end": 979, "loc": { "start": { "line": 36, @@ -8121,8 +8121,8 @@ "binop": null }, "value": "build", - "start": 1014, - "end": 1019, + "start": 979, + "end": 984, "loc": { "start": { "line": 36, @@ -8146,8 +8146,8 @@ "postfix": false, "binop": null }, - "start": 1019, - "end": 1020, + "start": 984, + "end": 985, "loc": { "start": { "line": 36, @@ -8172,8 +8172,8 @@ "binop": null }, "value": "config", - "start": 1020, - "end": 1026, + "start": 985, + "end": 991, "loc": { "start": { "line": 36, @@ -8197,8 +8197,8 @@ "postfix": false, "binop": null }, - "start": 1026, - "end": 1027, + "start": 991, + "end": 992, "loc": { "start": { "line": 36, @@ -8223,8 +8223,8 @@ "binop": null, "updateContext": null }, - "start": 1027, - "end": 1028, + "start": 992, + "end": 993, "loc": { "start": { "line": 36, @@ -8248,8 +8248,8 @@ "postfix": false, "binop": null }, - "start": 1032, - "end": 1033, + "start": 996, + "end": 997, "loc": { "start": { "line": 37, @@ -8276,8 +8276,8 @@ "updateContext": null }, "value": "if", - "start": 1037, - "end": 1039, + "start": 1000, + "end": 1002, "loc": { "start": { "line": 38, @@ -8301,8 +8301,8 @@ "postfix": false, "binop": null }, - "start": 1040, - "end": 1041, + "start": 1003, + "end": 1004, "loc": { "start": { "line": 38, @@ -8327,8 +8327,8 @@ "binop": null }, "value": "copy", - "start": 1041, - "end": 1045, + "start": 1004, + "end": 1008, "loc": { "start": { "line": 38, @@ -8352,8 +8352,8 @@ "postfix": false, "binop": null }, - "start": 1045, - "end": 1046, + "start": 1008, + "end": 1009, "loc": { "start": { "line": 38, @@ -8377,8 +8377,8 @@ "postfix": false, "binop": null }, - "start": 1047, - "end": 1048, + "start": 1010, + "end": 1011, "loc": { "start": { "line": 38, @@ -8403,8 +8403,8 @@ "binop": null }, "value": "utils", - "start": 1054, - "end": 1059, + "start": 1016, + "end": 1021, "loc": { "start": { "line": 39, @@ -8429,8 +8429,8 @@ "binop": null, "updateContext": null }, - "start": 1059, - "end": 1060, + "start": 1021, + "end": 1022, "loc": { "start": { "line": 39, @@ -8455,8 +8455,8 @@ "binop": null }, "value": "copySources", - "start": 1060, - "end": 1071, + "start": 1022, + "end": 1033, "loc": { "start": { "line": 39, @@ -8480,8 +8480,8 @@ "postfix": false, "binop": null }, - "start": 1071, - "end": 1072, + "start": 1033, + "end": 1034, "loc": { "start": { "line": 39, @@ -8506,8 +8506,8 @@ "binop": null }, "value": "config", - "start": 1072, - "end": 1078, + "start": 1034, + "end": 1040, "loc": { "start": { "line": 39, @@ -8532,8 +8532,8 @@ "binop": null, "updateContext": null }, - "start": 1078, - "end": 1079, + "start": 1040, + "end": 1041, "loc": { "start": { "line": 39, @@ -8558,8 +8558,8 @@ "binop": null }, "value": "sources", - "start": 1079, - "end": 1086, + "start": 1041, + "end": 1048, "loc": { "start": { "line": 39, @@ -8583,8 +8583,8 @@ "postfix": false, "binop": null }, - "start": 1086, - "end": 1087, + "start": 1048, + "end": 1049, "loc": { "start": { "line": 39, @@ -8609,8 +8609,8 @@ "binop": null, "updateContext": null }, - "start": 1087, - "end": 1088, + "start": 1049, + "end": 1050, "loc": { "start": { "line": 39, @@ -8634,8 +8634,8 @@ "postfix": false, "binop": null }, - "start": 1092, - "end": 1093, + "start": 1053, + "end": 1054, "loc": { "start": { "line": 40, @@ -8662,8 +8662,8 @@ "updateContext": null }, "value": "if", - "start": 1097, - "end": 1099, + "start": 1057, + "end": 1059, "loc": { "start": { "line": 41, @@ -8687,8 +8687,8 @@ "postfix": false, "binop": null }, - "start": 1100, - "end": 1101, + "start": 1060, + "end": 1061, "loc": { "start": { "line": 41, @@ -8713,8 +8713,8 @@ "binop": null }, "value": "serve", - "start": 1101, - "end": 1106, + "start": 1061, + "end": 1066, "loc": { "start": { "line": 41, @@ -8738,8 +8738,8 @@ "postfix": false, "binop": null }, - "start": 1106, - "end": 1107, + "start": 1066, + "end": 1067, "loc": { "start": { "line": 41, @@ -8763,8 +8763,8 @@ "postfix": false, "binop": null }, - "start": 1108, - "end": 1109, + "start": 1068, + "end": 1069, "loc": { "start": { "line": 41, @@ -8791,8 +8791,8 @@ "updateContext": null }, "value": "const", - "start": 1115, - "end": 1120, + "start": 1074, + "end": 1079, "loc": { "start": { "line": 42, @@ -8817,8 +8817,8 @@ "binop": null }, "value": "server", - "start": 1121, - "end": 1127, + "start": 1080, + "end": 1086, "loc": { "start": { "line": 42, @@ -8844,8 +8844,8 @@ "updateContext": null }, "value": "=", - "start": 1128, - "end": 1129, + "start": 1087, + "end": 1088, "loc": { "start": { "line": 42, @@ -8872,8 +8872,8 @@ "updateContext": null }, "value": "new", - "start": 1130, - "end": 1133, + "start": 1089, + "end": 1092, "loc": { "start": { "line": 42, @@ -8898,8 +8898,8 @@ "binop": null }, "value": "Server", - "start": 1134, - "end": 1140, + "start": 1093, + "end": 1099, "loc": { "start": { "line": 42, @@ -8923,8 +8923,8 @@ "postfix": false, "binop": null }, - "start": 1140, - "end": 1141, + "start": 1099, + "end": 1100, "loc": { "start": { "line": 42, @@ -8948,8 +8948,8 @@ "postfix": false, "binop": null }, - "start": 1141, - "end": 1142, + "start": 1100, + "end": 1101, "loc": { "start": { "line": 42, @@ -8974,8 +8974,8 @@ "binop": null, "updateContext": null }, - "start": 1142, - "end": 1143, + "start": 1101, + "end": 1102, "loc": { "start": { "line": 42, @@ -9000,8 +9000,8 @@ "binop": null }, "value": "server", - "start": 1149, - "end": 1155, + "start": 1107, + "end": 1113, "loc": { "start": { "line": 43, @@ -9026,8 +9026,8 @@ "binop": null, "updateContext": null }, - "start": 1155, - "end": 1156, + "start": 1113, + "end": 1114, "loc": { "start": { "line": 43, @@ -9052,8 +9052,8 @@ "binop": null }, "value": "serve", - "start": 1156, - "end": 1161, + "start": 1114, + "end": 1119, "loc": { "start": { "line": 43, @@ -9077,8 +9077,8 @@ "postfix": false, "binop": null }, - "start": 1161, - "end": 1162, + "start": 1119, + "end": 1120, "loc": { "start": { "line": 43, @@ -9103,8 +9103,8 @@ "binop": null }, "value": "config", - "start": 1162, - "end": 1168, + "start": 1120, + "end": 1126, "loc": { "start": { "line": 43, @@ -9129,8 +9129,8 @@ "binop": null, "updateContext": null }, - "start": 1168, - "end": 1169, + "start": 1126, + "end": 1127, "loc": { "start": { "line": 43, @@ -9155,8 +9155,8 @@ "binop": null }, "value": "server", - "start": 1169, - "end": 1175, + "start": 1127, + "end": 1133, "loc": { "start": { "line": 43, @@ -9180,8 +9180,8 @@ "postfix": false, "binop": null }, - "start": 1175, - "end": 1176, + "start": 1133, + "end": 1134, "loc": { "start": { "line": 43, @@ -9206,8 +9206,8 @@ "binop": null, "updateContext": null }, - "start": 1176, - "end": 1177, + "start": 1134, + "end": 1135, "loc": { "start": { "line": 43, @@ -9231,8 +9231,8 @@ "postfix": false, "binop": null }, - "start": 1181, - "end": 1182, + "start": 1138, + "end": 1139, "loc": { "start": { "line": 44, @@ -9256,8 +9256,8 @@ "postfix": false, "binop": null }, - "start": 1184, - "end": 1185, + "start": 1140, + "end": 1141, "loc": { "start": { "line": 45, @@ -9282,8 +9282,8 @@ "binop": null, "updateContext": null }, - "start": 1187, - "end": 1187, + "start": 1142, + "end": 1142, "loc": { "start": { "line": 46, diff --git a/docs/ast/source/config.js.json b/docs/ast/source/config.js.json index fade070..cbf6614 100644 --- a/docs/ast/source/config.js.json +++ b/docs/ast/source/config.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 1740, + "end": 2322, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 65, + "line": 89, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 1740, + "end": 2322, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 65, + "line": 89, "column": 0 } }, @@ -187,45 +187,114 @@ ], "kind": "const" }, + { + "type": "ImportDeclaration", + "start": 52, + "end": 85, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 33 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 59, + "end": 65, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "local": { + "type": "Identifier", + "start": 59, + "end": 65, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + }, + "identifierName": "logger" + }, + "name": "logger" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 71, + "end": 84, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 32 + } + }, + "extra": { + "rawValue": "./logger.js", + "raw": "'./logger.js'" + }, + "value": "./logger.js" + } + }, { "type": "ExportDefaultDeclaration", - "start": 53, - "end": 1739, + "start": 87, + "end": 2321, "loc": { "start": { - "line": 4, + "line": 5, "column": 0 }, "end": { - "line": 64, + "line": 88, "column": 1 } }, "declaration": { "type": "ClassDeclaration", - "start": 68, - "end": 1739, + "start": 102, + "end": 2321, "loc": { "start": { - "line": 4, + "line": 5, "column": 15 }, "end": { - "line": 64, + "line": 88, "column": 1 } }, "id": { "type": "Identifier", - "start": 74, - "end": 80, + "start": 108, + "end": 114, "loc": { "start": { - "line": 4, + "line": 5, "column": 21 }, "end": { - "line": 4, + "line": 5, "column": 27 }, "identifierName": "Config" @@ -235,45 +304,45 @@ "superClass": null, "body": { "type": "ClassBody", - "start": 81, - "end": 1739, + "start": 115, + "end": 2321, "loc": { "start": { - "line": 4, + "line": 5, "column": 28 }, "end": { - "line": 64, + "line": 88, "column": 1 } }, "body": [ { "type": "ClassMethod", - "start": 85, - "end": 255, + "start": 119, + "end": 304, "loc": { "start": { - "line": 5, + "line": 6, "column": 2 }, "end": { - "line": 9, + "line": 11, "column": 3 } }, "computed": false, "key": { "type": "Identifier", - "start": 85, - "end": 96, + "start": 119, + "end": 130, "loc": { "start": { - "line": 5, + "line": 6, "column": 2 }, "end": { - "line": 5, + "line": 6, "column": 13 }, "identifierName": "constructor" @@ -289,120 +358,116 @@ "params": [], "body": { "type": "BlockStatement", - "start": 99, - "end": 255, + "start": 133, + "end": 304, "loc": { "start": { - "line": 5, + "line": 6, "column": 16 }, "end": { - "line": 9, + "line": 11, "column": 3 } }, "body": [ { - "type": "VariableDeclaration", - "start": 105, - "end": 138, + "type": "ExpressionStatement", + "start": 139, + "end": 300, "loc": { "start": { - "line": 6, + "line": 7, "column": 4 }, "end": { - "line": 6, - "column": 37 + "line": 10, + "column": 7 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 109, - "end": 137, + "expression": { + "type": "CallExpression", + "start": 139, + "end": 299, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 10, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 139, + "end": 163, "loc": { "start": { - "line": 6, - "column": 8 + "line": 7, + "column": 4 }, "end": { - "line": 6, - "column": 36 + "line": 7, + "column": 28 } }, - "id": { - "type": "Identifier", - "start": 109, - "end": 115, - "loc": { - "start": { - "line": 6, - "column": 8 - }, - "end": { - "line": 6, - "column": 14 - }, - "identifierName": "config" - }, - "name": "config" - }, - "init": { + "object": { "type": "CallExpression", - "start": 118, - "end": 137, + "start": 139, + "end": 158, "loc": { "start": { - "line": 6, - "column": 17 + "line": 7, + "column": 4 }, "end": { - "line": 6, - "column": 36 + "line": 7, + "column": 23 } }, "callee": { "type": "MemberExpression", - "start": 118, - "end": 135, + "start": 139, + "end": 156, "loc": { "start": { - "line": 6, - "column": 17 + "line": 7, + "column": 4 }, "end": { - "line": 6, - "column": 34 + "line": 7, + "column": 21 } }, "object": { "type": "ThisExpression", - "start": 118, - "end": 122, + "start": 139, + "end": 143, "loc": { "start": { - "line": 6, - "column": 17 + "line": 7, + "column": 4 }, "end": { - "line": 6, - "column": 21 + "line": 7, + "column": 8 } } }, "property": { "type": "Identifier", - "start": 123, - "end": 135, + "start": 144, + "end": 156, "loc": { "start": { - "line": 6, - "column": 22 + "line": 7, + "column": 9 }, "end": { - "line": 6, - "column": 34 + "line": 7, + "column": 21 }, "identifierName": "importConfig" }, @@ -411,316 +476,391 @@ "computed": false }, "arguments": [] - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 143, - "end": 207, - "loc": { - "start": { - "line": 7, - "column": 4 - }, - "end": { - "line": 7, - "column": 68 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 149, - "end": 206, - "loc": { - "start": { - "line": 7, - "column": 10 - }, - "end": { - "line": 7, - "column": 67 - } }, - "id": { + "property": { "type": "Identifier", - "start": 149, - "end": 153, + "start": 159, + "end": 163, "loc": { "start": { "line": 7, - "column": 10 + "column": 24 }, "end": { "line": 7, - "column": 14 + "column": 28 }, - "identifierName": "name" + "identifierName": "then" }, - "name": "name" + "name": "then" }, - "init": { - "type": "LogicalExpression", - "start": 156, - "end": 206, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 164, + "end": 298, "loc": { "start": { "line": 7, - "column": 17 + "column": 29 }, "end": { - "line": 7, - "column": 67 + "line": 10, + "column": 5 } }, - "left": { - "type": "CallExpression", - "start": 156, - "end": 180, - "loc": { - "start": { - "line": 7, - "column": 17 - }, - "end": { - "line": 7, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 156, - "end": 178, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 164, + "end": 170, "loc": { "start": { "line": 7, - "column": 17 + "column": 29 }, "end": { "line": 7, - "column": 39 - } - }, - "object": { - "type": "ThisExpression", - "start": 156, - "end": 160, - "loc": { - "start": { - "line": 7, - "column": 17 - }, - "end": { - "line": 7, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "start": 161, - "end": 178, - "loc": { - "start": { - "line": 7, - "column": 22 - }, - "end": { - "line": 7, - "column": 39 - }, - "identifierName": "importPackageName" + "column": 35 }, - "name": "importPackageName" + "identifierName": "config" }, - "computed": false - }, - "arguments": [] - }, - "operator": "||", - "right": { - "type": "CallExpression", - "start": 184, - "end": 206, + "name": "config" + } + ], + "body": { + "type": "BlockStatement", + "start": 174, + "end": 298, "loc": { "start": { "line": 7, - "column": 45 + "column": 39 }, "end": { - "line": 7, - "column": 67 + "line": 10, + "column": 5 } }, - "callee": { - "type": "MemberExpression", - "start": 184, - "end": 204, - "loc": { - "start": { - "line": 7, - "column": 45 - }, - "end": { - "line": 7, - "column": 65 - } - }, - "object": { - "type": "ThisExpression", - "start": 184, - "end": 188, + "body": [ + { + "type": "VariableDeclaration", + "start": 182, + "end": 246, "loc": { "start": { - "line": 7, - "column": 45 + "line": 8, + "column": 6 }, "end": { - "line": 7, - "column": 49 + "line": 8, + "column": 70 } - } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 188, + "end": 245, + "loc": { + "start": { + "line": 8, + "column": 12 + }, + "end": { + "line": 8, + "column": 69 + } + }, + "id": { + "type": "Identifier", + "start": 188, + "end": 192, + "loc": { + "start": { + "line": 8, + "column": 12 + }, + "end": { + "line": 8, + "column": 16 + }, + "identifierName": "name" + }, + "name": "name" + }, + "init": { + "type": "LogicalExpression", + "start": 195, + "end": 245, + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 69 + } + }, + "left": { + "type": "CallExpression", + "start": 195, + "end": 219, + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 195, + "end": 217, + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 195, + "end": 199, + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 200, + "end": 217, + "loc": { + "start": { + "line": 8, + "column": 24 + }, + "end": { + "line": 8, + "column": 41 + }, + "identifierName": "importPackageName" + }, + "name": "importPackageName" + }, + "computed": false + }, + "arguments": [] + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 223, + "end": 245, + "loc": { + "start": { + "line": 8, + "column": 47 + }, + "end": { + "line": 8, + "column": 69 + } + }, + "callee": { + "type": "MemberExpression", + "start": 223, + "end": 243, + "loc": { + "start": { + "line": 8, + "column": 47 + }, + "end": { + "line": 8, + "column": 67 + } + }, + "object": { + "type": "ThisExpression", + "start": 223, + "end": 227, + "loc": { + "start": { + "line": 8, + "column": 47 + }, + "end": { + "line": 8, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "start": 228, + "end": 243, + "loc": { + "start": { + "line": 8, + "column": 52 + }, + "end": { + "line": 8, + "column": 67 + }, + "identifierName": "importBowerName" + }, + "name": "importBowerName" + }, + "computed": false + }, + "arguments": [] + } + } + } + ], + "kind": "const" }, - "property": { - "type": "Identifier", - "start": 189, - "end": 204, + { + "type": "ReturnStatement", + "start": 253, + "end": 292, "loc": { "start": { - "line": 7, - "column": 50 + "line": 9, + "column": 6 }, "end": { - "line": 7, - "column": 65 - }, - "identifierName": "importBowerName" + "line": 9, + "column": 45 + } }, - "name": "importBowerName" - }, - "computed": false - }, - "arguments": [] + "argument": { + "type": "CallExpression", + "start": 260, + "end": 291, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 44 + } + }, + "callee": { + "type": "MemberExpression", + "start": 260, + "end": 277, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 260, + "end": 264, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 265, + "end": 277, + "loc": { + "start": { + "line": 9, + "column": 18 + }, + "end": { + "line": 9, + "column": 30 + }, + "identifierName": "updateConfig" + }, + "name": "updateConfig" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 278, + "end": 284, + "loc": { + "start": { + "line": 9, + "column": 31 + }, + "end": { + "line": 9, + "column": 37 + }, + "identifierName": "config" + }, + "name": "config" + }, + { + "type": "Identifier", + "start": 286, + "end": 290, + "loc": { + "start": { + "line": 9, + "column": 39 + }, + "end": { + "line": 9, + "column": 43 + }, + "identifierName": "name" + }, + "name": "name" + } + ] + } + } + ], + "directives": [] } } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 212, - "end": 251, - "loc": { - "start": { - "line": 8, - "column": 4 - }, - "end": { - "line": 8, - "column": 43 - } - }, - "argument": { - "type": "CallExpression", - "start": 219, - "end": 250, - "loc": { - "start": { - "line": 8, - "column": 11 - }, - "end": { - "line": 8, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 219, - "end": 236, - "loc": { - "start": { - "line": 8, - "column": 11 - }, - "end": { - "line": 8, - "column": 28 - } - }, - "object": { - "type": "ThisExpression", - "start": 219, - "end": 223, - "loc": { - "start": { - "line": 8, - "column": 11 - }, - "end": { - "line": 8, - "column": 15 - } - } - }, - "property": { - "type": "Identifier", - "start": 224, - "end": 236, - "loc": { - "start": { - "line": 8, - "column": 16 - }, - "end": { - "line": 8, - "column": 28 - }, - "identifierName": "updateConfig" - }, - "name": "updateConfig" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 237, - "end": 243, - "loc": { - "start": { - "line": 8, - "column": 29 - }, - "end": { - "line": 8, - "column": 35 - }, - "identifierName": "config" - }, - "name": "config" - }, - { - "type": "Identifier", - "start": 245, - "end": 249, - "loc": { - "start": { - "line": 8, - "column": 37 - }, - "end": { - "line": 8, - "column": 41 - }, - "identifierName": "name" - }, - "name": "name" - } ] } } @@ -732,15 +872,15 @@ { "type": "CommentBlock", "value": "*\n * wrapper around cjs require\n * try's to read file from current working directory\n * @param {string} path path to file/module\n * @return {object|array|function|class} module or file\n ", - "start": 259, - "end": 459, + "start": 308, + "end": 508, "loc": { "start": { - "line": 11, + "line": 13, "column": 2 }, "end": { - "line": 16, + "line": 18, "column": 5 } } @@ -749,30 +889,30 @@ }, { "type": "ClassMethod", - "start": 462, - "end": 635, + "start": 511, + "end": 774, "loc": { "start": { - "line": 17, + "line": 19, "column": 2 }, "end": { - "line": 25, + "line": 30, "column": 3 } }, "computed": false, "key": { "type": "Identifier", - "start": 462, - "end": 469, + "start": 511, + "end": 518, "loc": { "start": { - "line": 17, + "line": 19, "column": 2 }, "end": { - "line": 17, + "line": 19, "column": 9 }, "identifierName": "require" @@ -789,15 +929,15 @@ "params": [ { "type": "Identifier", - "start": 470, - "end": 474, + "start": 519, + "end": 523, "loc": { "start": { - "line": 17, + "line": 19, "column": 10 }, "end": { - "line": 17, + "line": 19, "column": 14 }, "identifierName": "path" @@ -807,508 +947,698 @@ ], "body": { "type": "BlockStatement", - "start": 476, - "end": 635, + "start": 525, + "end": 774, "loc": { "start": { - "line": 17, + "line": 19, "column": 16 }, "end": { - "line": 25, + "line": 30, "column": 3 } }, "body": [ { - "type": "VariableDeclaration", - "start": 482, - "end": 507, + "type": "ReturnStatement", + "start": 531, + "end": 770, "loc": { "start": { - "line": 18, + "line": 20, "column": 4 }, "end": { - "line": 18, - "column": 29 + "line": 29, + "column": 7 } }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 486, - "end": 506, + "argument": { + "type": "NewExpression", + "start": 538, + "end": 769, + "loc": { + "start": { + "line": 20, + "column": 11 + }, + "end": { + "line": 29, + "column": 6 + } + }, + "callee": { + "type": "Identifier", + "start": 542, + "end": 549, "loc": { "start": { - "line": 18, - "column": 8 + "line": 20, + "column": 15 }, "end": { - "line": 18, - "column": 28 - } - }, - "id": { - "type": "Identifier", - "start": 486, - "end": 490, - "loc": { - "start": { - "line": 18, - "column": 8 - }, - "end": { - "line": 18, - "column": 12 - }, - "identifierName": "root" + "line": 20, + "column": 22 }, - "name": "root" + "identifierName": "Promise" }, - "init": { - "type": "CallExpression", - "start": 493, - "end": 506, + "name": "Promise" + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 550, + "end": 768, "loc": { "start": { - "line": 18, - "column": 15 + "line": 20, + "column": 23 }, "end": { - "line": 18, - "column": 28 + "line": 29, + "column": 5 } }, - "callee": { - "type": "MemberExpression", - "start": 493, - "end": 504, - "loc": { - "start": { - "line": 18, - "column": 15 - }, - "end": { - "line": 18, - "column": 26 - } - }, - "object": { + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { "type": "Identifier", - "start": 493, - "end": 500, + "start": 551, + "end": 558, "loc": { "start": { - "line": 18, - "column": 15 + "line": 20, + "column": 24 }, "end": { - "line": 18, - "column": 22 + "line": 20, + "column": 31 }, - "identifierName": "process" + "identifierName": "resolve" }, - "name": "process" + "name": "resolve" }, - "property": { + { "type": "Identifier", - "start": 501, - "end": 504, + "start": 560, + "end": 566, "loc": { "start": { - "line": 18, - "column": 23 + "line": 20, + "column": 33 }, "end": { - "line": 18, - "column": 26 + "line": 20, + "column": 39 }, - "identifierName": "cwd" - }, - "name": "cwd" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "kind": "let" - }, - { - "type": "ExpressionStatement", - "start": 512, - "end": 531, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 23 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 512, - "end": 530, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 22 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 512, - "end": 516, - "loc": { - "start": { - "line": 19, - "column": 4 - }, - "end": { - "line": 19, - "column": 8 - }, - "identifierName": "root" - }, - "name": "root" - }, - "right": { - "type": "TemplateLiteral", - "start": 520, - "end": 530, - "loc": { - "start": { - "line": 19, - "column": 12 - }, - "end": { - "line": 19, - "column": 22 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 524, - "end": 528, - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 20 - }, - "identifierName": "path" - }, - "name": "path" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 521, - "end": 522, - "loc": { - "start": { - "line": 19, - "column": 13 - }, - "end": { - "line": 19, - "column": 14 - } - }, - "value": { - "raw": "/", - "cooked": "/" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 529, - "end": 529, - "loc": { - "start": { - "line": 19, - "column": 21 + "identifierName": "reject" }, - "end": { - "line": 19, - "column": 21 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": true - } - ] - } - } - }, - { - "type": "TryStatement", - "start": 536, - "end": 631, - "loc": { - "start": { - "line": 20, - "column": 4 - }, - "end": { - "line": 24, - "column": 5 - } - }, - "block": { - "type": "BlockStatement", - "start": 540, - "end": 575, - "loc": { - "start": { - "line": 20, - "column": 8 - }, - "end": { - "line": 22, - "column": 5 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 548, - "end": 569, - "loc": { - "start": { - "line": 21, - "column": 6 - }, - "end": { - "line": 21, - "column": 27 + "name": "reject" } - }, - "argument": { - "type": "CallExpression", - "start": 555, - "end": 568, + ], + "body": { + "type": "BlockStatement", + "start": 571, + "end": 768, "loc": { "start": { - "line": 21, - "column": 13 + "line": 20, + "column": 44 }, "end": { - "line": 21, - "column": 26 + "line": 29, + "column": 5 } }, - "callee": { - "type": "Identifier", - "start": 555, - "end": 562, - "loc": { - "start": { - "line": 21, - "column": 13 - }, - "end": { - "line": 21, - "column": 20 - }, - "identifierName": "require" - }, - "name": "require" - }, - "arguments": [ + "body": [ { - "type": "Identifier", - "start": 563, - "end": 567, + "type": "VariableDeclaration", + "start": 579, + "end": 604, "loc": { "start": { "line": 21, - "column": 21 + "column": 6 }, "end": { "line": 21, - "column": 25 - }, - "identifierName": "root" + "column": 31 + } }, - "name": "root" - } - ] - } - } - ], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 576, - "end": 631, - "loc": { - "start": { - "line": 22, - "column": 6 - }, - "end": { - "line": 24, - "column": 5 - } - }, - "param": { - "type": "Identifier", - "start": 583, - "end": 588, - "loc": { - "start": { - "line": 22, - "column": 13 - }, - "end": { - "line": 22, - "column": 18 - }, - "identifierName": "error" - }, - "name": "error" - }, - "body": { - "type": "BlockStatement", - "start": 590, - "end": 631, - "loc": { - "start": { - "line": 22, - "column": 20 - }, - "end": { - "line": 24, - "column": 5 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 598, - "end": 625, - "loc": { - "start": { - "line": 23, - "column": 6 - }, - "end": { - "line": 23, - "column": 33 - } - }, - "argument": { - "type": "CallExpression", - "start": 605, - "end": 624, - "loc": { - "start": { - "line": 23, - "column": 13 - }, - "end": { - "line": 23, - "column": 32 - } + "declarations": [ + { + "type": "VariableDeclarator", + "start": 583, + "end": 603, + "loc": { + "start": { + "line": 21, + "column": 10 + }, + "end": { + "line": 21, + "column": 30 + } + }, + "id": { + "type": "Identifier", + "start": 583, + "end": 587, + "loc": { + "start": { + "line": 21, + "column": 10 + }, + "end": { + "line": 21, + "column": 14 + }, + "identifierName": "root" + }, + "name": "root" + }, + "init": { + "type": "CallExpression", + "start": 590, + "end": 603, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 30 + } + }, + "callee": { + "type": "MemberExpression", + "start": 590, + "end": 601, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 590, + "end": 597, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 24 + }, + "identifierName": "process" + }, + "name": "process" + }, + "property": { + "type": "Identifier", + "start": 598, + "end": 601, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 28 + }, + "identifierName": "cwd" + }, + "name": "cwd" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "kind": "let" }, - "callee": { - "type": "MemberExpression", - "start": 605, - "end": 617, + { + "type": "ExpressionStatement", + "start": 611, + "end": 630, "loc": { "start": { - "line": 23, - "column": 13 + "line": 22, + "column": 6 }, "end": { - "line": 23, + "line": 22, "column": 25 } }, - "object": { - "type": "Identifier", - "start": 605, - "end": 612, + "expression": { + "type": "AssignmentExpression", + "start": 611, + "end": 629, "loc": { "start": { - "line": 23, - "column": 13 + "line": 22, + "column": 6 }, "end": { - "line": 23, - "column": 20 + "line": 22, + "column": 24 + } + }, + "operator": "+=", + "left": { + "type": "Identifier", + "start": 611, + "end": 615, + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 10 + }, + "identifierName": "root" + }, + "name": "root" + }, + "right": { + "type": "TemplateLiteral", + "start": 619, + "end": 629, + "loc": { + "start": { + "line": 22, + "column": 14 + }, + "end": { + "line": 22, + "column": 24 + } }, - "identifierName": "console" + "expressions": [ + { + "type": "Identifier", + "start": 623, + "end": 627, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 22 + }, + "identifierName": "path" + }, + "name": "path" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 620, + "end": 621, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 16 + } + }, + "value": { + "raw": "/", + "cooked": "/" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 628, + "end": 628, + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 23 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "TryStatement", + "start": 637, + "end": 762, + "loc": { + "start": { + "line": 23, + "column": 6 }, - "name": "console" + "end": { + "line": 28, + "column": 7 + } }, - "property": { - "type": "Identifier", - "start": 613, - "end": 617, + "block": { + "type": "BlockStatement", + "start": 641, + "end": 715, "loc": { "start": { "line": 23, - "column": 21 + "column": 10 }, "end": { - "line": 23, - "column": 25 - }, - "identifierName": "warn" + "line": 26, + "column": 7 + } }, - "name": "warn" + "body": [ + { + "type": "VariableDeclaration", + "start": 651, + "end": 680, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 655, + "end": 679, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 655, + "end": 663, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 20 + }, + "identifierName": "required" + }, + "name": "required" + }, + "init": { + "type": "CallExpression", + "start": 666, + "end": 679, + "loc": { + "start": { + "line": 24, + "column": 23 + }, + "end": { + "line": 24, + "column": 36 + } + }, + "callee": { + "type": "Identifier", + "start": 666, + "end": 673, + "loc": { + "start": { + "line": 24, + "column": 23 + }, + "end": { + "line": 24, + "column": 30 + }, + "identifierName": "require" + }, + "name": "require" + }, + "arguments": [ + { + "type": "Identifier", + "start": 674, + "end": 678, + "loc": { + "start": { + "line": 24, + "column": 31 + }, + "end": { + "line": 24, + "column": 35 + }, + "identifierName": "root" + }, + "name": "root" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 689, + "end": 707, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 26 + } + }, + "expression": { + "type": "CallExpression", + "start": 689, + "end": 706, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 25 + } + }, + "callee": { + "type": "Identifier", + "start": 689, + "end": 696, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 15 + }, + "identifierName": "resolve" + }, + "name": "resolve" + }, + "arguments": [ + { + "type": "Identifier", + "start": 697, + "end": 705, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 24 + }, + "identifierName": "required" + }, + "name": "required" + } + ] + } + } + ], + "directives": [] }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 618, - "end": 623, + "handler": { + "type": "CatchClause", + "start": 716, + "end": 762, "loc": { "start": { - "line": 23, - "column": 26 + "line": 26, + "column": 8 }, "end": { - "line": 23, - "column": 31 + "line": 28, + "column": 7 + } + }, + "param": { + "type": "Identifier", + "start": 723, + "end": 728, + "loc": { + "start": { + "line": 26, + "column": 15 + }, + "end": { + "line": 26, + "column": 20 + }, + "identifierName": "error" }, - "identifierName": "error" + "name": "error" }, - "name": "error" - } - ] - } + "body": { + "type": "BlockStatement", + "start": 730, + "end": 762, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 28, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 740, + "end": 754, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 22 + } + }, + "expression": { + "type": "CallExpression", + "start": 740, + "end": 753, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 21 + } + }, + "callee": { + "type": "Identifier", + "start": 740, + "end": 746, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 14 + }, + "identifierName": "reject" + }, + "name": "reject" + }, + "arguments": [ + { + "type": "Identifier", + "start": 747, + "end": 752, + "loc": { + "start": { + "line": 27, + "column": 15 + }, + "end": { + "line": 27, + "column": 20 + }, + "identifierName": "error" + }, + "name": "error" + } + ] + } + } + ], + "directives": [] + } + }, + "guardedHandlers": [], + "finalizer": null + } + ], + "directives": [] } - ], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null + } + ] + } } ], "directives": [], @@ -1318,15 +1648,15 @@ { "type": "CommentBlock", "value": "*\n * wrapper around cjs require\n * try's to read file from current working directory\n * @param {string} path path to file/module\n * @return {object|array|function|class} module or file\n ", - "start": 259, - "end": 459, + "start": 308, + "end": 508, "loc": { "start": { - "line": 11, + "line": 13, "column": 2 }, "end": { - "line": 16, + "line": 18, "column": 5 } } @@ -1336,15 +1666,15 @@ { "type": "CommentBlock", "value": "*\n * @return {object} value of 'backed.json'\n ", - "start": 639, - "end": 693, + "start": 778, + "end": 832, "loc": { "start": { - "line": 27, + "line": 32, "column": 2 }, "end": { - "line": 29, + "line": 34, "column": 5 } } @@ -1353,30 +1683,30 @@ }, { "type": "ClassMethod", - "start": 696, - "end": 756, + "start": 835, + "end": 1150, "loc": { "start": { - "line": 30, + "line": 35, "column": 2 }, "end": { - "line": 32, + "line": 46, "column": 3 } }, "computed": false, "key": { "type": "Identifier", - "start": 696, - "end": 708, + "start": 835, + "end": 847, "loc": { "start": { - "line": 30, + "line": 35, "column": 2 }, "end": { - "line": 30, + "line": 35, "column": 14 }, "identifierName": "importConfig" @@ -1393,487 +1723,722 @@ "params": [], "body": { "type": "BlockStatement", - "start": 711, - "end": 756, + "start": 850, + "end": 1150, "loc": { "start": { - "line": 30, + "line": 35, "column": 17 }, "end": { - "line": 32, + "line": 46, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 717, - "end": 752, + "start": 856, + "end": 1146, "loc": { "start": { - "line": 31, + "line": 36, "column": 4 }, "end": { - "line": 31, - "column": 39 + "line": 45, + "column": 6 } }, "argument": { - "type": "CallExpression", - "start": 724, - "end": 751, + "type": "NewExpression", + "start": 863, + "end": 1146, "loc": { "start": { - "line": 31, + "line": 36, "column": 11 }, "end": { - "line": 31, - "column": 38 + "line": 45, + "column": 6 } }, "callee": { - "type": "MemberExpression", - "start": 724, - "end": 736, + "type": "Identifier", + "start": 867, + "end": 874, "loc": { "start": { - "line": 31, - "column": 11 + "line": 36, + "column": 15 }, "end": { - "line": 31, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 724, - "end": 728, - "loc": { - "start": { - "line": 31, - "column": 11 - }, - "end": { - "line": 31, - "column": 15 - } - } - }, - "property": { - "type": "Identifier", - "start": 729, - "end": 736, - "loc": { - "start": { - "line": 31, - "column": 16 - }, - "end": { - "line": 31, - "column": 23 - }, - "identifierName": "require" + "line": 36, + "column": 22 }, - "name": "require" + "identifierName": "Promise" }, - "computed": false + "name": "Promise" }, "arguments": [ { - "type": "StringLiteral", - "start": 737, - "end": 750, + "type": "ArrowFunctionExpression", + "start": 875, + "end": 1145, "loc": { "start": { - "line": 31, - "column": 24 + "line": 36, + "column": 23 }, "end": { - "line": 31, - "column": 37 + "line": 45, + "column": 5 } }, - "extra": { - "rawValue": "backed.json", - "raw": "'backed.json'" - }, - "value": "backed.json" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @return {object} value of 'backed.json'\n ", - "start": 639, - "end": 693, - "loc": { - "start": { - "line": 27, - "column": 2 - }, - "end": { - "line": 29, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @return {string} name from 'package.json'\n ", - "start": 760, - "end": 816, - "loc": { - "start": { - "line": 34, - "column": 2 - }, - "end": { - "line": 36, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 819, - "end": 919, - "loc": { - "start": { - "line": 37, - "column": 2 - }, - "end": { - "line": 39, - "column": 3 - } - }, - "computed": false, - "key": { - "type": "Identifier", - "start": 819, - "end": 836, - "loc": { - "start": { - "line": 37, - "column": 2 - }, - "end": { - "line": 37, - "column": 19 - }, - "identifierName": "importPackageName" - }, - "name": "importPackageName", - "leadingComments": null - }, - "static": false, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 839, - "end": 919, - "loc": { - "start": { - "line": 37, - "column": 22 - }, - "end": { - "line": 39, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 845, - "end": 915, - "loc": { - "start": { - "line": 38, - "column": 4 - }, - "end": { - "line": 38, - "column": 74 - } - }, - "argument": { - "type": "MemberExpression", - "start": 852, - "end": 914, - "loc": { - "start": { - "line": 38, - "column": 11 - }, - "end": { - "line": 38, - "column": 73 - } - }, - "object": { - "type": "CallExpression", - "start": 852, - "end": 909, - "loc": { - "start": { - "line": 38, - "column": 11 - }, - "end": { - "line": 38, - "column": 68 - } - }, - "callee": { - "type": "MemberExpression", - "start": 852, - "end": 862, - "loc": { - "start": { - "line": 38, - "column": 11 - }, - "end": { - "line": 38, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 852, - "end": 856, - "loc": { - "start": { - "line": 38, - "column": 11 - }, - "end": { - "line": 38, - "column": 15 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 857, - "end": 862, - "loc": { - "start": { - "line": 38, - "column": 16 - }, - "end": { - "line": 38, - "column": 21 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 863, - "end": 908, - "loc": { - "start": { - "line": 38, - "column": 22 + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 876, + "end": 883, + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 31 + }, + "identifierName": "resolve" }, - "end": { - "line": 38, - "column": 67 - } + "name": "resolve" }, - "callee": { + { "type": "Identifier", - "start": 863, - "end": 875, + "start": 885, + "end": 891, "loc": { "start": { - "line": 38, - "column": 22 + "line": 36, + "column": 33 }, "end": { - "line": 38, - "column": 34 + "line": 36, + "column": 39 }, - "identifierName": "readFileSync" + "identifierName": "reject" + }, + "name": "reject" + } + ], + "body": { + "type": "BlockStatement", + "start": 896, + "end": 1145, + "loc": { + "start": { + "line": 36, + "column": 44 }, - "name": "readFileSync" + "end": { + "line": 45, + "column": 5 + } }, - "arguments": [ + "body": [ { - "type": "TemplateLiteral", - "start": 876, - "end": 907, + "type": "ExpressionStatement", + "start": 904, + "end": 1139, "loc": { "start": { - "line": 38, - "column": 35 + "line": 37, + "column": 6 }, "end": { - "line": 38, - "column": 66 + "line": 44, + "column": 9 } }, - "expressions": [ - { - "type": "CallExpression", - "start": 879, - "end": 892, + "expression": { + "type": "CallExpression", + "start": 904, + "end": 1138, + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 44, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 904, + "end": 988, "loc": { "start": { - "line": 38, - "column": 38 + "line": 37, + "column": 6 }, "end": { - "line": 38, - "column": 51 + "line": 39, + "column": 14 } }, - "callee": { - "type": "MemberExpression", - "start": 879, - "end": 890, + "object": { + "type": "CallExpression", + "start": 904, + "end": 982, "loc": { "start": { - "line": 38, - "column": 38 + "line": 37, + "column": 6 }, "end": { - "line": 38, - "column": 49 + "line": 39, + "column": 8 } }, - "object": { - "type": "Identifier", - "start": 879, - "end": 886, + "callee": { + "type": "MemberExpression", + "start": 904, + "end": 936, "loc": { "start": { - "line": 38, - "column": 38 + "line": 37, + "column": 6 }, "end": { - "line": 38, - "column": 45 - }, - "identifierName": "process" + "line": 37, + "column": 38 + } }, - "name": "process" - }, - "property": { - "type": "Identifier", - "start": 887, - "end": 890, - "loc": { - "start": { - "line": 38, - "column": 46 + "object": { + "type": "CallExpression", + "start": 904, + "end": 931, + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 37, + "column": 33 + } }, - "end": { - "line": 38, - "column": 49 + "callee": { + "type": "MemberExpression", + "start": 904, + "end": 916, + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 37, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 904, + "end": 908, + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 37, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 909, + "end": 916, + "loc": { + "start": { + "line": 37, + "column": 11 + }, + "end": { + "line": 37, + "column": 18 + }, + "identifierName": "require" + }, + "name": "require" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 917, + "end": 930, + "loc": { + "start": { + "line": 37, + "column": 19 + }, + "end": { + "line": 37, + "column": 32 + } + }, + "extra": { + "rawValue": "backed.json", + "raw": "'backed.json'" + }, + "value": "backed.json" + } + ] + }, + "property": { + "type": "Identifier", + "start": 932, + "end": 936, + "loc": { + "start": { + "line": 37, + "column": 34 + }, + "end": { + "line": 37, + "column": 38 + }, + "identifierName": "then" }, - "identifierName": "cwd" + "name": "then" }, - "name": "cwd" + "computed": false }, - "computed": false + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 937, + "end": 981, + "loc": { + "start": { + "line": 37, + "column": 39 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 937, + "end": 943, + "loc": { + "start": { + "line": 37, + "column": 39 + }, + "end": { + "line": 37, + "column": 45 + }, + "identifierName": "config" + }, + "name": "config" + } + ], + "body": { + "type": "BlockStatement", + "start": 947, + "end": 981, + "loc": { + "start": { + "line": 37, + "column": 49 + }, + "end": { + "line": 39, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 957, + "end": 973, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 24 + } + }, + "expression": { + "type": "CallExpression", + "start": 957, + "end": 972, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 23 + } + }, + "callee": { + "type": "Identifier", + "start": 957, + "end": 964, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 15 + }, + "identifierName": "resolve" + }, + "name": "resolve" + }, + "arguments": [ + { + "type": "Identifier", + "start": 965, + "end": 971, + "loc": { + "start": { + "line": 38, + "column": 16 + }, + "end": { + "line": 38, + "column": 22 + }, + "identifierName": "config" + }, + "name": "config" + } + ] + } + } + ], + "directives": [] + } + } + ] }, - "arguments": [] - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 877, - "end": 877, - "loc": { - "start": { - "line": 38, - "column": 36 + "property": { + "type": "Identifier", + "start": 983, + "end": 988, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 14 + }, + "identifierName": "catch" }, - "end": { - "line": 38, - "column": 36 - } - }, - "value": { - "raw": "", - "cooked": "" + "name": "catch" }, - "tail": false + "computed": false }, - { - "type": "TemplateElement", - "start": 893, - "end": 906, - "loc": { - "start": { - "line": 38, - "column": 52 + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 989, + "end": 1137, + "loc": { + "start": { + "line": 39, + "column": 15 + }, + "end": { + "line": 44, + "column": 7 + } }, - "end": { - "line": 38, - "column": 65 + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 995, + "end": 1137, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 44, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1005, + "end": 1068, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 71 + } + }, + "expression": { + "type": "CallExpression", + "start": 1005, + "end": 1067, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 70 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1005, + "end": 1016, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 1005, + "end": 1011, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 14 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "property": { + "type": "Identifier", + "start": 1012, + "end": 1016, + "loc": { + "start": { + "line": 40, + "column": 15 + }, + "end": { + "line": 40, + "column": 19 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1017, + "end": 1066, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 69 + } + }, + "extra": { + "rawValue": "backed.json:: not found, using default options.", + "raw": "'backed.json:: not found, using default options.'" + }, + "value": "backed.json:: not found, using default options." + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1077, + "end": 1129, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 43, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 1077, + "end": 1128, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 43, + "column": 10 + } + }, + "callee": { + "type": "Identifier", + "start": 1077, + "end": 1084, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 15 + }, + "identifierName": "resolve" + }, + "name": "resolve" + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1085, + "end": 1127, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 43, + "column": 9 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 1097, + "end": 1117, + "loc": { + "start": { + "line": 42, + "column": 10 + }, + "end": { + "line": 42, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1097, + "end": 1101, + "loc": { + "start": { + "line": 42, + "column": 10 + }, + "end": { + "line": 42, + "column": 14 + }, + "identifierName": "name" + }, + "name": "name" + }, + "value": { + "type": "StringLiteral", + "start": 1103, + "end": 1117, + "loc": { + "start": { + "line": 42, + "column": 16 + }, + "end": { + "line": 42, + "column": 30 + } + }, + "extra": { + "rawValue": "your-element", + "raw": "'your-element'" + }, + "value": "your-element" + } + } + ] + } + ] + } + } + ], + "directives": [] } - }, - "value": { - "raw": "/package.json", - "cooked": "/package.json" - }, - "tail": true - } - ] + } + ] + } } - ] + ], + "directives": [] } - ] - }, - "property": { - "type": "Identifier", - "start": 910, - "end": 914, - "loc": { - "start": { - "line": 38, - "column": 69 - }, - "end": { - "line": 38, - "column": 73 - }, - "identifierName": "name" - }, - "name": "name" - }, - "computed": false + } + ] } } ], @@ -1883,16 +2448,16 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\n * @return {string} name from 'package.json'\n ", - "start": 760, - "end": 816, + "value": "*\n * @return {object} value of 'backed.json'\n ", + "start": 778, + "end": 832, "loc": { "start": { - "line": 34, + "line": 32, "column": 2 }, "end": { - "line": 36, + "line": 34, "column": 5 } } @@ -1902,15 +2467,15 @@ { "type": "CommentBlock", "value": "*\n * @return {string} name from 'package.json'\n ", - "start": 923, - "end": 979, + "start": 1154, + "end": 1210, "loc": { "start": { - "line": 41, + "line": 48, "column": 2 }, "end": { - "line": 43, + "line": 50, "column": 5 } } @@ -1919,35 +2484,35 @@ }, { "type": "ClassMethod", - "start": 982, - "end": 1078, + "start": 1213, + "end": 1409, "loc": { "start": { - "line": 44, + "line": 51, "column": 2 }, "end": { - "line": 46, + "line": 58, "column": 3 } }, "computed": false, "key": { "type": "Identifier", - "start": 982, - "end": 997, + "start": 1213, + "end": 1230, "loc": { "start": { - "line": 44, + "line": 51, "column": 2 }, "end": { - "line": 44, - "column": 17 + "line": 51, + "column": 19 }, - "identifierName": "importBowerName" + "identifierName": "importPackageName" }, - "name": "importBowerName", + "name": "importPackageName", "leadingComments": null }, "static": false, @@ -1959,291 +2524,508 @@ "params": [], "body": { "type": "BlockStatement", - "start": 1000, - "end": 1078, + "start": 1233, + "end": 1409, "loc": { "start": { - "line": 44, - "column": 20 + "line": 51, + "column": 22 }, "end": { - "line": 46, + "line": 58, "column": 3 } }, "body": [ { - "type": "ReturnStatement", - "start": 1006, - "end": 1074, + "type": "TryStatement", + "start": 1239, + "end": 1388, "loc": { "start": { - "line": 45, + "line": 52, "column": 4 }, "end": { - "line": 45, - "column": 72 + "line": 56, + "column": 5 } }, - "argument": { - "type": "MemberExpression", - "start": 1013, - "end": 1073, + "block": { + "type": "BlockStatement", + "start": 1243, + "end": 1327, "loc": { "start": { - "line": 45, - "column": 11 + "line": 52, + "column": 8 }, "end": { - "line": 45, - "column": 71 + "line": 54, + "column": 5 } }, - "object": { - "type": "CallExpression", - "start": 1013, - "end": 1068, - "loc": { - "start": { - "line": 45, - "column": 11 - }, - "end": { - "line": 45, - "column": 66 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1013, - "end": 1023, + "body": [ + { + "type": "ReturnStatement", + "start": 1251, + "end": 1321, "loc": { "start": { - "line": 45, - "column": 11 + "line": 53, + "column": 6 }, "end": { - "line": 45, - "column": 21 + "line": 53, + "column": 76 } }, - "object": { - "type": "Identifier", - "start": 1013, - "end": 1017, + "argument": { + "type": "MemberExpression", + "start": 1258, + "end": 1320, "loc": { "start": { - "line": 45, - "column": 11 + "line": 53, + "column": 13 }, "end": { - "line": 45, - "column": 15 - }, - "identifierName": "JSON" - }, - "name": "JSON" - }, - "property": { - "type": "Identifier", - "start": 1018, - "end": 1023, - "loc": { - "start": { - "line": 45, - "column": 16 - }, - "end": { - "line": 45, - "column": 21 - }, - "identifierName": "parse" - }, - "name": "parse" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1024, - "end": 1067, - "loc": { - "start": { - "line": 45, - "column": 22 - }, - "end": { - "line": 45, - "column": 65 + "line": 53, + "column": 75 } }, - "callee": { - "type": "Identifier", - "start": 1024, - "end": 1036, + "object": { + "type": "CallExpression", + "start": 1258, + "end": 1315, "loc": { "start": { - "line": 45, - "column": 22 + "line": 53, + "column": 13 }, "end": { - "line": 45, - "column": 34 - }, - "identifierName": "readFileSync" + "line": 53, + "column": 70 + } }, - "name": "readFileSync" - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 1037, - "end": 1066, + "callee": { + "type": "MemberExpression", + "start": 1258, + "end": 1268, "loc": { "start": { - "line": 45, - "column": 35 + "line": 53, + "column": 13 }, "end": { - "line": 45, - "column": 64 + "line": 53, + "column": 23 } }, - "expressions": [ - { - "type": "CallExpression", - "start": 1040, - "end": 1053, + "object": { + "type": "Identifier", + "start": 1258, + "end": 1262, + "loc": { + "start": { + "line": 53, + "column": 13 + }, + "end": { + "line": 53, + "column": 17 + }, + "identifierName": "JSON" + }, + "name": "JSON" + }, + "property": { + "type": "Identifier", + "start": 1263, + "end": 1268, + "loc": { + "start": { + "line": 53, + "column": 18 + }, + "end": { + "line": 53, + "column": 23 + }, + "identifierName": "parse" + }, + "name": "parse" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1269, + "end": 1314, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 53, + "column": 69 + } + }, + "callee": { + "type": "Identifier", + "start": 1269, + "end": 1281, "loc": { "start": { - "line": 45, - "column": 38 + "line": 53, + "column": 24 }, "end": { - "line": 45, - "column": 51 - } + "line": 53, + "column": 36 + }, + "identifierName": "readFileSync" }, - "callee": { - "type": "MemberExpression", - "start": 1040, - "end": 1051, + "name": "readFileSync" + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 1282, + "end": 1313, "loc": { "start": { - "line": 45, - "column": 38 + "line": 53, + "column": 37 }, "end": { - "line": 45, - "column": 49 + "line": 53, + "column": 68 } }, - "object": { - "type": "Identifier", - "start": 1040, - "end": 1047, - "loc": { - "start": { - "line": 45, - "column": 38 + "expressions": [ + { + "type": "CallExpression", + "start": 1285, + "end": 1298, + "loc": { + "start": { + "line": 53, + "column": 40 + }, + "end": { + "line": 53, + "column": 53 + } }, - "end": { - "line": 45, - "column": 45 + "callee": { + "type": "MemberExpression", + "start": 1285, + "end": 1296, + "loc": { + "start": { + "line": 53, + "column": 40 + }, + "end": { + "line": 53, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 1285, + "end": 1292, + "loc": { + "start": { + "line": 53, + "column": 40 + }, + "end": { + "line": 53, + "column": 47 + }, + "identifierName": "process" + }, + "name": "process" + }, + "property": { + "type": "Identifier", + "start": 1293, + "end": 1296, + "loc": { + "start": { + "line": 53, + "column": 48 + }, + "end": { + "line": 53, + "column": 51 + }, + "identifierName": "cwd" + }, + "name": "cwd" + }, + "computed": false }, - "identifierName": "process" - }, - "name": "process" - }, - "property": { - "type": "Identifier", - "start": 1048, - "end": 1051, - "loc": { - "start": { - "line": 45, - "column": 46 + "arguments": [] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1283, + "end": 1283, + "loc": { + "start": { + "line": 53, + "column": 38 + }, + "end": { + "line": 53, + "column": 38 + } }, - "end": { - "line": 45, - "column": 49 + "value": { + "raw": "", + "cooked": "" }, - "identifierName": "cwd" + "tail": false }, - "name": "cwd" - }, - "computed": false - }, - "arguments": [] - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 1038, - "end": 1038, - "loc": { - "start": { - "line": 45, - "column": 36 - }, - "end": { - "line": 45, - "column": 36 - } - }, - "value": { - "raw": "", - "cooked": "" - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 1054, - "end": 1065, - "loc": { - "start": { - "line": 45, - "column": 52 - }, - "end": { - "line": 45, - "column": 63 - } - }, - "value": { - "raw": "/bower.json", - "cooked": "/bower.json" - }, - "tail": true - } - ] - } - ] + { + "type": "TemplateElement", + "start": 1299, + "end": 1312, + "loc": { + "start": { + "line": 53, + "column": 54 + }, + "end": { + "line": 53, + "column": 67 + } + }, + "value": { + "raw": "/package.json", + "cooked": "/package.json" + }, + "tail": true + } + ] + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 1316, + "end": 1320, + "loc": { + "start": { + "line": 53, + "column": 71 + }, + "end": { + "line": 53, + "column": 75 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false } - ] + } + ], + "directives": [] + }, + "handler": { + "type": "CatchClause", + "start": 1328, + "end": 1388, + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 56, + "column": 5 + } }, - "property": { + "param": { "type": "Identifier", - "start": 1069, - "end": 1073, + "start": 1334, + "end": 1335, "loc": { "start": { - "line": 45, - "column": 67 + "line": 54, + "column": 12 }, "end": { - "line": 45, - "column": 71 + "line": 54, + "column": 13 + }, + "identifierName": "e" + }, + "name": "e" + }, + "body": { + "type": "BlockStatement", + "start": 1337, + "end": 1388, + "loc": { + "start": { + "line": 54, + "column": 15 }, - "identifierName": "name" + "end": { + "line": 56, + "column": 5 + } }, - "name": "name" + "body": [ + { + "type": "ExpressionStatement", + "start": 1345, + "end": 1382, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 1345, + "end": 1381, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1345, + "end": 1356, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 1345, + "end": 1351, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 12 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "property": { + "type": "Identifier", + "start": 1352, + "end": 1356, + "loc": { + "start": { + "line": 55, + "column": 13 + }, + "end": { + "line": 55, + "column": 17 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1357, + "end": 1380, + "loc": { + "start": { + "line": 55, + "column": 18 + }, + "end": { + "line": 55, + "column": 41 + } + }, + "extra": { + "rawValue": "no package.json found", + "raw": "'no package.json found'" + }, + "value": "no package.json found" + } + ] + } + } + ], + "directives": [] + } + }, + "guardedHandlers": [], + "finalizer": null + }, + { + "type": "ReturnStatement", + "start": 1393, + "end": 1405, + "loc": { + "start": { + "line": 57, + "column": 4 }, - "computed": false + "end": { + "line": 57, + "column": 16 + } + }, + "argument": { + "type": "NullLiteral", + "start": 1400, + "end": 1404, + "loc": { + "start": { + "line": 57, + "column": 11 + }, + "end": { + "line": 57, + "column": 15 + } + } } } ], @@ -2254,15 +3036,15 @@ { "type": "CommentBlock", "value": "*\n * @return {string} name from 'package.json'\n ", - "start": 923, - "end": 979, + "start": 1154, + "end": 1210, "loc": { "start": { - "line": 41, + "line": 48, "column": 2 }, "end": { - "line": 43, + "line": 50, "column": 5 } } @@ -2271,16 +3053,16 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\n * @param {object} config - the config to be updated\n * @param {string} name - the name of the element, component, etc\n ", - "start": 1082, - "end": 1214, + "value": "*\n * @return {string} name from 'bower.json'\n ", + "start": 1413, + "end": 1467, "loc": { "start": { - "line": 48, + "line": 60, "column": 2 }, "end": { - "line": 51, + "line": 62, "column": 5 } } @@ -2289,35 +3071,35 @@ }, { "type": "ClassMethod", - "start": 1217, - "end": 1737, + "start": 1470, + "end": 1660, "loc": { "start": { - "line": 52, + "line": 63, "column": 2 }, "end": { - "line": 63, + "line": 70, "column": 3 } }, "computed": false, "key": { "type": "Identifier", - "start": 1217, - "end": 1229, + "start": 1470, + "end": 1485, "loc": { "start": { - "line": 52, + "line": 63, "column": 2 }, "end": { - "line": 52, - "column": 14 + "line": 63, + "column": 17 }, - "identifierName": "updateConfig" + "identifierName": "importBowerName" }, - "name": "updateConfig", + "name": "importBowerName", "leadingComments": null }, "static": false, @@ -2326,275 +3108,698 @@ "generator": false, "expression": false, "async": false, - "params": [ - { - "type": "Identifier", - "start": 1230, - "end": 1236, - "loc": { - "start": { - "line": 52, - "column": 15 - }, - "end": { - "line": 52, - "column": 21 - }, - "identifierName": "config" - }, - "name": "config" - }, - { - "type": "Identifier", - "start": 1238, - "end": 1242, - "loc": { - "start": { - "line": 52, - "column": 23 - }, - "end": { - "line": 52, - "column": 27 - }, - "identifierName": "name" - }, - "name": "name" - } - ], + "params": [], "body": { "type": "BlockStatement", - "start": 1244, - "end": 1737, + "start": 1488, + "end": 1660, "loc": { "start": { - "line": 52, - "column": 29 + "line": 63, + "column": 20 }, "end": { - "line": 63, + "line": 70, "column": 3 } }, "body": [ { - "type": "ExpressionStatement", - "start": 1250, - "end": 1284, + "type": "TryStatement", + "start": 1494, + "end": 1639, "loc": { "start": { - "line": 53, + "line": 64, "column": 4 }, "end": { - "line": 53, - "column": 38 + "line": 68, + "column": 5 } }, - "expression": { - "type": "AssignmentExpression", - "start": 1250, - "end": 1283, + "block": { + "type": "BlockStatement", + "start": 1498, + "end": 1580, "loc": { "start": { - "line": 53, - "column": 4 + "line": 64, + "column": 8 }, "end": { - "line": 53, - "column": 37 + "line": 66, + "column": 5 } }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1250, - "end": 1261, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 1250, - "end": 1256, - "loc": { - "start": { - "line": 53, - "column": 4 - }, - "end": { - "line": 53, - "column": 10 - }, - "identifierName": "config" - }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1257, - "end": 1261, - "loc": { - "start": { - "line": 53, - "column": 11 - }, - "end": { - "line": 53, - "column": 15 - }, - "identifierName": "name" - }, - "name": "name" - }, - "computed": false - }, - "right": { - "type": "LogicalExpression", - "start": 1264, - "end": 1283, - "loc": { - "start": { - "line": 53, - "column": 18 - }, - "end": { - "line": 53, - "column": 37 - } - }, - "left": { - "type": "MemberExpression", - "start": 1264, - "end": 1275, + "body": [ + { + "type": "ReturnStatement", + "start": 1506, + "end": 1574, "loc": { "start": { - "line": 53, - "column": 18 + "line": 65, + "column": 6 }, "end": { - "line": 53, - "column": 29 + "line": 65, + "column": 74 } }, - "object": { - "type": "Identifier", - "start": 1264, - "end": 1270, + "argument": { + "type": "MemberExpression", + "start": 1513, + "end": 1573, "loc": { "start": { - "line": 53, - "column": 18 + "line": 65, + "column": 13 }, "end": { - "line": 53, - "column": 24 - }, - "identifierName": "config" + "line": 65, + "column": 73 + } }, - "name": "config" - }, - "property": { - "type": "Identifier", - "start": 1271, - "end": 1275, - "loc": { - "start": { - "line": 53, - "column": 25 + "object": { + "type": "CallExpression", + "start": 1513, + "end": 1568, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 68 + } }, - "end": { - "line": 53, - "column": 29 + "callee": { + "type": "MemberExpression", + "start": 1513, + "end": 1523, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 1513, + "end": 1517, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 17 + }, + "identifierName": "JSON" + }, + "name": "JSON" + }, + "property": { + "type": "Identifier", + "start": 1518, + "end": 1523, + "loc": { + "start": { + "line": 65, + "column": 18 + }, + "end": { + "line": 65, + "column": 23 + }, + "identifierName": "parse" + }, + "name": "parse" + }, + "computed": false }, - "identifierName": "name" - }, - "name": "name" - }, - "computed": false - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 1279, - "end": 1283, - "loc": { - "start": { - "line": 53, - "column": 33 + "arguments": [ + { + "type": "CallExpression", + "start": 1524, + "end": 1567, + "loc": { + "start": { + "line": 65, + "column": 24 + }, + "end": { + "line": 65, + "column": 67 + } + }, + "callee": { + "type": "Identifier", + "start": 1524, + "end": 1536, + "loc": { + "start": { + "line": 65, + "column": 24 + }, + "end": { + "line": 65, + "column": 36 + }, + "identifierName": "readFileSync" + }, + "name": "readFileSync" + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 1537, + "end": 1566, + "loc": { + "start": { + "line": 65, + "column": 37 + }, + "end": { + "line": 65, + "column": 66 + } + }, + "expressions": [ + { + "type": "CallExpression", + "start": 1540, + "end": 1553, + "loc": { + "start": { + "line": 65, + "column": 40 + }, + "end": { + "line": 65, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1540, + "end": 1551, + "loc": { + "start": { + "line": 65, + "column": 40 + }, + "end": { + "line": 65, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 1540, + "end": 1547, + "loc": { + "start": { + "line": 65, + "column": 40 + }, + "end": { + "line": 65, + "column": 47 + }, + "identifierName": "process" + }, + "name": "process" + }, + "property": { + "type": "Identifier", + "start": 1548, + "end": 1551, + "loc": { + "start": { + "line": 65, + "column": 48 + }, + "end": { + "line": 65, + "column": 51 + }, + "identifierName": "cwd" + }, + "name": "cwd" + }, + "computed": false + }, + "arguments": [] + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1538, + "end": 1538, + "loc": { + "start": { + "line": 65, + "column": 38 + }, + "end": { + "line": 65, + "column": 38 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1554, + "end": 1565, + "loc": { + "start": { + "line": 65, + "column": 54 + }, + "end": { + "line": 65, + "column": 65 + } + }, + "value": { + "raw": "/bower.json", + "cooked": "/bower.json" + }, + "tail": true + } + ] + } + ] + } + ] }, - "end": { - "line": 53, - "column": 37 + "property": { + "type": "Identifier", + "start": 1569, + "end": 1573, + "loc": { + "start": { + "line": 65, + "column": 69 + }, + "end": { + "line": 65, + "column": 73 + }, + "identifierName": "name" + }, + "name": "name" }, - "identifierName": "name" - }, - "name": "name" + "computed": false + } } - } - } - }, - { - "type": "ExpressionStatement", - "start": 1289, - "end": 1327, - "loc": { - "start": { - "line": 54, - "column": 4 - }, - "end": { - "line": 54, - "column": 42 - } + ], + "directives": [] }, - "expression": { - "type": "AssignmentExpression", - "start": 1289, - "end": 1326, + "handler": { + "type": "CatchClause", + "start": 1581, + "end": 1639, "loc": { "start": { - "line": 54, - "column": 4 + "line": 66, + "column": 6 }, "end": { - "line": 54, - "column": 41 + "line": 68, + "column": 5 } }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1289, - "end": 1302, + "param": { + "type": "Identifier", + "start": 1587, + "end": 1588, "loc": { "start": { - "line": 54, + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 13 + }, + "identifierName": "e" + }, + "name": "e" + }, + "body": { + "type": "BlockStatement", + "start": 1590, + "end": 1639, + "loc": { + "start": { + "line": 66, + "column": 15 + }, + "end": { + "line": 68, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1598, + "end": 1633, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 41 + } + }, + "expression": { + "type": "CallExpression", + "start": 1598, + "end": 1632, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 40 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1598, + "end": 1609, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 1598, + "end": 1604, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 12 + }, + "identifierName": "logger" + }, + "name": "logger" + }, + "property": { + "type": "Identifier", + "start": 1605, + "end": 1609, + "loc": { + "start": { + "line": 67, + "column": 13 + }, + "end": { + "line": 67, + "column": 17 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1610, + "end": 1631, + "loc": { + "start": { + "line": 67, + "column": 18 + }, + "end": { + "line": 67, + "column": 39 + } + }, + "extra": { + "rawValue": "no bower.json found", + "raw": "'no bower.json found'" + }, + "value": "no bower.json found" + } + ] + } + } + ], + "directives": [] + } + }, + "guardedHandlers": [], + "finalizer": null + }, + { + "type": "ReturnStatement", + "start": 1644, + "end": 1656, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 16 + } + }, + "argument": { + "type": "NullLiteral", + "start": 1651, + "end": 1655, + "loc": { + "start": { + "line": 69, + "column": 11 + }, + "end": { + "line": 69, + "column": 15 + } + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @return {string} name from 'bower.json'\n ", + "start": 1413, + "end": 1467, + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @param {object} config - the config to be updated\n * @param {string} name - the name of the element, component, etc\n ", + "start": 1664, + "end": 1796, + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 75, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1799, + "end": 2319, + "loc": { + "start": { + "line": 76, + "column": 2 + }, + "end": { + "line": 87, + "column": 3 + } + }, + "computed": false, + "key": { + "type": "Identifier", + "start": 1799, + "end": 1811, + "loc": { + "start": { + "line": 76, + "column": 2 + }, + "end": { + "line": 76, + "column": 14 + }, + "identifierName": "updateConfig" + }, + "name": "updateConfig", + "leadingComments": null + }, + "static": false, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1812, + "end": 1818, + "loc": { + "start": { + "line": 76, + "column": 15 + }, + "end": { + "line": 76, + "column": 21 + }, + "identifierName": "config" + }, + "name": "config" + }, + { + "type": "Identifier", + "start": 1820, + "end": 1824, + "loc": { + "start": { + "line": 76, + "column": 23 + }, + "end": { + "line": 76, + "column": 27 + }, + "identifierName": "name" + }, + "name": "name" + } + ], + "body": { + "type": "BlockStatement", + "start": 1826, + "end": 2319, + "loc": { + "start": { + "line": 76, + "column": 29 + }, + "end": { + "line": 87, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1832, + "end": 1866, + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 38 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1832, + "end": 1865, + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1832, + "end": 1843, + "loc": { + "start": { + "line": 77, "column": 4 }, "end": { - "line": 54, - "column": 17 + "line": 77, + "column": 15 } }, "object": { "type": "Identifier", - "start": 1289, - "end": 1295, + "start": 1832, + "end": 1838, "loc": { "start": { - "line": 54, + "line": 77, "column": 4 }, "end": { - "line": 54, + "line": 77, "column": 10 }, "identifierName": "config" @@ -2603,63 +3808,63 @@ }, "property": { "type": "Identifier", - "start": 1296, - "end": 1302, + "start": 1839, + "end": 1843, "loc": { "start": { - "line": 54, + "line": 77, "column": 11 }, "end": { - "line": 54, - "column": 17 + "line": 77, + "column": 15 }, - "identifierName": "format" + "identifierName": "name" }, - "name": "format" + "name": "name" }, "computed": false }, "right": { "type": "LogicalExpression", - "start": 1305, - "end": 1326, + "start": 1846, + "end": 1865, "loc": { "start": { - "line": 54, - "column": 20 + "line": 77, + "column": 18 }, "end": { - "line": 54, - "column": 41 + "line": 77, + "column": 37 } }, "left": { "type": "MemberExpression", - "start": 1305, - "end": 1318, + "start": 1846, + "end": 1857, "loc": { "start": { - "line": 54, - "column": 20 + "line": 77, + "column": 18 }, "end": { - "line": 54, - "column": 33 + "line": 77, + "column": 29 } }, "object": { "type": "Identifier", - "start": 1305, - "end": 1311, + "start": 1846, + "end": 1852, "loc": { "start": { - "line": 54, - "column": 20 + "line": 77, + "column": 18 }, "end": { - "line": 54, - "column": 26 + "line": 77, + "column": 24 }, "identifierName": "config" }, @@ -2667,15 +3872,179 @@ }, "property": { "type": "Identifier", - "start": 1312, - "end": 1318, + "start": 1853, + "end": 1857, "loc": { "start": { - "line": 54, - "column": 27 + "line": 77, + "column": 25 }, "end": { - "line": 54, + "line": 77, + "column": 29 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "Identifier", + "start": 1861, + "end": 1865, + "loc": { + "start": { + "line": 77, + "column": 33 + }, + "end": { + "line": 77, + "column": 37 + }, + "identifierName": "name" + }, + "name": "name" + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 1871, + "end": 1909, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 42 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1871, + "end": 1908, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 41 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1871, + "end": 1884, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 1871, + "end": 1877, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 10 + }, + "identifierName": "config" + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1878, + "end": 1884, + "loc": { + "start": { + "line": 78, + "column": 11 + }, + "end": { + "line": 78, + "column": 17 + }, + "identifierName": "format" + }, + "name": "format" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 1887, + "end": 1908, + "loc": { + "start": { + "line": 78, + "column": 20 + }, + "end": { + "line": 78, + "column": 41 + } + }, + "left": { + "type": "MemberExpression", + "start": 1887, + "end": 1900, + "loc": { + "start": { + "line": 78, + "column": 20 + }, + "end": { + "line": 78, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 1887, + "end": 1893, + "loc": { + "start": { + "line": 78, + "column": 20 + }, + "end": { + "line": 78, + "column": 26 + }, + "identifierName": "config" + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1894, + "end": 1900, + "loc": { + "start": { + "line": 78, + "column": 27 + }, + "end": { + "line": 78, "column": 33 }, "identifierName": "format" @@ -2687,15 +4056,15 @@ "operator": "||", "right": { "type": "StringLiteral", - "start": 1322, - "end": 1326, + "start": 1904, + "end": 1908, "loc": { "start": { - "line": 54, + "line": 78, "column": 37 }, "end": { - "line": 54, + "line": 78, "column": 41 } }, @@ -2710,58 +4079,58 @@ }, { "type": "ExpressionStatement", - "start": 1332, - "end": 1376, + "start": 1914, + "end": 1958, "loc": { "start": { - "line": 55, + "line": 79, "column": 4 }, "end": { - "line": 55, + "line": 79, "column": 48 } }, "expression": { "type": "AssignmentExpression", - "start": 1332, - "end": 1375, + "start": 1914, + "end": 1957, "loc": { "start": { - "line": 55, + "line": 79, "column": 4 }, "end": { - "line": 55, + "line": 79, "column": 47 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 1332, - "end": 1348, + "start": 1914, + "end": 1930, "loc": { "start": { - "line": 55, + "line": 79, "column": 4 }, "end": { - "line": 55, + "line": 79, "column": 20 } }, "object": { "type": "Identifier", - "start": 1332, - "end": 1338, + "start": 1914, + "end": 1920, "loc": { "start": { - "line": 55, + "line": 79, "column": 4 }, "end": { - "line": 55, + "line": 79, "column": 10 }, "identifierName": "config" @@ -2770,15 +4139,15 @@ }, "property": { "type": "Identifier", - "start": 1339, - "end": 1348, + "start": 1921, + "end": 1930, "loc": { "start": { - "line": 55, + "line": 79, "column": 11 }, "end": { - "line": 55, + "line": 79, "column": 20 }, "identifierName": "sourceMap" @@ -2789,43 +4158,43 @@ }, "right": { "type": "LogicalExpression", - "start": 1351, - "end": 1375, + "start": 1933, + "end": 1957, "loc": { "start": { - "line": 55, + "line": 79, "column": 23 }, "end": { - "line": 55, + "line": 79, "column": 47 } }, "left": { "type": "MemberExpression", - "start": 1351, - "end": 1367, + "start": 1933, + "end": 1949, "loc": { "start": { - "line": 55, + "line": 79, "column": 23 }, "end": { - "line": 55, + "line": 79, "column": 39 } }, "object": { "type": "Identifier", - "start": 1351, - "end": 1357, + "start": 1933, + "end": 1939, "loc": { "start": { - "line": 55, + "line": 79, "column": 23 }, "end": { - "line": 55, + "line": 79, "column": 29 }, "identifierName": "config" @@ -2834,15 +4203,15 @@ }, "property": { "type": "Identifier", - "start": 1358, - "end": 1367, + "start": 1940, + "end": 1949, "loc": { "start": { - "line": 55, + "line": 79, "column": 30 }, "end": { - "line": 55, + "line": 79, "column": 39 }, "identifierName": "sourceMap" @@ -2854,15 +4223,15 @@ "operator": "||", "right": { "type": "BooleanLiteral", - "start": 1371, - "end": 1375, + "start": 1953, + "end": 1957, "loc": { "start": { - "line": 55, + "line": 79, "column": 43 }, "end": { - "line": 55, + "line": 79, "column": 47 } }, @@ -2873,58 +4242,58 @@ }, { "type": "ExpressionStatement", - "start": 1381, - "end": 1417, + "start": 1963, + "end": 1999, "loc": { "start": { - "line": 56, + "line": 80, "column": 4 }, "end": { - "line": 56, + "line": 80, "column": 40 } }, "expression": { "type": "AssignmentExpression", - "start": 1381, - "end": 1416, + "start": 1963, + "end": 1998, "loc": { "start": { - "line": 56, + "line": 80, "column": 4 }, "end": { - "line": 56, + "line": 80, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 1381, - "end": 1394, + "start": 1963, + "end": 1976, "loc": { "start": { - "line": 56, + "line": 80, "column": 4 }, "end": { - "line": 56, + "line": 80, "column": 17 } }, "object": { "type": "Identifier", - "start": 1381, - "end": 1387, + "start": 1963, + "end": 1969, "loc": { "start": { - "line": 56, + "line": 80, "column": 4 }, "end": { - "line": 56, + "line": 80, "column": 10 }, "identifierName": "config" @@ -2933,15 +4302,15 @@ }, "property": { "type": "Identifier", - "start": 1388, - "end": 1394, + "start": 1970, + "end": 1976, "loc": { "start": { - "line": 56, + "line": 80, "column": 11 }, "end": { - "line": 56, + "line": 80, "column": 17 }, "identifierName": "server" @@ -2952,43 +4321,43 @@ }, "right": { "type": "LogicalExpression", - "start": 1397, - "end": 1416, + "start": 1979, + "end": 1998, "loc": { "start": { - "line": 56, + "line": 80, "column": 20 }, "end": { - "line": 56, + "line": 80, "column": 39 } }, "left": { "type": "MemberExpression", - "start": 1397, - "end": 1410, + "start": 1979, + "end": 1992, "loc": { "start": { - "line": 56, + "line": 80, "column": 20 }, "end": { - "line": 56, + "line": 80, "column": 33 } }, "object": { "type": "Identifier", - "start": 1397, - "end": 1403, + "start": 1979, + "end": 1985, "loc": { "start": { - "line": 56, + "line": 80, "column": 20 }, "end": { - "line": 56, + "line": 80, "column": 26 }, "identifierName": "config" @@ -2997,15 +4366,15 @@ }, "property": { "type": "Identifier", - "start": 1404, - "end": 1410, + "start": 1986, + "end": 1992, "loc": { "start": { - "line": 56, + "line": 80, "column": 27 }, "end": { - "line": 56, + "line": 80, "column": 33 }, "identifierName": "server" @@ -3017,15 +4386,15 @@ "operator": "||", "right": { "type": "ObjectExpression", - "start": 1414, - "end": 1416, + "start": 1996, + "end": 1998, "loc": { "start": { - "line": 56, + "line": 80, "column": 37 }, "end": { - "line": 56, + "line": 80, "column": 39 } }, @@ -3037,15 +4406,15 @@ { "type": "CommentLine", "value": " TODO: create method for building atom app with atom-builder", - "start": 1422, - "end": 1484, + "start": 2004, + "end": 2066, "loc": { "start": { - "line": 57, + "line": 81, "column": 4 }, "end": { - "line": 57, + "line": 81, "column": 66 } } @@ -3053,15 +4422,15 @@ { "type": "CommentLine", "value": " TODO: implement element, app & atom-app config", - "start": 1489, - "end": 1538, + "start": 2071, + "end": 2120, "loc": { "start": { - "line": 58, + "line": 82, "column": 4 }, "end": { - "line": 58, + "line": 82, "column": 53 } } @@ -3069,15 +4438,15 @@ { "type": "CommentLine", "value": " config.server.element = config.element || {path: `${config.name}.js`};", - "start": 1543, - "end": 1616, + "start": 2125, + "end": 2198, "loc": { "start": { - "line": 59, + "line": 83, "column": 4 }, "end": { - "line": 59, + "line": 83, "column": 77 } } @@ -3085,15 +4454,15 @@ { "type": "CommentLine", "value": " config.server.app = config.app || {path: `${config.name}.js`};", - "start": 1621, - "end": 1686, + "start": 2203, + "end": 2268, "loc": { "start": { - "line": 60, + "line": 84, "column": 4 }, "end": { - "line": 60, + "line": 84, "column": 69 } } @@ -3102,58 +4471,58 @@ }, { "type": "ExpressionStatement", - "start": 1691, - "end": 1714, + "start": 2273, + "end": 2296, "loc": { "start": { - "line": 61, + "line": 85, "column": 4 }, "end": { - "line": 61, + "line": 85, "column": 27 } }, "expression": { "type": "AssignmentExpression", - "start": 1691, - "end": 1713, + "start": 2273, + "end": 2295, "loc": { "start": { - "line": 61, + "line": 85, "column": 4 }, "end": { - "line": 61, + "line": 85, "column": 26 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 1691, - "end": 1704, + "start": 2273, + "end": 2286, "loc": { "start": { - "line": 61, + "line": 85, "column": 4 }, "end": { - "line": 61, + "line": 85, "column": 17 } }, "object": { "type": "Identifier", - "start": 1691, - "end": 1697, + "start": 2273, + "end": 2279, "loc": { "start": { - "line": 61, + "line": 85, "column": 4 }, "end": { - "line": 61, + "line": 85, "column": 10 }, "identifierName": "global" @@ -3163,15 +4532,15 @@ }, "property": { "type": "Identifier", - "start": 1698, - "end": 1704, + "start": 2280, + "end": 2286, "loc": { "start": { - "line": 61, + "line": 85, "column": 11 }, "end": { - "line": 61, + "line": 85, "column": 17 }, "identifierName": "config" @@ -3183,15 +4552,15 @@ }, "right": { "type": "Identifier", - "start": 1707, - "end": 1713, + "start": 2289, + "end": 2295, "loc": { "start": { - "line": 61, + "line": 85, "column": 20 }, "end": { - "line": 61, + "line": 85, "column": 26 }, "identifierName": "config" @@ -3204,15 +4573,15 @@ { "type": "CommentLine", "value": " TODO: create method for building atom app with atom-builder", - "start": 1422, - "end": 1484, + "start": 2004, + "end": 2066, "loc": { "start": { - "line": 57, + "line": 81, "column": 4 }, "end": { - "line": 57, + "line": 81, "column": 66 } } @@ -3220,15 +4589,15 @@ { "type": "CommentLine", "value": " TODO: implement element, app & atom-app config", - "start": 1489, - "end": 1538, + "start": 2071, + "end": 2120, "loc": { "start": { - "line": 58, + "line": 82, "column": 4 }, "end": { - "line": 58, + "line": 82, "column": 53 } } @@ -3236,15 +4605,15 @@ { "type": "CommentLine", "value": " config.server.element = config.element || {path: `${config.name}.js`};", - "start": 1543, - "end": 1616, + "start": 2125, + "end": 2198, "loc": { "start": { - "line": 59, + "line": 83, "column": 4 }, "end": { - "line": 59, + "line": 83, "column": 77 } } @@ -3252,15 +4621,15 @@ { "type": "CommentLine", "value": " config.server.app = config.app || {path: `${config.name}.js`};", - "start": 1621, - "end": 1686, + "start": 2203, + "end": 2268, "loc": { "start": { - "line": 60, + "line": 84, "column": 4 }, "end": { - "line": 60, + "line": 84, "column": 69 } } @@ -3269,29 +4638,29 @@ }, { "type": "ReturnStatement", - "start": 1719, - "end": 1733, + "start": 2301, + "end": 2315, "loc": { "start": { - "line": 62, + "line": 86, "column": 4 }, "end": { - "line": 62, + "line": 86, "column": 18 } }, "argument": { "type": "Identifier", - "start": 1726, - "end": 1732, + "start": 2308, + "end": 2314, "loc": { "start": { - "line": 62, + "line": 86, "column": 11 }, "end": { - "line": 62, + "line": 86, "column": 17 }, "identifierName": "config" @@ -3306,15 +4675,15 @@ { "type": "CommentBlock", "value": "*\n * @param {object} config - the config to be updated\n * @param {string} name - the name of the element, component, etc\n ", - "start": 1082, - "end": 1214, + "start": 1664, + "end": 1796, "loc": { "start": { - "line": 48, + "line": 72, "column": 2 }, "end": { - "line": 51, + "line": 75, "column": 5 } } @@ -3364,158 +4733,3117 @@ } } } - ] - }, - "comments": [ + ] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * wrapper around cjs require\n * try's to read file from current working directory\n * @param {string} path path to file/module\n * @return {object|array|function|class} module or file\n ", + "start": 308, + "end": 508, + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 18, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @return {object} value of 'backed.json'\n ", + "start": 778, + "end": 832, + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @return {string} name from 'package.json'\n ", + "start": 1154, + "end": 1210, + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @return {string} name from 'bower.json'\n ", + "start": 1413, + "end": 1467, + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @param {object} config - the config to be updated\n * @param {string} name - the name of the element, component, etc\n ", + "start": 1664, + "end": 1796, + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 75, + "column": 5 + } + } + }, + { + "type": "CommentLine", + "value": " TODO: create method for building atom app with atom-builder", + "start": 2004, + "end": 2066, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 66 + } + } + }, + { + "type": "CommentLine", + "value": " TODO: implement element, app & atom-app config", + "start": 2071, + "end": 2120, + "loc": { + "start": { + "line": 82, + "column": 4 + }, + "end": { + "line": 82, + "column": 53 + } + } + }, + { + "type": "CommentLine", + "value": " config.server.element = config.element || {path: `${config.name}.js`};", + "start": 2125, + "end": 2198, + "loc": { + "start": { + "line": 83, + "column": 4 + }, + "end": { + "line": 83, + "column": 77 + } + } + }, + { + "type": "CommentLine", + "value": " config.server.app = config.app || {path: `${config.name}.js`};", + "start": 2203, + "end": 2268, + "loc": { + "start": { + "line": 84, + "column": 4 + }, + "end": { + "line": 84, + "column": 69 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "use strict", + "start": 0, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 12 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 12 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 14, + "end": 19, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 5 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 20, + "end": 21, + "loc": { + "start": { + "line": 2, + "column": 6 + }, + "end": { + "line": 2, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "readFileSync", + "start": 21, + "end": 33, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 19 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 33, + "end": 34, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 35, + "end": 36, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 37, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 23 + }, + "end": { + "line": 2, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 44, + "end": 45, + "loc": { + "start": { + "line": 2, + "column": 30 + }, + "end": { + "line": 2, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "fs", + "start": 45, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 31 + }, + "end": { + "line": 2, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 49, + "end": 50, + "loc": { + "start": { + "line": 2, + "column": 35 + }, + "end": { + "line": 2, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 50, + "end": 51, + "loc": { + "start": { + "line": 2, + "column": 36 + }, + "end": { + "line": 2, + "column": 37 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 52, + "end": 58, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "logger", + "start": 59, + "end": 65, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 66, + "end": 70, + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./logger.js", + "start": 71, + "end": 84, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 32 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 84, + "end": 85, + "loc": { + "start": { + "line": 3, + "column": 32 + }, + "end": { + "line": 3, + "column": 33 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 87, + "end": 93, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 94, + "end": 101, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 14 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 102, + "end": 107, + "loc": { + "start": { + "line": 5, + "column": 15 + }, + "end": { + "line": 5, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Config", + "start": 108, + "end": 114, + "loc": { + "start": { + "line": 5, + "column": 21 + }, + "end": { + "line": 5, + "column": 27 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 115, + "end": 116, + "loc": { + "start": { + "line": 5, + "column": 28 + }, + "end": { + "line": 5, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 119, + "end": 130, + "loc": { + "start": { + "line": 6, + "column": 2 + }, + "end": { + "line": 6, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 130, + "end": 131, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 14 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 131, + "end": 132, + "loc": { + "start": { + "line": 6, + "column": 14 + }, + "end": { + "line": 6, + "column": 15 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 133, + "end": 134, + "loc": { + "start": { + "line": 6, + "column": 16 + }, + "end": { + "line": 6, + "column": 17 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 139, + "end": 143, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 143, + "end": 144, + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "importConfig", + "start": 144, + "end": 156, + "loc": { + "start": { + "line": 7, + "column": 9 + }, + "end": { + "line": 7, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 156, + "end": 157, + "loc": { + "start": { + "line": 7, + "column": 21 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 157, + "end": 158, + "loc": { + "start": { + "line": 7, + "column": 22 + }, + "end": { + "line": 7, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 158, + "end": 159, + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "then", + "start": 159, + "end": 163, + "loc": { + "start": { + "line": 7, + "column": 24 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 163, + "end": 164, + "loc": { + "start": { + "line": 7, + "column": 28 + }, + "end": { + "line": 7, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 164, + "end": 170, + "loc": { + "start": { + "line": 7, + "column": 29 + }, + "end": { + "line": 7, + "column": 35 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 171, + "end": 173, + "loc": { + "start": { + "line": 7, + "column": 36 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 174, + "end": 175, + "loc": { + "start": { + "line": 7, + "column": 39 + }, + "end": { + "line": 7, + "column": 40 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 182, + "end": 187, + "loc": { + "start": { + "line": 8, + "column": 6 + }, + "end": { + "line": 8, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 188, + "end": 192, + "loc": { + "start": { + "line": 8, + "column": 12 + }, + "end": { + "line": 8, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 193, + "end": 194, + "loc": { + "start": { + "line": 8, + "column": 17 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 195, + "end": 199, + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 199, + "end": 200, + "loc": { + "start": { + "line": 8, + "column": 23 + }, + "end": { + "line": 8, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "importPackageName", + "start": 200, + "end": 217, + "loc": { + "start": { + "line": 8, + "column": 24 + }, + "end": { + "line": 8, + "column": 41 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 217, + "end": 218, + "loc": { + "start": { + "line": 8, + "column": 41 + }, + "end": { + "line": 8, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 218, + "end": 219, + "loc": { + "start": { + "line": 8, + "column": 42 + }, + "end": { + "line": 8, + "column": 43 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 220, + "end": 222, + "loc": { + "start": { + "line": 8, + "column": 44 + }, + "end": { + "line": 8, + "column": 46 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 223, + "end": 227, + "loc": { + "start": { + "line": 8, + "column": 47 + }, + "end": { + "line": 8, + "column": 51 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 227, + "end": 228, + "loc": { + "start": { + "line": 8, + "column": 51 + }, + "end": { + "line": 8, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "importBowerName", + "start": 228, + "end": 243, + "loc": { + "start": { + "line": 8, + "column": 52 + }, + "end": { + "line": 8, + "column": 67 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 243, + "end": 244, + "loc": { + "start": { + "line": 8, + "column": 67 + }, + "end": { + "line": 8, + "column": 68 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 244, + "end": 245, + "loc": { + "start": { + "line": 8, + "column": 68 + }, + "end": { + "line": 8, + "column": 69 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 245, + "end": 246, + "loc": { + "start": { + "line": 8, + "column": 69 + }, + "end": { + "line": 8, + "column": 70 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 253, + "end": 259, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 12 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 260, + "end": 264, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 264, + "end": 265, + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateConfig", + "start": 265, + "end": 277, + "loc": { + "start": { + "line": 9, + "column": 18 + }, + "end": { + "line": 9, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 277, + "end": 278, + "loc": { + "start": { + "line": 9, + "column": 30 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 278, + "end": 284, + "loc": { + "start": { + "line": 9, + "column": 31 + }, + "end": { + "line": 9, + "column": 37 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 284, + "end": 285, + "loc": { + "start": { + "line": 9, + "column": 37 + }, + "end": { + "line": 9, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 286, + "end": 290, + "loc": { + "start": { + "line": 9, + "column": 39 + }, + "end": { + "line": 9, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 290, + "end": 291, + "loc": { + "start": { + "line": 9, + "column": 43 + }, + "end": { + "line": 9, + "column": 44 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 291, + "end": 292, + "loc": { + "start": { + "line": 9, + "column": 44 + }, + "end": { + "line": 9, + "column": 45 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 297, + "end": 298, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 298, + "end": 299, + "loc": { + "start": { + "line": 10, + "column": 5 + }, + "end": { + "line": 10, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 299, + "end": 300, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 303, + "end": 304, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * wrapper around cjs require\n * try's to read file from current working directory\n * @param {string} path path to file/module\n * @return {object|array|function|class} module or file\n ", + "start": 308, + "end": 508, + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 18, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 511, + "end": 518, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 9 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 518, + "end": 519, + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "path", + "start": 519, + "end": 523, + "loc": { + "start": { + "line": 19, + "column": 10 + }, + "end": { + "line": 19, + "column": 14 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 523, + "end": 524, + "loc": { + "start": { + "line": 19, + "column": 14 + }, + "end": { + "line": 19, + "column": 15 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 525, + "end": 526, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 17 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 531, + "end": 537, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 10 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 538, + "end": 541, + "loc": { + "start": { + "line": 20, + "column": 11 + }, + "end": { + "line": 20, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Promise", + "start": 542, + "end": 549, + "loc": { + "start": { + "line": 20, + "column": 15 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 549, + "end": 550, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 20, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 550, + "end": 551, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "resolve", + "start": 551, + "end": 558, + "loc": { + "start": { + "line": 20, + "column": 24 + }, + "end": { + "line": 20, + "column": 31 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 558, + "end": 559, + "loc": { + "start": { + "line": 20, + "column": 31 + }, + "end": { + "line": 20, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reject", + "start": 560, + "end": 566, + "loc": { + "start": { + "line": 20, + "column": 33 + }, + "end": { + "line": 20, + "column": 39 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 566, + "end": 567, + "loc": { + "start": { + "line": 20, + "column": 39 + }, + "end": { + "line": 20, + "column": 40 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 568, + "end": 570, + "loc": { + "start": { + "line": 20, + "column": 41 + }, + "end": { + "line": 20, + "column": 43 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 571, + "end": 572, + "loc": { + "start": { + "line": 20, + "column": 44 + }, + "end": { + "line": 20, + "column": 45 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 579, + "end": 582, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "root", + "start": 583, + "end": 587, + "loc": { + "start": { + "line": 21, + "column": 10 + }, + "end": { + "line": 21, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 588, + "end": 589, + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 21, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "process", + "start": 590, + "end": 597, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 597, + "end": 598, + "loc": { + "start": { + "line": 21, + "column": 24 + }, + "end": { + "line": 21, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cwd", + "start": 598, + "end": 601, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 601, + "end": 602, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 602, + "end": 603, + "loc": { + "start": { + "line": 21, + "column": 29 + }, + "end": { + "line": 21, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 603, + "end": 604, + "loc": { + "start": { + "line": 21, + "column": 30 + }, + "end": { + "line": 21, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "root", + "start": 611, + "end": 615, + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 10 + } + } + }, + { + "type": { + "label": "_=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "+=", + "start": 616, + "end": 618, + "loc": { + "start": { + "line": 22, + "column": 11 + }, + "end": { + "line": 22, + "column": 13 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 619, + "end": 620, + "loc": { + "start": { + "line": 22, + "column": 14 + }, + "end": { + "line": 22, + "column": 15 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "/", + "start": 620, + "end": 621, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 621, + "end": 623, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "path", + "start": 623, + "end": 627, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 627, + "end": 628, + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 23 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 628, + "end": 628, + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 23 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 628, + "end": 629, + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 629, + "end": 630, + "loc": { + "start": { + "line": 22, + "column": 24 + }, + "end": { + "line": 22, + "column": 25 + } + } + }, + { + "type": { + "label": "try", + "keyword": "try", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "try", + "start": 637, + "end": 640, + "loc": { + "start": { + "line": 23, + "column": 6 + }, + "end": { + "line": 23, + "column": 9 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 641, + "end": 642, + "loc": { + "start": { + "line": 23, + "column": 10 + }, + "end": { + "line": 23, + "column": 11 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 651, + "end": 654, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 11 + } + } + }, { - "type": "CommentBlock", - "value": "*\n * wrapper around cjs require\n * try's to read file from current working directory\n * @param {string} path path to file/module\n * @return {object|array|function|class} module or file\n ", - "start": 259, - "end": 459, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "required", + "start": 655, + "end": 663, "loc": { "start": { - "line": 11, - "column": 2 + "line": 24, + "column": 12 }, "end": { - "line": 16, - "column": 5 + "line": 24, + "column": 20 } } }, { - "type": "CommentBlock", - "value": "*\n * @return {object} value of 'backed.json'\n ", - "start": 639, - "end": 693, + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 664, + "end": 665, "loc": { "start": { - "line": 27, - "column": 2 + "line": 24, + "column": 21 }, "end": { - "line": 29, - "column": 5 + "line": 24, + "column": 22 } } }, { - "type": "CommentBlock", - "value": "*\n * @return {string} name from 'package.json'\n ", - "start": 760, - "end": 816, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 666, + "end": 673, "loc": { "start": { - "line": 34, - "column": 2 + "line": 24, + "column": 23 }, "end": { - "line": 36, - "column": 5 + "line": 24, + "column": 30 } } }, { - "type": "CommentBlock", - "value": "*\n * @return {string} name from 'package.json'\n ", - "start": 923, - "end": 979, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 673, + "end": 674, "loc": { "start": { - "line": 41, - "column": 2 + "line": 24, + "column": 30 }, "end": { - "line": 43, - "column": 5 + "line": 24, + "column": 31 } } }, { - "type": "CommentBlock", - "value": "*\n * @param {object} config - the config to be updated\n * @param {string} name - the name of the element, component, etc\n ", - "start": 1082, - "end": 1214, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "root", + "start": 674, + "end": 678, "loc": { "start": { - "line": 48, - "column": 2 + "line": 24, + "column": 31 }, "end": { - "line": 51, - "column": 5 + "line": 24, + "column": 35 } } }, { - "type": "CommentLine", - "value": " TODO: create method for building atom app with atom-builder", - "start": 1422, - "end": 1484, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 678, + "end": 679, "loc": { "start": { - "line": 57, - "column": 4 + "line": 24, + "column": 35 }, "end": { - "line": 57, - "column": 66 + "line": 24, + "column": 36 } } }, { - "type": "CommentLine", - "value": " TODO: implement element, app & atom-app config", - "start": 1489, - "end": 1538, + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 679, + "end": 680, "loc": { "start": { - "line": 58, - "column": 4 + "line": 24, + "column": 36 }, "end": { - "line": 58, - "column": 53 + "line": 24, + "column": 37 } } }, { - "type": "CommentLine", - "value": " config.server.element = config.element || {path: `${config.name}.js`};", - "start": 1543, - "end": 1616, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "resolve", + "start": 689, + "end": 696, "loc": { "start": { - "line": 59, - "column": 4 + "line": 25, + "column": 8 }, "end": { - "line": 59, - "column": 77 + "line": 25, + "column": 15 } } }, { - "type": "CommentLine", - "value": " config.server.app = config.app || {path: `${config.name}.js`};", - "start": 1621, - "end": 1686, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 696, + "end": 697, "loc": { "start": { - "line": 60, - "column": 4 + "line": 25, + "column": 15 }, "end": { - "line": 60, - "column": 69 + "line": 25, + "column": 16 } } - } - ], - "tokens": [ + }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -3523,53 +7851,102 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "value": "required", + "start": 697, + "end": 705, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 24 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 705, + "end": 706, + "loc": { + "start": { + "line": 25, + "column": 24 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "value": "use strict", - "start": 0, - "end": 12, + "start": 706, + "end": 707, "loc": { "start": { - "line": 1, - "column": 0 + "line": 25, + "column": 25 }, "end": { - "line": 1, - "column": 12 + "line": 25, + "column": 26 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 12, - "end": 13, + "start": 714, + "end": 715, "loc": { "start": { - "line": 1, - "column": 12 + "line": 26, + "column": 6 }, "end": { - "line": 1, - "column": 13 + "line": 26, + "column": 7 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "catch", + "keyword": "catch", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3580,23 +7957,23 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 14, - "end": 19, + "value": "catch", + "start": 716, + "end": 721, "loc": { "start": { - "line": 2, - "column": 0 + "line": 26, + "column": 8 }, "end": { - "line": 2, - "column": 5 + "line": 26, + "column": 13 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -3606,16 +7983,16 @@ "postfix": false, "binop": null }, - "start": 20, - "end": 21, + "start": 722, + "end": 723, "loc": { "start": { - "line": 2, - "column": 6 + "line": 26, + "column": 14 }, "end": { - "line": 2, - "column": 7 + "line": 26, + "column": 15 } } }, @@ -3631,23 +8008,23 @@ "postfix": false, "binop": null }, - "value": "readFileSync", - "start": 21, - "end": 33, + "value": "error", + "start": 723, + "end": 728, "loc": { "start": { - "line": 2, - "column": 7 + "line": 26, + "column": 15 }, "end": { - "line": 2, - "column": 19 + "line": 26, + "column": 20 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3657,43 +8034,41 @@ "postfix": false, "binop": null }, - "start": 33, - "end": 34, + "start": 728, + "end": 729, "loc": { "start": { - "line": 2, - "column": 19 + "line": 26, + "column": 20 }, "end": { - "line": 2, - "column": 20 + "line": 26, + "column": 21 } } }, { "type": { - "label": "=", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 35, - "end": 36, + "start": 730, + "end": 731, "loc": { "start": { - "line": 2, - "column": 21 + "line": 26, + "column": 22 }, "end": { - "line": 2, - "column": 22 + "line": 26, + "column": 23 } } }, @@ -3709,17 +8084,17 @@ "postfix": false, "binop": null }, - "value": "require", - "start": 37, - "end": 44, + "value": "reject", + "start": 740, + "end": 746, "loc": { "start": { - "line": 2, - "column": 23 + "line": 27, + "column": 8 }, "end": { - "line": 2, - "column": 30 + "line": 27, + "column": 14 } } }, @@ -3735,22 +8110,22 @@ "postfix": false, "binop": null }, - "start": 44, - "end": 45, + "start": 746, + "end": 747, "loc": { "start": { - "line": 2, - "column": 30 + "line": 27, + "column": 14 }, "end": { - "line": 2, - "column": 31 + "line": 27, + "column": 15 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -3758,20 +8133,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "fs", - "start": 45, - "end": 49, + "value": "error", + "start": 747, + "end": 752, "loc": { "start": { - "line": 2, - "column": 31 + "line": 27, + "column": 15 }, "end": { - "line": 2, - "column": 35 + "line": 27, + "column": 20 } } }, @@ -3787,16 +8161,16 @@ "postfix": false, "binop": null }, - "start": 49, - "end": 50, + "start": 752, + "end": 753, "loc": { "start": { - "line": 2, - "column": 35 + "line": 27, + "column": 20 }, "end": { - "line": 2, - "column": 36 + "line": 27, + "column": 21 } } }, @@ -3813,23 +8187,22 @@ "binop": null, "updateContext": null }, - "start": 50, - "end": 51, + "start": 753, + "end": 754, "loc": { "start": { - "line": 2, - "column": 36 + "line": 27, + "column": 21 }, "end": { - "line": 2, - "column": 37 + "line": 27, + "column": 22 } } }, { "type": { - "label": "export", - "keyword": "export", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3837,55 +8210,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "export", - "start": 53, - "end": 59, + "start": 761, + "end": 762, "loc": { "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 4, + "line": 28, "column": 6 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 60, - "end": 67, - "loc": { - "start": { - "line": 4, - "column": 7 }, "end": { - "line": 4, - "column": 14 + "line": 28, + "column": 7 } } }, { "type": { - "label": "class", - "keyword": "class", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3893,28 +8235,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "class", - "start": 68, - "end": 73, + "start": 767, + "end": 768, "loc": { "start": { - "line": 4, - "column": 15 + "line": 29, + "column": 4 }, "end": { - "line": 4, - "column": 20 + "line": 29, + "column": 5 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3922,50 +8262,50 @@ "postfix": false, "binop": null }, - "value": "Config", - "start": 74, - "end": 80, + "start": 768, + "end": 769, "loc": { "start": { - "line": 4, - "column": 21 + "line": 29, + "column": 5 }, "end": { - "line": 4, - "column": 27 + "line": 29, + "column": 6 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 81, - "end": 82, + "start": 769, + "end": 770, "loc": { "start": { - "line": 4, - "column": 28 + "line": 29, + "column": 6 }, "end": { - "line": 4, - "column": 29 + "line": 29, + "column": 7 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3973,50 +8313,40 @@ "postfix": false, "binop": null }, - "value": "constructor", - "start": 85, - "end": 96, + "start": 773, + "end": 774, "loc": { "start": { - "line": 5, + "line": 30, "column": 2 }, "end": { - "line": 5, - "column": 13 + "line": 30, + "column": 3 } } }, { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 96, - "end": 97, + "type": "CommentBlock", + "value": "*\n * @return {object} value of 'backed.json'\n ", + "start": 778, + "end": 832, "loc": { "start": { - "line": 5, - "column": 13 + "line": 32, + "column": 2 }, "end": { - "line": 5, - "column": 14 + "line": 34, + "column": 5 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4024,22 +8354,23 @@ "postfix": false, "binop": null }, - "start": 97, - "end": 98, + "value": "importConfig", + "start": 835, + "end": 847, "loc": { "start": { - "line": 5, - "column": 14 + "line": 35, + "column": 2 }, "end": { - "line": 5, - "column": 15 + "line": 35, + "column": 14 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -4049,23 +8380,22 @@ "postfix": false, "binop": null }, - "start": 99, - "end": 100, + "start": 847, + "end": 848, "loc": { "start": { - "line": 5, - "column": 16 + "line": 35, + "column": 14 }, "end": { - "line": 5, - "column": 17 + "line": 35, + "column": 15 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -4073,27 +8403,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 105, - "end": 108, + "start": 848, + "end": 849, "loc": { "start": { - "line": 6, - "column": 4 + "line": 35, + "column": 15 }, "end": { - "line": 6, - "column": 7 + "line": 35, + "column": 16 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -4102,52 +8430,52 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 109, - "end": 115, + "start": 850, + "end": 851, "loc": { "start": { - "line": 6, - "column": 8 + "line": 35, + "column": 17 }, "end": { - "line": 6, - "column": 14 + "line": 35, + "column": 18 } } }, { "type": { - "label": "=", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 116, - "end": 117, + "value": "return", + "start": 856, + "end": 862, "loc": { "start": { - "line": 6, - "column": 15 + "line": 36, + "column": 4 }, "end": { - "line": 6, - "column": 16 + "line": 36, + "column": 10 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "new", + "keyword": "new", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -4157,50 +8485,50 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 118, - "end": 122, + "value": "new", + "start": 863, + "end": 866, "loc": { "start": { - "line": 6, - "column": 17 + "line": 36, + "column": 11 }, "end": { - "line": 6, - "column": 21 + "line": 36, + "column": 14 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 122, - "end": 123, + "value": "Promise", + "start": 867, + "end": 874, "loc": { "start": { - "line": 6, - "column": 21 + "line": 36, + "column": 15 }, "end": { - "line": 6, + "line": 36, "column": 22 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -4209,17 +8537,16 @@ "postfix": false, "binop": null }, - "value": "importConfig", - "start": 123, - "end": 135, + "start": 874, + "end": 875, "loc": { "start": { - "line": 6, + "line": 36, "column": 22 }, "end": { - "line": 6, - "column": 34 + "line": 36, + "column": 23 } } }, @@ -4235,24 +8562,24 @@ "postfix": false, "binop": null }, - "start": 135, - "end": 136, + "start": 875, + "end": 876, "loc": { "start": { - "line": 6, - "column": 34 + "line": 36, + "column": 23 }, "end": { - "line": 6, - "column": 35 + "line": 36, + "column": 24 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4260,22 +8587,23 @@ "postfix": false, "binop": null }, - "start": 136, - "end": 137, + "value": "resolve", + "start": 876, + "end": 883, "loc": { "start": { - "line": 6, - "column": 35 + "line": 36, + "column": 24 }, "end": { - "line": 6, - "column": 36 + "line": 36, + "column": 31 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -4286,52 +8614,50 @@ "binop": null, "updateContext": null }, - "start": 137, - "end": 138, + "start": 883, + "end": 884, "loc": { "start": { - "line": 6, - "column": 36 + "line": 36, + "column": 31 }, "end": { - "line": 6, - "column": 37 + "line": 36, + "column": 32 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "const", - "start": 143, - "end": 148, + "value": "reject", + "start": 885, + "end": 891, "loc": { "start": { - "line": 7, - "column": 4 + "line": 36, + "column": 33 }, "end": { - "line": 7, - "column": 9 + "line": 36, + "column": 39 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4339,80 +8665,76 @@ "postfix": false, "binop": null }, - "value": "name", - "start": 149, - "end": 153, + "start": 891, + "end": 892, "loc": { "start": { - "line": 7, - "column": 10 + "line": 36, + "column": 39 }, "end": { - "line": 7, - "column": 14 + "line": 36, + "column": 40 } } }, { "type": { - "label": "=", + "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 154, - "end": 155, + "start": 893, + "end": 895, "loc": { "start": { - "line": 7, - "column": 15 + "line": 36, + "column": 41 }, "end": { - "line": 7, - "column": 16 + "line": 36, + "column": 43 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 156, - "end": 160, + "start": 896, + "end": 897, "loc": { "start": { - "line": 7, - "column": 17 + "line": 36, + "column": 44 }, "end": { - "line": 7, - "column": 21 + "line": 36, + "column": 45 } } }, { "type": { - "label": ".", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4421,49 +8743,50 @@ "binop": null, "updateContext": null }, - "start": 160, - "end": 161, + "value": "this", + "start": 904, + "end": 908, "loc": { "start": { - "line": 7, - "column": 21 + "line": 37, + "column": 6 }, "end": { - "line": 7, - "column": 22 + "line": 37, + "column": 10 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "importPackageName", - "start": 161, - "end": 178, + "start": 908, + "end": 909, "loc": { "start": { - "line": 7, - "column": 22 + "line": 37, + "column": 10 }, "end": { - "line": 7, - "column": 39 + "line": 37, + "column": 11 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -4472,24 +8795,25 @@ "postfix": false, "binop": null }, - "start": 178, - "end": 179, + "value": "require", + "start": 909, + "end": 916, "loc": { "start": { - "line": 7, - "column": 39 + "line": 37, + "column": 11 }, "end": { - "line": 7, - "column": 40 + "line": 37, + "column": 18 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4497,71 +8821,68 @@ "postfix": false, "binop": null }, - "start": 179, - "end": 180, + "start": 916, + "end": 917, "loc": { "start": { - "line": 7, - "column": 40 + "line": 37, + "column": 18 }, "end": { - "line": 7, - "column": 41 + "line": 37, + "column": 19 } } }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, + "binop": null, "updateContext": null }, - "value": "||", - "start": 181, - "end": 183, + "value": "backed.json", + "start": 917, + "end": 930, "loc": { "start": { - "line": 7, - "column": 42 + "line": 37, + "column": 19 }, "end": { - "line": 7, - "column": 44 + "line": 37, + "column": 32 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 184, - "end": 188, + "start": 930, + "end": 931, "loc": { "start": { - "line": 7, - "column": 45 + "line": 37, + "column": 32 }, "end": { - "line": 7, - "column": 49 + "line": 37, + "column": 33 } } }, @@ -4578,16 +8899,16 @@ "binop": null, "updateContext": null }, - "start": 188, - "end": 189, + "start": 931, + "end": 932, "loc": { "start": { - "line": 7, - "column": 49 + "line": 37, + "column": 33 }, "end": { - "line": 7, - "column": 50 + "line": 37, + "column": 34 } } }, @@ -4603,17 +8924,17 @@ "postfix": false, "binop": null }, - "value": "importBowerName", - "start": 189, - "end": 204, + "value": "then", + "start": 932, + "end": 936, "loc": { "start": { - "line": 7, - "column": 50 + "line": 37, + "column": 34 }, "end": { - "line": 7, - "column": 65 + "line": 37, + "column": 38 } } }, @@ -4629,24 +8950,24 @@ "postfix": false, "binop": null }, - "start": 204, - "end": 205, + "start": 936, + "end": 937, "loc": { "start": { - "line": 7, - "column": 65 + "line": 37, + "column": 38 }, "end": { - "line": 7, - "column": 66 + "line": 37, + "column": 39 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4654,22 +8975,23 @@ "postfix": false, "binop": null }, - "start": 205, - "end": 206, + "value": "config", + "start": 937, + "end": 943, "loc": { "start": { - "line": 7, - "column": 66 + "line": 37, + "column": 39 }, "end": { - "line": 7, - "column": 67 + "line": 37, + "column": 45 } } }, { "type": { - "label": ";", + "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -4680,51 +9002,47 @@ "binop": null, "updateContext": null }, - "start": 206, - "end": 207, + "start": 944, + "end": 946, "loc": { "start": { - "line": 7, - "column": 67 + "line": 37, + "column": 46 }, "end": { - "line": 7, - "column": 68 + "line": 37, + "column": 48 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 212, - "end": 218, + "start": 947, + "end": 948, "loc": { "start": { - "line": 8, - "column": 4 + "line": 37, + "column": 49 }, "end": { - "line": 8, - "column": 10 + "line": 37, + "column": 50 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -4732,45 +9050,43 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 219, - "end": 223, + "value": "resolve", + "start": 957, + "end": 964, "loc": { "start": { - "line": 8, - "column": 11 + "line": 38, + "column": 8 }, "end": { - "line": 8, + "line": 38, "column": 15 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 223, - "end": 224, + "start": 964, + "end": 965, "loc": { "start": { - "line": 8, + "line": 38, "column": 15 }, "end": { - "line": 8, + "line": 38, "column": 16 } } @@ -4787,50 +9103,25 @@ "postfix": false, "binop": null }, - "value": "updateConfig", - "start": 224, - "end": 236, + "value": "config", + "start": 965, + "end": 971, "loc": { "start": { - "line": 8, + "line": 38, "column": 16 }, "end": { - "line": 8, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 236, - "end": 237, - "loc": { - "start": { - "line": 8, - "column": 28 - }, - "end": { - "line": 8, - "column": 29 + "line": 38, + "column": 22 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4838,23 +9129,22 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 237, - "end": 243, + "start": 971, + "end": 972, "loc": { "start": { - "line": 8, - "column": 29 + "line": 38, + "column": 22 }, "end": { - "line": 8, - "column": 35 + "line": 38, + "column": 23 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -4865,24 +9155,24 @@ "binop": null, "updateContext": null }, - "start": 243, - "end": 244, + "start": 972, + "end": 973, "loc": { "start": { - "line": 8, - "column": 35 + "line": 38, + "column": 23 }, "end": { - "line": 8, - "column": 36 + "line": 38, + "column": 24 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4890,17 +9180,16 @@ "postfix": false, "binop": null }, - "value": "name", - "start": 245, - "end": 249, + "start": 980, + "end": 981, "loc": { "start": { - "line": 8, - "column": 37 + "line": 39, + "column": 6 }, "end": { - "line": 8, - "column": 41 + "line": 39, + "column": 7 } } }, @@ -4916,23 +9205,23 @@ "postfix": false, "binop": null }, - "start": 249, - "end": 250, + "start": 981, + "end": 982, "loc": { "start": { - "line": 8, - "column": 41 + "line": 39, + "column": 7 }, "end": { - "line": 8, - "column": 42 + "line": 39, + "column": 8 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -4942,22 +9231,23 @@ "binop": null, "updateContext": null }, - "start": 250, - "end": 251, + "start": 982, + "end": 983, "loc": { "start": { - "line": 8, - "column": 42 + "line": 39, + "column": 8 }, "end": { - "line": 8, - "column": 43 + "line": 39, + "column": 9 } } }, { "type": { - "label": "}", + "label": "catch", + "keyword": "catch", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -4965,41 +9255,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 254, - "end": 255, - "loc": { - "start": { - "line": 9, - "column": 2 - }, - "end": { - "line": 9, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * wrapper around cjs require\n * try's to read file from current working directory\n * @param {string} path path to file/module\n * @return {object|array|function|class} module or file\n ", - "start": 259, - "end": 459, + "value": "catch", + "start": 983, + "end": 988, "loc": { "start": { - "line": 11, - "column": 2 + "line": 39, + "column": 9 }, "end": { - "line": 16, - "column": 5 + "line": 39, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -5008,17 +9284,16 @@ "postfix": false, "binop": null }, - "value": "require", - "start": 462, - "end": 469, + "start": 988, + "end": 989, "loc": { "start": { - "line": 17, - "column": 2 + "line": 39, + "column": 14 }, "end": { - "line": 17, - "column": 9 + "line": 39, + "column": 15 } } }, @@ -5034,24 +9309,24 @@ "postfix": false, "binop": null }, - "start": 469, - "end": 470, + "start": 989, + "end": 990, "loc": { "start": { - "line": 17, - "column": 9 + "line": 39, + "column": 15 }, "end": { - "line": 17, - "column": 10 + "line": 39, + "column": 16 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5059,42 +9334,42 @@ "postfix": false, "binop": null }, - "value": "path", - "start": 470, - "end": 474, + "start": 990, + "end": 991, "loc": { "start": { - "line": 17, - "column": 10 + "line": 39, + "column": 16 }, "end": { - "line": 17, - "column": 14 + "line": 39, + "column": 17 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 474, - "end": 475, + "start": 992, + "end": 994, "loc": { "start": { - "line": 17, - "column": 14 + "line": 39, + "column": 18 }, "end": { - "line": 17, - "column": 15 + "line": 39, + "column": 20 } } }, @@ -5110,104 +9385,101 @@ "postfix": false, "binop": null }, - "start": 476, - "end": 477, + "start": 995, + "end": 996, "loc": { "start": { - "line": 17, - "column": 16 + "line": 39, + "column": 21 }, "end": { - "line": 17, - "column": 17 + "line": 39, + "column": 22 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "let", - "start": 482, - "end": 485, + "value": "logger", + "start": 1005, + "end": 1011, "loc": { "start": { - "line": 18, - "column": 4 + "line": 40, + "column": 8 }, "end": { - "line": 18, - "column": 7 + "line": 40, + "column": 14 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "root", - "start": 486, - "end": 490, + "start": 1011, + "end": 1012, "loc": { "start": { - "line": 18, - "column": 8 + "line": 40, + "column": 14 }, "end": { - "line": 18, - "column": 12 + "line": 40, + "column": 15 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 491, - "end": 492, + "value": "warn", + "start": 1012, + "end": 1016, "loc": { "start": { - "line": 18, - "column": 13 + "line": 40, + "column": 15 }, "end": { - "line": 18, - "column": 14 + "line": 40, + "column": 19 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -5216,25 +9488,24 @@ "postfix": false, "binop": null }, - "value": "process", - "start": 493, - "end": 500, + "start": 1016, + "end": 1017, "loc": { "start": { - "line": 18, - "column": 15 + "line": 40, + "column": 19 }, "end": { - "line": 18, - "column": 22 + "line": 40, + "column": 20 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5243,24 +9514,25 @@ "binop": null, "updateContext": null }, - "start": 500, - "end": 501, + "value": "backed.json:: not found, using default options.", + "start": 1017, + "end": 1066, "loc": { "start": { - "line": 18, - "column": 22 + "line": 40, + "column": 20 }, "end": { - "line": 18, - "column": 23 + "line": 40, + "column": 69 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5268,50 +9540,50 @@ "postfix": false, "binop": null }, - "value": "cwd", - "start": 501, - "end": 504, + "start": 1066, + "end": 1067, "loc": { "start": { - "line": 18, - "column": 23 + "line": 40, + "column": 69 }, "end": { - "line": 18, - "column": 26 + "line": 40, + "column": 70 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 504, - "end": 505, + "start": 1067, + "end": 1068, "loc": { "start": { - "line": 18, - "column": 26 + "line": 40, + "column": 70 }, "end": { - "line": 18, - "column": 27 + "line": 40, + "column": 71 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5319,49 +9591,49 @@ "postfix": false, "binop": null }, - "start": 505, - "end": 506, + "value": "resolve", + "start": 1077, + "end": 1084, "loc": { "start": { - "line": 18, - "column": 27 + "line": 41, + "column": 8 }, "end": { - "line": 18, - "column": 28 + "line": 41, + "column": 15 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 506, - "end": 507, + "start": 1084, + "end": 1085, "loc": { "start": { - "line": 18, - "column": 28 + "line": 41, + "column": 15 }, "end": { - "line": 18, - "column": 29 + "line": 41, + "column": 16 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -5370,77 +9642,76 @@ "postfix": false, "binop": null }, - "value": "root", - "start": 512, - "end": 516, + "start": 1085, + "end": 1086, "loc": { "start": { - "line": 19, - "column": 4 + "line": 41, + "column": 16 }, "end": { - "line": 19, - "column": 8 + "line": 41, + "column": 17 } } }, { "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "+=", - "start": 517, - "end": 519, + "value": "name", + "start": 1097, + "end": 1101, "loc": { "start": { - "line": 19, - "column": 9 + "line": 42, + "column": 10 }, "end": { - "line": 19, - "column": 11 + "line": 42, + "column": 14 } } }, { "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, + "label": ":", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 520, - "end": 521, + "start": 1101, + "end": 1102, "loc": { "start": { - "line": 19, - "column": 12 + "line": 42, + "column": 14 }, "end": { - "line": 19, - "column": 13 + "line": 42, + "column": 15 } } }, { "type": { - "label": "template", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5449,25 +9720,25 @@ "binop": null, "updateContext": null }, - "value": "/", - "start": 521, - "end": 522, + "value": "your-element", + "start": 1103, + "end": 1117, "loc": { "start": { - "line": 19, - "column": 13 + "line": 42, + "column": 16 }, "end": { - "line": 19, - "column": 14 + "line": 42, + "column": 30 } } }, { "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5475,24 +9746,24 @@ "postfix": false, "binop": null }, - "start": 522, - "end": 524, + "start": 1126, + "end": 1127, "loc": { "start": { - "line": 19, - "column": 14 + "line": 43, + "column": 8 }, "end": { - "line": 19, - "column": 16 + "line": 43, + "column": 9 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5500,48 +9771,48 @@ "postfix": false, "binop": null }, - "value": "path", - "start": 524, - "end": 528, + "start": 1127, + "end": 1128, "loc": { "start": { - "line": 19, - "column": 16 + "line": 43, + "column": 9 }, "end": { - "line": 19, - "column": 20 + "line": 43, + "column": 10 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 528, - "end": 529, + "start": 1128, + "end": 1129, "loc": { "start": { - "line": 19, - "column": 20 + "line": 43, + "column": 10 }, "end": { - "line": 19, - "column": 21 + "line": 43, + "column": 11 } } }, { "type": { - "label": "template", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -5549,28 +9820,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "", - "start": 529, - "end": 529, + "start": 1136, + "end": 1137, "loc": { "start": { - "line": 19, - "column": 21 + "line": 44, + "column": 6 }, "end": { - "line": 19, - "column": 21 + "line": 44, + "column": 7 } } }, { "type": { - "label": "`", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5578,16 +9847,16 @@ "postfix": false, "binop": null }, - "start": 529, - "end": 530, + "start": 1137, + "end": 1138, "loc": { "start": { - "line": 19, - "column": 21 + "line": 44, + "column": 7 }, "end": { - "line": 19, - "column": 22 + "line": 44, + "column": 8 } } }, @@ -5604,23 +9873,22 @@ "binop": null, "updateContext": null }, - "start": 530, - "end": 531, + "start": 1138, + "end": 1139, "loc": { "start": { - "line": 19, - "column": 22 + "line": 44, + "column": 8 }, "end": { - "line": 19, - "column": 23 + "line": 44, + "column": 9 } } }, { "type": { - "label": "try", - "keyword": "try", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -5628,28 +9896,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "try", - "start": 536, - "end": 539, + "start": 1144, + "end": 1145, "loc": { "start": { - "line": 20, + "line": 45, "column": 4 }, "end": { - "line": 20, - "column": 7 + "line": 45, + "column": 5 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5657,44 +9923,57 @@ "postfix": false, "binop": null }, - "start": 540, - "end": 541, + "start": 1145, + "end": 1146, "loc": { "start": { - "line": 20, - "column": 8 + "line": 45, + "column": 5 }, "end": { - "line": 20, - "column": 9 + "line": 45, + "column": 6 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 548, - "end": 554, + "start": 1149, + "end": 1150, "loc": { "start": { - "line": 21, - "column": 6 + "line": 46, + "column": 2 }, "end": { - "line": 21, - "column": 12 + "line": 46, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @return {string} name from 'package.json'\n ", + "start": 1154, + "end": 1210, + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 } } }, @@ -5710,17 +9989,17 @@ "postfix": false, "binop": null }, - "value": "require", - "start": 555, - "end": 562, + "value": "importPackageName", + "start": 1213, + "end": 1230, "loc": { "start": { - "line": 21, - "column": 13 + "line": 51, + "column": 2 }, "end": { - "line": 21, - "column": 20 + "line": 51, + "column": 19 } } }, @@ -5736,24 +10015,24 @@ "postfix": false, "binop": null }, - "start": 562, - "end": 563, + "start": 1230, + "end": 1231, "loc": { "start": { - "line": 21, - "column": 20 + "line": 51, + "column": 19 }, "end": { - "line": 21, - "column": 21 + "line": 51, + "column": 20 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5761,25 +10040,24 @@ "postfix": false, "binop": null }, - "value": "root", - "start": 563, - "end": 567, + "start": 1231, + "end": 1232, "loc": { "start": { - "line": 21, - "column": 21 + "line": 51, + "column": 20 }, "end": { - "line": 21, - "column": 25 + "line": 51, + "column": 21 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5787,23 +10065,24 @@ "postfix": false, "binop": null }, - "start": 567, - "end": 568, + "start": 1233, + "end": 1234, "loc": { "start": { - "line": 21, - "column": 25 + "line": 51, + "column": 22 }, "end": { - "line": 21, - "column": 26 + "line": 51, + "column": 23 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "try", + "keyword": "try", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -5813,24 +10092,25 @@ "binop": null, "updateContext": null }, - "start": 568, - "end": 569, + "value": "try", + "start": 1239, + "end": 1242, "loc": { "start": { - "line": 21, - "column": 26 + "line": 52, + "column": 4 }, "end": { - "line": 21, - "column": 27 + "line": 52, + "column": 7 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5838,24 +10118,24 @@ "postfix": false, "binop": null }, - "start": 574, - "end": 575, + "start": 1243, + "end": 1244, "loc": { "start": { - "line": 22, - "column": 4 + "line": 52, + "column": 8 }, "end": { - "line": 22, - "column": 5 + "line": 52, + "column": 9 } } }, { "type": { - "label": "catch", - "keyword": "catch", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -5865,24 +10145,24 @@ "binop": null, "updateContext": null }, - "value": "catch", - "start": 576, - "end": 581, + "value": "return", + "start": 1251, + "end": 1257, "loc": { "start": { - "line": 22, + "line": 53, "column": 6 }, "end": { - "line": 22, - "column": 11 + "line": 53, + "column": 12 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -5891,50 +10171,51 @@ "postfix": false, "binop": null }, - "start": 582, - "end": 583, + "value": "JSON", + "start": 1258, + "end": 1262, "loc": { "start": { - "line": 22, - "column": 12 + "line": 53, + "column": 13 }, "end": { - "line": 22, - "column": 13 + "line": 53, + "column": 17 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "error", - "start": 583, - "end": 588, + "start": 1262, + "end": 1263, "loc": { "start": { - "line": 22, - "column": 13 + "line": 53, + "column": 17 }, "end": { - "line": 22, + "line": 53, "column": 18 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5942,23 +10223,49 @@ "postfix": false, "binop": null }, - "start": 588, - "end": 589, + "value": "parse", + "start": 1263, + "end": 1268, "loc": { "start": { - "line": 22, + "line": 53, "column": 18 }, "end": { - "line": 22, - "column": 19 + "line": 53, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1268, + "end": 1269, + "loc": { + "start": { + "line": 53, + "column": 23 + }, + "end": { + "line": 53, + "column": 24 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -5967,50 +10274,48 @@ "postfix": false, "binop": null }, - "start": 590, - "end": 591, + "value": "readFileSync", + "start": 1269, + "end": 1281, "loc": { "start": { - "line": 22, - "column": 20 + "line": 53, + "column": 24 }, "end": { - "line": 22, - "column": 21 + "line": 53, + "column": 36 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 598, - "end": 604, + "start": 1281, + "end": 1282, "loc": { "start": { - "line": 23, - "column": 6 + "line": 53, + "column": 36 }, "end": { - "line": 23, - "column": 12 + "line": 53, + "column": 37 } } }, { "type": { - "label": "name", + "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -6020,23 +10325,22 @@ "postfix": false, "binop": null }, - "value": "console", - "start": 605, - "end": 612, + "start": 1282, + "end": 1283, "loc": { "start": { - "line": 23, - "column": 13 + "line": 53, + "column": 37 }, "end": { - "line": 23, - "column": 20 + "line": 53, + "column": 38 } } }, { "type": { - "label": ".", + "label": "template", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -6047,23 +10351,24 @@ "binop": null, "updateContext": null }, - "start": 612, - "end": 613, + "value": "", + "start": 1283, + "end": 1283, "loc": { "start": { - "line": 23, - "column": 20 + "line": 53, + "column": 38 }, "end": { - "line": 23, - "column": 21 + "line": 53, + "column": 38 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "${", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -6072,24 +10377,23 @@ "postfix": false, "binop": null }, - "value": "warn", - "start": 613, - "end": 617, + "start": 1283, + "end": 1285, "loc": { "start": { - "line": 23, - "column": 21 + "line": 53, + "column": 38 }, "end": { - "line": 23, - "column": 25 + "line": 53, + "column": 40 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -6098,50 +10402,51 @@ "postfix": false, "binop": null }, - "start": 617, - "end": 618, + "value": "process", + "start": 1285, + "end": 1292, "loc": { "start": { - "line": 23, - "column": 25 + "line": 53, + "column": 40 }, "end": { - "line": 23, - "column": 26 + "line": 53, + "column": 47 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "error", - "start": 618, - "end": 623, + "start": 1292, + "end": 1293, "loc": { "start": { - "line": 23, - "column": 26 + "line": 53, + "column": 47 }, "end": { - "line": 23, - "column": 31 + "line": 53, + "column": 48 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6149,48 +10454,48 @@ "postfix": false, "binop": null }, - "start": 623, - "end": 624, + "value": "cwd", + "start": 1293, + "end": 1296, "loc": { "start": { - "line": 23, - "column": 31 + "line": 53, + "column": 48 }, "end": { - "line": 23, - "column": 32 + "line": 53, + "column": 51 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 624, - "end": 625, + "start": 1296, + "end": 1297, "loc": { "start": { - "line": 23, - "column": 32 + "line": 53, + "column": 51 }, "end": { - "line": 23, - "column": 33 + "line": 53, + "column": 52 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -6200,16 +10505,16 @@ "postfix": false, "binop": null }, - "start": 630, - "end": 631, + "start": 1297, + "end": 1298, "loc": { "start": { - "line": 24, - "column": 4 + "line": 53, + "column": 52 }, "end": { - "line": 24, - "column": 5 + "line": 53, + "column": 53 } } }, @@ -6225,38 +10530,49 @@ "postfix": false, "binop": null }, - "start": 634, - "end": 635, + "start": 1298, + "end": 1299, "loc": { "start": { - "line": 25, - "column": 2 + "line": 53, + "column": 53 }, "end": { - "line": 25, - "column": 3 + "line": 53, + "column": 54 } } }, { - "type": "CommentBlock", - "value": "*\n * @return {object} value of 'backed.json'\n ", - "start": 639, - "end": 693, + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "/package.json", + "start": 1299, + "end": 1312, "loc": { "start": { - "line": 27, - "column": 2 + "line": 53, + "column": 54 }, "end": { - "line": 29, - "column": 5 + "line": 53, + "column": 67 } } }, { "type": { - "label": "name", + "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -6266,25 +10582,24 @@ "postfix": false, "binop": null }, - "value": "importConfig", - "start": 696, - "end": 708, + "start": 1312, + "end": 1313, "loc": { "start": { - "line": 30, - "column": 2 + "line": 53, + "column": 67 }, "end": { - "line": 30, - "column": 14 + "line": 53, + "column": 68 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6292,16 +10607,16 @@ "postfix": false, "binop": null }, - "start": 708, - "end": 709, + "start": 1313, + "end": 1314, "loc": { "start": { - "line": 30, - "column": 14 + "line": 53, + "column": 68 }, "end": { - "line": 30, - "column": 15 + "line": 53, + "column": 69 } } }, @@ -6317,78 +10632,76 @@ "postfix": false, "binop": null }, - "start": 709, - "end": 710, + "start": 1314, + "end": 1315, "loc": { "start": { - "line": 30, - "column": 15 + "line": 53, + "column": 69 }, "end": { - "line": 30, - "column": 16 + "line": 53, + "column": 70 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 711, - "end": 712, + "start": 1315, + "end": 1316, "loc": { "start": { - "line": 30, - "column": 17 + "line": 53, + "column": 70 }, "end": { - "line": 30, - "column": 18 + "line": 53, + "column": 71 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 717, - "end": 723, + "value": "name", + "start": 1316, + "end": 1320, "loc": { "start": { - "line": 31, - "column": 4 + "line": 53, + "column": 71 }, "end": { - "line": 31, - "column": 10 + "line": 53, + "column": 75 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6397,23 +10710,22 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 724, - "end": 728, + "start": 1320, + "end": 1321, "loc": { "start": { - "line": 31, - "column": 11 + "line": 53, + "column": 75 }, "end": { - "line": 31, - "column": 15 + "line": 53, + "column": 76 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -6421,45 +10733,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 728, - "end": 729, + "start": 1326, + "end": 1327, "loc": { "start": { - "line": 31, - "column": 15 + "line": 54, + "column": 4 }, "end": { - "line": 31, - "column": 16 + "line": 54, + "column": 5 } } }, { "type": { - "label": "name", + "label": "catch", + "keyword": "catch", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "require", - "start": 729, - "end": 736, + "value": "catch", + "start": 1328, + "end": 1333, "loc": { "start": { - "line": 31, - "column": 16 + "line": 54, + "column": 6 }, "end": { - "line": 31, - "column": 23 + "line": 54, + "column": 11 } } }, @@ -6475,22 +10788,22 @@ "postfix": false, "binop": null }, - "start": 736, - "end": 737, + "start": 1333, + "end": 1334, "loc": { "start": { - "line": 31, - "column": 23 + "line": 54, + "column": 11 }, "end": { - "line": 31, - "column": 24 + "line": 54, + "column": 12 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -6498,20 +10811,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "backed.json", - "start": 737, - "end": 750, + "value": "e", + "start": 1334, + "end": 1335, "loc": { "start": { - "line": 31, - "column": 24 + "line": 54, + "column": 12 }, "end": { - "line": 31, - "column": 37 + "line": 54, + "column": 13 } } }, @@ -6527,50 +10839,49 @@ "postfix": false, "binop": null }, - "start": 750, - "end": 751, + "start": 1335, + "end": 1336, "loc": { "start": { - "line": 31, - "column": 37 + "line": 54, + "column": 13 }, "end": { - "line": 31, - "column": 38 + "line": 54, + "column": 14 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 751, - "end": 752, + "start": 1337, + "end": 1338, "loc": { "start": { - "line": 31, - "column": 38 + "line": 54, + "column": 15 }, "end": { - "line": 31, - "column": 39 + "line": 54, + "column": 16 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6578,32 +10889,43 @@ "postfix": false, "binop": null }, - "start": 755, - "end": 756, + "value": "logger", + "start": 1345, + "end": 1351, "loc": { "start": { - "line": 32, - "column": 2 + "line": 55, + "column": 6 }, "end": { - "line": 32, - "column": 3 + "line": 55, + "column": 12 } } }, { - "type": "CommentBlock", - "value": "*\n * @return {string} name from 'package.json'\n ", - "start": 760, - "end": 816, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1351, + "end": 1352, "loc": { "start": { - "line": 34, - "column": 2 + "line": 55, + "column": 12 }, "end": { - "line": 36, - "column": 5 + "line": 55, + "column": 13 } } }, @@ -6619,17 +10941,17 @@ "postfix": false, "binop": null }, - "value": "importPackageName", - "start": 819, - "end": 836, + "value": "warn", + "start": 1352, + "end": 1356, "loc": { "start": { - "line": 37, - "column": 2 + "line": 55, + "column": 13 }, "end": { - "line": 37, - "column": 19 + "line": 55, + "column": 17 } } }, @@ -6645,49 +10967,51 @@ "postfix": false, "binop": null }, - "start": 836, - "end": 837, + "start": 1356, + "end": 1357, "loc": { "start": { - "line": 37, - "column": 19 + "line": 55, + "column": 17 }, "end": { - "line": 37, - "column": 20 + "line": 55, + "column": 18 } } }, { "type": { - "label": ")", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 837, - "end": 838, + "value": "no package.json found", + "start": 1357, + "end": 1380, "loc": { "start": { - "line": 37, - "column": 20 + "line": 55, + "column": 18 }, "end": { - "line": 37, - "column": 21 + "line": 55, + "column": 41 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6695,23 +11019,22 @@ "postfix": false, "binop": null }, - "start": 839, - "end": 840, + "start": 1380, + "end": 1381, "loc": { "start": { - "line": 37, - "column": 22 + "line": 55, + "column": 41 }, "end": { - "line": 37, - "column": 23 + "line": 55, + "column": 42 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -6722,25 +11045,24 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 845, - "end": 851, + "start": 1381, + "end": 1382, "loc": { "start": { - "line": 38, - "column": 4 + "line": 55, + "column": 42 }, "end": { - "line": 38, - "column": 10 + "line": 55, + "column": 43 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6748,24 +11070,24 @@ "postfix": false, "binop": null }, - "value": "JSON", - "start": 852, - "end": 856, + "start": 1387, + "end": 1388, "loc": { "start": { - "line": 38, - "column": 11 + "line": 56, + "column": 4 }, "end": { - "line": 38, - "column": 15 + "line": 56, + "column": 5 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -6775,22 +11097,24 @@ "binop": null, "updateContext": null }, - "start": 856, - "end": 857, + "value": "return", + "start": 1393, + "end": 1399, "loc": { "start": { - "line": 38, - "column": 15 + "line": 57, + "column": 4 }, "end": { - "line": 38, - "column": 16 + "line": 57, + "column": 10 } } }, { "type": { - "label": "name", + "label": "null", + "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -6798,78 +11122,54 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "parse", - "start": 857, - "end": 862, + "value": "null", + "start": 1400, + "end": 1404, "loc": { "start": { - "line": 38, - "column": 16 + "line": 57, + "column": 11 }, "end": { - "line": 38, - "column": 21 + "line": 57, + "column": 15 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 862, - "end": 863, - "loc": { - "start": { - "line": 38, - "column": 21 - }, - "end": { - "line": 38, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "readFileSync", - "start": 863, - "end": 875, + "start": 1404, + "end": 1405, "loc": { "start": { - "line": 38, - "column": 22 + "line": 57, + "column": 15 }, "end": { - "line": 38, - "column": 34 + "line": 57, + "column": 16 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6877,22 +11177,38 @@ "postfix": false, "binop": null }, - "start": 875, - "end": 876, + "start": 1408, + "end": 1409, "loc": { "start": { - "line": 38, - "column": 34 + "line": 58, + "column": 2 }, "end": { - "line": 38, - "column": 35 + "line": 58, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @return {string} name from 'bower.json'\n ", + "start": 1413, + "end": 1467, + "loc": { + "start": { + "line": 60, + "column": 2 + }, + "end": { + "line": 62, + "column": 5 } } }, { "type": { - "label": "`", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -6902,51 +11218,50 @@ "postfix": false, "binop": null }, - "start": 876, - "end": 877, + "value": "importBowerName", + "start": 1470, + "end": 1485, "loc": { "start": { - "line": 38, - "column": 35 + "line": 63, + "column": 2 }, "end": { - "line": 38, - "column": 36 + "line": 63, + "column": 17 } } }, { "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "", - "start": 877, - "end": 877, + "start": 1485, + "end": 1486, "loc": { "start": { - "line": 38, - "column": 36 + "line": 63, + "column": 17 }, "end": { - "line": 38, - "column": 36 + "line": 63, + "column": 18 } } }, { "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -6954,23 +11269,23 @@ "postfix": false, "binop": null }, - "start": 877, - "end": 879, + "start": 1486, + "end": 1487, "loc": { "start": { - "line": 38, - "column": 36 + "line": 63, + "column": 18 }, "end": { - "line": 38, - "column": 38 + "line": 63, + "column": 19 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -6979,23 +11294,23 @@ "postfix": false, "binop": null }, - "value": "process", - "start": 879, - "end": 886, + "start": 1488, + "end": 1489, "loc": { "start": { - "line": 38, - "column": 38 + "line": 63, + "column": 20 }, "end": { - "line": 38, - "column": 45 + "line": 63, + "column": 21 } } }, { "type": { - "label": ".", + "label": "try", + "keyword": "try", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -7006,23 +11321,24 @@ "binop": null, "updateContext": null }, - "start": 886, - "end": 887, + "value": "try", + "start": 1494, + "end": 1497, "loc": { "start": { - "line": 38, - "column": 45 + "line": 64, + "column": 4 }, "end": { - "line": 38, - "column": 46 + "line": 64, + "column": 7 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -7031,50 +11347,52 @@ "postfix": false, "binop": null }, - "value": "cwd", - "start": 887, - "end": 890, + "start": 1498, + "end": 1499, "loc": { "start": { - "line": 38, - "column": 46 + "line": 64, + "column": 8 }, "end": { - "line": 38, - "column": 49 + "line": 64, + "column": 9 } } }, { "type": { - "label": "(", + "label": "return", + "keyword": "return", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 890, - "end": 891, + "value": "return", + "start": 1506, + "end": 1512, "loc": { "start": { - "line": 38, - "column": 49 + "line": 65, + "column": 6 }, "end": { - "line": 38, - "column": 50 + "line": 65, + "column": 12 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7082,22 +11400,23 @@ "postfix": false, "binop": null }, - "start": 891, - "end": 892, + "value": "JSON", + "start": 1513, + "end": 1517, "loc": { "start": { - "line": 38, - "column": 50 + "line": 65, + "column": 13 }, "end": { - "line": 38, - "column": 51 + "line": 65, + "column": 17 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -7105,52 +11424,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 892, - "end": 893, + "start": 1517, + "end": 1518, "loc": { "start": { - "line": 38, - "column": 51 + "line": 65, + "column": 17 }, "end": { - "line": 38, - "column": 52 + "line": 65, + "column": 18 } } }, { "type": { - "label": "template", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "/package.json", - "start": 893, - "end": 906, + "value": "parse", + "start": 1518, + "end": 1523, "loc": { "start": { - "line": 38, - "column": 52 + "line": 65, + "column": 18 }, "end": { - "line": 38, - "column": 65 + "line": 65, + "column": 23 } } }, { "type": { - "label": "`", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -7159,24 +11478,24 @@ "postfix": false, "binop": null }, - "start": 906, - "end": 907, + "start": 1523, + "end": 1524, "loc": { "start": { - "line": 38, - "column": 65 + "line": 65, + "column": 23 }, "end": { - "line": 38, - "column": 66 + "line": 65, + "column": 24 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7184,24 +11503,25 @@ "postfix": false, "binop": null }, - "start": 907, - "end": 908, + "value": "readFileSync", + "start": 1524, + "end": 1536, "loc": { "start": { - "line": 38, - "column": 66 + "line": 65, + "column": 24 }, "end": { - "line": 38, - "column": 67 + "line": 65, + "column": 36 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7209,102 +11529,101 @@ "postfix": false, "binop": null }, - "start": 908, - "end": 909, + "start": 1536, + "end": 1537, "loc": { "start": { - "line": 38, - "column": 67 + "line": 65, + "column": 36 }, "end": { - "line": 38, - "column": 68 + "line": 65, + "column": 37 } } }, { "type": { - "label": ".", + "label": "`", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 909, - "end": 910, + "start": 1537, + "end": 1538, "loc": { "start": { - "line": 38, - "column": 68 + "line": 65, + "column": 37 }, "end": { - "line": 38, - "column": 69 + "line": 65, + "column": 38 } } }, { "type": { - "label": "name", + "label": "template", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "name", - "start": 910, - "end": 914, + "value": "", + "start": 1538, + "end": 1538, "loc": { "start": { - "line": 38, - "column": 69 + "line": 65, + "column": 38 }, "end": { - "line": 38, - "column": 73 + "line": 65, + "column": 38 } } }, { "type": { - "label": ";", + "label": "${", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 914, - "end": 915, + "start": 1538, + "end": 1540, "loc": { "start": { - "line": 38, - "column": 73 + "line": 65, + "column": 38 }, "end": { - "line": 38, - "column": 74 + "line": 65, + "column": 40 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7312,32 +11631,43 @@ "postfix": false, "binop": null }, - "start": 918, - "end": 919, + "value": "process", + "start": 1540, + "end": 1547, "loc": { "start": { - "line": 39, - "column": 2 + "line": 65, + "column": 40 }, "end": { - "line": 39, - "column": 3 + "line": 65, + "column": 47 } } }, { - "type": "CommentBlock", - "value": "*\n * @return {string} name from 'package.json'\n ", - "start": 923, - "end": 979, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1547, + "end": 1548, "loc": { "start": { - "line": 41, - "column": 2 + "line": 65, + "column": 47 }, "end": { - "line": 43, - "column": 5 + "line": 65, + "column": 48 } } }, @@ -7353,17 +11683,17 @@ "postfix": false, "binop": null }, - "value": "importBowerName", - "start": 982, - "end": 997, + "value": "cwd", + "start": 1548, + "end": 1551, "loc": { "start": { - "line": 44, - "column": 2 + "line": 65, + "column": 48 }, "end": { - "line": 44, - "column": 17 + "line": 65, + "column": 51 } } }, @@ -7379,16 +11709,16 @@ "postfix": false, "binop": null }, - "start": 997, - "end": 998, + "start": 1551, + "end": 1552, "loc": { "start": { - "line": 44, - "column": 17 + "line": 65, + "column": 51 }, "end": { - "line": 44, - "column": 18 + "line": 65, + "column": 52 } } }, @@ -7404,24 +11734,24 @@ "postfix": false, "binop": null }, - "start": 998, - "end": 999, + "start": 1552, + "end": 1553, "loc": { "start": { - "line": 44, - "column": 18 + "line": 65, + "column": 52 }, "end": { - "line": 44, - "column": 19 + "line": 65, + "column": 53 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7429,24 +11759,23 @@ "postfix": false, "binop": null }, - "start": 1000, - "end": 1001, + "start": 1553, + "end": 1554, "loc": { "start": { - "line": 44, - "column": 20 + "line": 65, + "column": 53 }, "end": { - "line": 44, - "column": 21 + "line": 65, + "column": 54 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": "template", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -7456,23 +11785,23 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 1006, - "end": 1012, + "value": "/bower.json", + "start": 1554, + "end": 1565, "loc": { "start": { - "line": 45, - "column": 4 + "line": 65, + "column": 54 }, "end": { - "line": 45, - "column": 10 + "line": 65, + "column": 65 } } }, { "type": { - "label": "name", + "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -7482,23 +11811,22 @@ "postfix": false, "binop": null }, - "value": "JSON", - "start": 1013, - "end": 1017, + "start": 1565, + "end": 1566, "loc": { "start": { - "line": 45, - "column": 11 + "line": 65, + "column": 65 }, "end": { - "line": 45, - "column": 15 + "line": 65, + "column": 66 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -7506,27 +11834,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1017, - "end": 1018, + "start": 1566, + "end": 1567, "loc": { "start": { - "line": 45, - "column": 15 + "line": 65, + "column": 66 }, "end": { - "line": 45, - "column": 16 + "line": 65, + "column": 67 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7534,42 +11861,42 @@ "postfix": false, "binop": null }, - "value": "parse", - "start": 1018, - "end": 1023, + "start": 1567, + "end": 1568, "loc": { "start": { - "line": 45, - "column": 16 + "line": 65, + "column": 67 }, "end": { - "line": 45, - "column": 21 + "line": 65, + "column": 68 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1023, - "end": 1024, + "start": 1568, + "end": 1569, "loc": { "start": { - "line": 45, - "column": 21 + "line": 65, + "column": 68 }, "end": { - "line": 45, - "column": 22 + "line": 65, + "column": 69 } } }, @@ -7585,50 +11912,51 @@ "postfix": false, "binop": null }, - "value": "readFileSync", - "start": 1024, - "end": 1036, + "value": "name", + "start": 1569, + "end": 1573, "loc": { "start": { - "line": 45, - "column": 22 + "line": 65, + "column": 69 }, "end": { - "line": 45, - "column": 34 + "line": 65, + "column": 73 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1036, - "end": 1037, + "start": 1573, + "end": 1574, "loc": { "start": { - "line": 45, - "column": 34 + "line": 65, + "column": 73 }, "end": { - "line": 45, - "column": 35 + "line": 65, + "column": 74 } } }, { "type": { - "label": "`", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7636,22 +11964,23 @@ "postfix": false, "binop": null }, - "start": 1037, - "end": 1038, + "start": 1579, + "end": 1580, "loc": { "start": { - "line": 45, - "column": 35 + "line": 66, + "column": 4 }, "end": { - "line": 45, - "column": 36 + "line": 66, + "column": 5 } } }, { "type": { - "label": "template", + "label": "catch", + "keyword": "catch", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -7662,23 +11991,23 @@ "binop": null, "updateContext": null }, - "value": "", - "start": 1038, - "end": 1038, + "value": "catch", + "start": 1581, + "end": 1586, "loc": { "start": { - "line": 45, - "column": 36 + "line": 66, + "column": 6 }, "end": { - "line": 45, - "column": 36 + "line": 66, + "column": 11 } } }, { "type": { - "label": "${", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -7688,16 +12017,16 @@ "postfix": false, "binop": null }, - "start": 1038, - "end": 1040, + "start": 1586, + "end": 1587, "loc": { "start": { - "line": 45, - "column": 36 + "line": 66, + "column": 11 }, "end": { - "line": 45, - "column": 38 + "line": 66, + "column": 12 } } }, @@ -7713,23 +12042,23 @@ "postfix": false, "binop": null }, - "value": "process", - "start": 1040, - "end": 1047, + "value": "e", + "start": 1587, + "end": 1588, "loc": { "start": { - "line": 45, - "column": 38 + "line": 66, + "column": 12 }, "end": { - "line": 45, - "column": 45 + "line": 66, + "column": 13 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -7737,19 +12066,43 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 1047, - "end": 1048, + "start": 1588, + "end": 1589, "loc": { "start": { - "line": 45, - "column": 45 + "line": 66, + "column": 13 }, "end": { - "line": 45, - "column": 46 + "line": 66, + "column": 14 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1590, + "end": 1591, + "loc": { + "start": { + "line": 66, + "column": 15 + }, + "end": { + "line": 66, + "column": 16 } } }, @@ -7765,50 +12118,51 @@ "postfix": false, "binop": null }, - "value": "cwd", - "start": 1048, - "end": 1051, + "value": "logger", + "start": 1598, + "end": 1604, "loc": { "start": { - "line": 45, - "column": 46 + "line": 67, + "column": 6 }, "end": { - "line": 45, - "column": 49 + "line": 67, + "column": 12 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1051, - "end": 1052, + "start": 1604, + "end": 1605, "loc": { "start": { - "line": 45, - "column": 49 + "line": 67, + "column": 12 }, "end": { - "line": 45, - "column": 50 + "line": 67, + "column": 13 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7816,24 +12170,25 @@ "postfix": false, "binop": null }, - "start": 1052, - "end": 1053, + "value": "warn", + "start": 1605, + "end": 1609, "loc": { "start": { - "line": 45, - "column": 50 + "line": 67, + "column": 13 }, "end": { - "line": 45, - "column": 51 + "line": 67, + "column": 17 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7841,24 +12196,24 @@ "postfix": false, "binop": null }, - "start": 1053, - "end": 1054, + "start": 1609, + "end": 1610, "loc": { "start": { - "line": 45, - "column": 51 + "line": 67, + "column": 17 }, "end": { - "line": 45, - "column": 52 + "line": 67, + "column": 18 } } }, { "type": { - "label": "template", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7867,25 +12222,25 @@ "binop": null, "updateContext": null }, - "value": "/bower.json", - "start": 1054, - "end": 1065, + "value": "no bower.json found", + "start": 1610, + "end": 1631, "loc": { "start": { - "line": 45, - "column": 52 + "line": 67, + "column": 18 }, "end": { - "line": 45, - "column": 63 + "line": 67, + "column": 39 } } }, { "type": { - "label": "`", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -7893,47 +12248,48 @@ "postfix": false, "binop": null }, - "start": 1065, - "end": 1066, + "start": 1631, + "end": 1632, "loc": { "start": { - "line": 45, - "column": 63 + "line": 67, + "column": 39 }, "end": { - "line": 45, - "column": 64 + "line": 67, + "column": 40 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1066, - "end": 1067, + "start": 1632, + "end": 1633, "loc": { "start": { - "line": 45, - "column": 64 + "line": 67, + "column": 40 }, "end": { - "line": 45, - "column": 65 + "line": 67, + "column": 41 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -7943,23 +12299,24 @@ "postfix": false, "binop": null }, - "start": 1067, - "end": 1068, + "start": 1638, + "end": 1639, "loc": { "start": { - "line": 45, - "column": 65 + "line": 68, + "column": 4 }, "end": { - "line": 45, - "column": 66 + "line": 68, + "column": 5 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -7969,22 +12326,24 @@ "binop": null, "updateContext": null }, - "start": 1068, - "end": 1069, + "value": "return", + "start": 1644, + "end": 1650, "loc": { "start": { - "line": 45, - "column": 66 + "line": 69, + "column": 4 }, "end": { - "line": 45, - "column": 67 + "line": 69, + "column": 10 } } }, { "type": { - "label": "name", + "label": "null", + "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -7992,19 +12351,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "name", - "start": 1069, - "end": 1073, + "value": "null", + "start": 1651, + "end": 1655, "loc": { "start": { - "line": 45, - "column": 67 + "line": 69, + "column": 11 }, "end": { - "line": 45, - "column": 71 + "line": 69, + "column": 15 } } }, @@ -8021,16 +12381,16 @@ "binop": null, "updateContext": null }, - "start": 1073, - "end": 1074, + "start": 1655, + "end": 1656, "loc": { "start": { - "line": 45, - "column": 71 + "line": 69, + "column": 15 }, "end": { - "line": 45, - "column": 72 + "line": 69, + "column": 16 } } }, @@ -8046,15 +12406,15 @@ "postfix": false, "binop": null }, - "start": 1077, - "end": 1078, + "start": 1659, + "end": 1660, "loc": { "start": { - "line": 46, + "line": 70, "column": 2 }, "end": { - "line": 46, + "line": 70, "column": 3 } } @@ -8062,15 +12422,15 @@ { "type": "CommentBlock", "value": "*\n * @param {object} config - the config to be updated\n * @param {string} name - the name of the element, component, etc\n ", - "start": 1082, - "end": 1214, + "start": 1664, + "end": 1796, "loc": { "start": { - "line": 48, + "line": 72, "column": 2 }, "end": { - "line": 51, + "line": 75, "column": 5 } } @@ -8088,15 +12448,15 @@ "binop": null }, "value": "updateConfig", - "start": 1217, - "end": 1229, + "start": 1799, + "end": 1811, "loc": { "start": { - "line": 52, + "line": 76, "column": 2 }, "end": { - "line": 52, + "line": 76, "column": 14 } } @@ -8113,15 +12473,15 @@ "postfix": false, "binop": null }, - "start": 1229, - "end": 1230, + "start": 1811, + "end": 1812, "loc": { "start": { - "line": 52, + "line": 76, "column": 14 }, "end": { - "line": 52, + "line": 76, "column": 15 } } @@ -8139,15 +12499,15 @@ "binop": null }, "value": "config", - "start": 1230, - "end": 1236, + "start": 1812, + "end": 1818, "loc": { "start": { - "line": 52, + "line": 76, "column": 15 }, "end": { - "line": 52, + "line": 76, "column": 21 } } @@ -8165,15 +12525,15 @@ "binop": null, "updateContext": null }, - "start": 1236, - "end": 1237, + "start": 1818, + "end": 1819, "loc": { "start": { - "line": 52, + "line": 76, "column": 21 }, "end": { - "line": 52, + "line": 76, "column": 22 } } @@ -8191,15 +12551,15 @@ "binop": null }, "value": "name", - "start": 1238, - "end": 1242, + "start": 1820, + "end": 1824, "loc": { "start": { - "line": 52, + "line": 76, "column": 23 }, "end": { - "line": 52, + "line": 76, "column": 27 } } @@ -8216,15 +12576,15 @@ "postfix": false, "binop": null }, - "start": 1242, - "end": 1243, + "start": 1824, + "end": 1825, "loc": { "start": { - "line": 52, + "line": 76, "column": 27 }, "end": { - "line": 52, + "line": 76, "column": 28 } } @@ -8241,15 +12601,15 @@ "postfix": false, "binop": null }, - "start": 1244, - "end": 1245, + "start": 1826, + "end": 1827, "loc": { "start": { - "line": 52, + "line": 76, "column": 29 }, "end": { - "line": 52, + "line": 76, "column": 30 } } @@ -8267,15 +12627,15 @@ "binop": null }, "value": "config", - "start": 1250, - "end": 1256, + "start": 1832, + "end": 1838, "loc": { "start": { - "line": 53, + "line": 77, "column": 4 }, "end": { - "line": 53, + "line": 77, "column": 10 } } @@ -8293,15 +12653,15 @@ "binop": null, "updateContext": null }, - "start": 1256, - "end": 1257, + "start": 1838, + "end": 1839, "loc": { "start": { - "line": 53, + "line": 77, "column": 10 }, "end": { - "line": 53, + "line": 77, "column": 11 } } @@ -8319,15 +12679,15 @@ "binop": null }, "value": "name", - "start": 1257, - "end": 1261, + "start": 1839, + "end": 1843, "loc": { "start": { - "line": 53, + "line": 77, "column": 11 }, "end": { - "line": 53, + "line": 77, "column": 15 } } @@ -8346,15 +12706,15 @@ "updateContext": null }, "value": "=", - "start": 1262, - "end": 1263, + "start": 1844, + "end": 1845, "loc": { "start": { - "line": 53, + "line": 77, "column": 16 }, "end": { - "line": 53, + "line": 77, "column": 17 } } @@ -8372,15 +12732,15 @@ "binop": null }, "value": "config", - "start": 1264, - "end": 1270, + "start": 1846, + "end": 1852, "loc": { "start": { - "line": 53, + "line": 77, "column": 18 }, "end": { - "line": 53, + "line": 77, "column": 24 } } @@ -8398,15 +12758,15 @@ "binop": null, "updateContext": null }, - "start": 1270, - "end": 1271, + "start": 1852, + "end": 1853, "loc": { "start": { - "line": 53, + "line": 77, "column": 24 }, "end": { - "line": 53, + "line": 77, "column": 25 } } @@ -8424,15 +12784,15 @@ "binop": null }, "value": "name", - "start": 1271, - "end": 1275, + "start": 1853, + "end": 1857, "loc": { "start": { - "line": 53, + "line": 77, "column": 25 }, "end": { - "line": 53, + "line": 77, "column": 29 } } @@ -8451,15 +12811,15 @@ "updateContext": null }, "value": "||", - "start": 1276, - "end": 1278, + "start": 1858, + "end": 1860, "loc": { "start": { - "line": 53, + "line": 77, "column": 30 }, "end": { - "line": 53, + "line": 77, "column": 32 } } @@ -8477,15 +12837,15 @@ "binop": null }, "value": "name", - "start": 1279, - "end": 1283, + "start": 1861, + "end": 1865, "loc": { "start": { - "line": 53, + "line": 77, "column": 33 }, "end": { - "line": 53, + "line": 77, "column": 37 } } @@ -8503,15 +12863,15 @@ "binop": null, "updateContext": null }, - "start": 1283, - "end": 1284, + "start": 1865, + "end": 1866, "loc": { "start": { - "line": 53, + "line": 77, "column": 37 }, "end": { - "line": 53, + "line": 77, "column": 38 } } @@ -8529,15 +12889,15 @@ "binop": null }, "value": "config", - "start": 1289, - "end": 1295, + "start": 1871, + "end": 1877, "loc": { "start": { - "line": 54, + "line": 78, "column": 4 }, "end": { - "line": 54, + "line": 78, "column": 10 } } @@ -8555,15 +12915,15 @@ "binop": null, "updateContext": null }, - "start": 1295, - "end": 1296, + "start": 1877, + "end": 1878, "loc": { "start": { - "line": 54, + "line": 78, "column": 10 }, "end": { - "line": 54, + "line": 78, "column": 11 } } @@ -8581,15 +12941,15 @@ "binop": null }, "value": "format", - "start": 1296, - "end": 1302, + "start": 1878, + "end": 1884, "loc": { "start": { - "line": 54, + "line": 78, "column": 11 }, "end": { - "line": 54, + "line": 78, "column": 17 } } @@ -8608,15 +12968,15 @@ "updateContext": null }, "value": "=", - "start": 1303, - "end": 1304, + "start": 1885, + "end": 1886, "loc": { "start": { - "line": 54, + "line": 78, "column": 18 }, "end": { - "line": 54, + "line": 78, "column": 19 } } @@ -8634,15 +12994,15 @@ "binop": null }, "value": "config", - "start": 1305, - "end": 1311, + "start": 1887, + "end": 1893, "loc": { "start": { - "line": 54, + "line": 78, "column": 20 }, "end": { - "line": 54, + "line": 78, "column": 26 } } @@ -8660,15 +13020,15 @@ "binop": null, "updateContext": null }, - "start": 1311, - "end": 1312, + "start": 1893, + "end": 1894, "loc": { "start": { - "line": 54, + "line": 78, "column": 26 }, "end": { - "line": 54, + "line": 78, "column": 27 } } @@ -8686,15 +13046,15 @@ "binop": null }, "value": "format", - "start": 1312, - "end": 1318, + "start": 1894, + "end": 1900, "loc": { "start": { - "line": 54, + "line": 78, "column": 27 }, "end": { - "line": 54, + "line": 78, "column": 33 } } @@ -8713,15 +13073,15 @@ "updateContext": null }, "value": "||", - "start": 1319, - "end": 1321, + "start": 1901, + "end": 1903, "loc": { "start": { - "line": 54, + "line": 78, "column": 34 }, "end": { - "line": 54, + "line": 78, "column": 36 } } @@ -8740,15 +13100,15 @@ "updateContext": null }, "value": "es", - "start": 1322, - "end": 1326, + "start": 1904, + "end": 1908, "loc": { "start": { - "line": 54, + "line": 78, "column": 37 }, "end": { - "line": 54, + "line": 78, "column": 41 } } @@ -8766,15 +13126,15 @@ "binop": null, "updateContext": null }, - "start": 1326, - "end": 1327, + "start": 1908, + "end": 1909, "loc": { "start": { - "line": 54, + "line": 78, "column": 41 }, "end": { - "line": 54, + "line": 78, "column": 42 } } @@ -8792,15 +13152,15 @@ "binop": null }, "value": "config", - "start": 1332, - "end": 1338, + "start": 1914, + "end": 1920, "loc": { "start": { - "line": 55, + "line": 79, "column": 4 }, "end": { - "line": 55, + "line": 79, "column": 10 } } @@ -8818,15 +13178,15 @@ "binop": null, "updateContext": null }, - "start": 1338, - "end": 1339, + "start": 1920, + "end": 1921, "loc": { "start": { - "line": 55, + "line": 79, "column": 10 }, "end": { - "line": 55, + "line": 79, "column": 11 } } @@ -8844,15 +13204,15 @@ "binop": null }, "value": "sourceMap", - "start": 1339, - "end": 1348, + "start": 1921, + "end": 1930, "loc": { "start": { - "line": 55, + "line": 79, "column": 11 }, "end": { - "line": 55, + "line": 79, "column": 20 } } @@ -8871,15 +13231,15 @@ "updateContext": null }, "value": "=", - "start": 1349, - "end": 1350, + "start": 1931, + "end": 1932, "loc": { "start": { - "line": 55, + "line": 79, "column": 21 }, "end": { - "line": 55, + "line": 79, "column": 22 } } @@ -8897,15 +13257,15 @@ "binop": null }, "value": "config", - "start": 1351, - "end": 1357, + "start": 1933, + "end": 1939, "loc": { "start": { - "line": 55, + "line": 79, "column": 23 }, "end": { - "line": 55, + "line": 79, "column": 29 } } @@ -8923,15 +13283,15 @@ "binop": null, "updateContext": null }, - "start": 1357, - "end": 1358, + "start": 1939, + "end": 1940, "loc": { "start": { - "line": 55, + "line": 79, "column": 29 }, "end": { - "line": 55, + "line": 79, "column": 30 } } @@ -8949,15 +13309,15 @@ "binop": null }, "value": "sourceMap", - "start": 1358, - "end": 1367, + "start": 1940, + "end": 1949, "loc": { "start": { - "line": 55, + "line": 79, "column": 30 }, "end": { - "line": 55, + "line": 79, "column": 39 } } @@ -8976,15 +13336,15 @@ "updateContext": null }, "value": "||", - "start": 1368, - "end": 1370, + "start": 1950, + "end": 1952, "loc": { "start": { - "line": 55, + "line": 79, "column": 40 }, "end": { - "line": 55, + "line": 79, "column": 42 } } @@ -9004,15 +13364,15 @@ "updateContext": null }, "value": "true", - "start": 1371, - "end": 1375, + "start": 1953, + "end": 1957, "loc": { "start": { - "line": 55, + "line": 79, "column": 43 }, "end": { - "line": 55, + "line": 79, "column": 47 } } @@ -9030,15 +13390,15 @@ "binop": null, "updateContext": null }, - "start": 1375, - "end": 1376, + "start": 1957, + "end": 1958, "loc": { "start": { - "line": 55, + "line": 79, "column": 47 }, "end": { - "line": 55, + "line": 79, "column": 48 } } @@ -9056,15 +13416,15 @@ "binop": null }, "value": "config", - "start": 1381, - "end": 1387, + "start": 1963, + "end": 1969, "loc": { "start": { - "line": 56, + "line": 80, "column": 4 }, "end": { - "line": 56, + "line": 80, "column": 10 } } @@ -9082,15 +13442,15 @@ "binop": null, "updateContext": null }, - "start": 1387, - "end": 1388, + "start": 1969, + "end": 1970, "loc": { "start": { - "line": 56, + "line": 80, "column": 10 }, "end": { - "line": 56, + "line": 80, "column": 11 } } @@ -9108,15 +13468,15 @@ "binop": null }, "value": "server", - "start": 1388, - "end": 1394, + "start": 1970, + "end": 1976, "loc": { "start": { - "line": 56, + "line": 80, "column": 11 }, "end": { - "line": 56, + "line": 80, "column": 17 } } @@ -9135,15 +13495,15 @@ "updateContext": null }, "value": "=", - "start": 1395, - "end": 1396, + "start": 1977, + "end": 1978, "loc": { "start": { - "line": 56, + "line": 80, "column": 18 }, "end": { - "line": 56, + "line": 80, "column": 19 } } @@ -9161,15 +13521,15 @@ "binop": null }, "value": "config", - "start": 1397, - "end": 1403, + "start": 1979, + "end": 1985, "loc": { "start": { - "line": 56, + "line": 80, "column": 20 }, "end": { - "line": 56, + "line": 80, "column": 26 } } @@ -9187,15 +13547,15 @@ "binop": null, "updateContext": null }, - "start": 1403, - "end": 1404, + "start": 1985, + "end": 1986, "loc": { "start": { - "line": 56, + "line": 80, "column": 26 }, "end": { - "line": 56, + "line": 80, "column": 27 } } @@ -9213,15 +13573,15 @@ "binop": null }, "value": "server", - "start": 1404, - "end": 1410, + "start": 1986, + "end": 1992, "loc": { "start": { - "line": 56, + "line": 80, "column": 27 }, "end": { - "line": 56, + "line": 80, "column": 33 } } @@ -9240,15 +13600,15 @@ "updateContext": null }, "value": "||", - "start": 1411, - "end": 1413, + "start": 1993, + "end": 1995, "loc": { "start": { - "line": 56, + "line": 80, "column": 34 }, "end": { - "line": 56, + "line": 80, "column": 36 } } @@ -9265,15 +13625,15 @@ "postfix": false, "binop": null }, - "start": 1414, - "end": 1415, + "start": 1996, + "end": 1997, "loc": { "start": { - "line": 56, + "line": 80, "column": 37 }, "end": { - "line": 56, + "line": 80, "column": 38 } } @@ -9290,15 +13650,15 @@ "postfix": false, "binop": null }, - "start": 1415, - "end": 1416, + "start": 1997, + "end": 1998, "loc": { "start": { - "line": 56, + "line": 80, "column": 38 }, "end": { - "line": 56, + "line": 80, "column": 39 } } @@ -9316,15 +13676,15 @@ "binop": null, "updateContext": null }, - "start": 1416, - "end": 1417, + "start": 1998, + "end": 1999, "loc": { "start": { - "line": 56, + "line": 80, "column": 39 }, "end": { - "line": 56, + "line": 80, "column": 40 } } @@ -9332,15 +13692,15 @@ { "type": "CommentLine", "value": " TODO: create method for building atom app with atom-builder", - "start": 1422, - "end": 1484, + "start": 2004, + "end": 2066, "loc": { "start": { - "line": 57, + "line": 81, "column": 4 }, "end": { - "line": 57, + "line": 81, "column": 66 } } @@ -9348,15 +13708,15 @@ { "type": "CommentLine", "value": " TODO: implement element, app & atom-app config", - "start": 1489, - "end": 1538, + "start": 2071, + "end": 2120, "loc": { "start": { - "line": 58, + "line": 82, "column": 4 }, "end": { - "line": 58, + "line": 82, "column": 53 } } @@ -9364,15 +13724,15 @@ { "type": "CommentLine", "value": " config.server.element = config.element || {path: `${config.name}.js`};", - "start": 1543, - "end": 1616, + "start": 2125, + "end": 2198, "loc": { "start": { - "line": 59, + "line": 83, "column": 4 }, "end": { - "line": 59, + "line": 83, "column": 77 } } @@ -9380,15 +13740,15 @@ { "type": "CommentLine", "value": " config.server.app = config.app || {path: `${config.name}.js`};", - "start": 1621, - "end": 1686, + "start": 2203, + "end": 2268, "loc": { "start": { - "line": 60, + "line": 84, "column": 4 }, "end": { - "line": 60, + "line": 84, "column": 69 } } @@ -9406,15 +13766,15 @@ "binop": null }, "value": "global", - "start": 1691, - "end": 1697, + "start": 2273, + "end": 2279, "loc": { "start": { - "line": 61, + "line": 85, "column": 4 }, "end": { - "line": 61, + "line": 85, "column": 10 } } @@ -9432,15 +13792,15 @@ "binop": null, "updateContext": null }, - "start": 1697, - "end": 1698, + "start": 2279, + "end": 2280, "loc": { "start": { - "line": 61, + "line": 85, "column": 10 }, "end": { - "line": 61, + "line": 85, "column": 11 } } @@ -9458,15 +13818,15 @@ "binop": null }, "value": "config", - "start": 1698, - "end": 1704, + "start": 2280, + "end": 2286, "loc": { "start": { - "line": 61, + "line": 85, "column": 11 }, "end": { - "line": 61, + "line": 85, "column": 17 } } @@ -9485,15 +13845,15 @@ "updateContext": null }, "value": "=", - "start": 1705, - "end": 1706, + "start": 2287, + "end": 2288, "loc": { "start": { - "line": 61, + "line": 85, "column": 18 }, "end": { - "line": 61, + "line": 85, "column": 19 } } @@ -9511,15 +13871,15 @@ "binop": null }, "value": "config", - "start": 1707, - "end": 1713, + "start": 2289, + "end": 2295, "loc": { "start": { - "line": 61, + "line": 85, "column": 20 }, "end": { - "line": 61, + "line": 85, "column": 26 } } @@ -9537,15 +13897,15 @@ "binop": null, "updateContext": null }, - "start": 1713, - "end": 1714, + "start": 2295, + "end": 2296, "loc": { "start": { - "line": 61, + "line": 85, "column": 26 }, "end": { - "line": 61, + "line": 85, "column": 27 } } @@ -9565,15 +13925,15 @@ "updateContext": null }, "value": "return", - "start": 1719, - "end": 1725, + "start": 2301, + "end": 2307, "loc": { "start": { - "line": 62, + "line": 86, "column": 4 }, "end": { - "line": 62, + "line": 86, "column": 10 } } @@ -9591,15 +13951,15 @@ "binop": null }, "value": "config", - "start": 1726, - "end": 1732, + "start": 2308, + "end": 2314, "loc": { "start": { - "line": 62, + "line": 86, "column": 11 }, "end": { - "line": 62, + "line": 86, "column": 17 } } @@ -9617,15 +13977,15 @@ "binop": null, "updateContext": null }, - "start": 1732, - "end": 1733, + "start": 2314, + "end": 2315, "loc": { "start": { - "line": 62, + "line": 86, "column": 17 }, "end": { - "line": 62, + "line": 86, "column": 18 } } @@ -9642,15 +14002,15 @@ "postfix": false, "binop": null }, - "start": 1736, - "end": 1737, + "start": 2318, + "end": 2319, "loc": { "start": { - "line": 63, + "line": 87, "column": 2 }, "end": { - "line": 63, + "line": 87, "column": 3 } } @@ -9667,15 +14027,15 @@ "postfix": false, "binop": null }, - "start": 1738, - "end": 1739, + "start": 2320, + "end": 2321, "loc": { "start": { - "line": 64, + "line": 88, "column": 0 }, "end": { - "line": 64, + "line": 88, "column": 1 } } @@ -9693,15 +14053,15 @@ "binop": null, "updateContext": null }, - "start": 1740, - "end": 1740, + "start": 2322, + "end": 2322, "loc": { "start": { - "line": 65, + "line": 89, "column": 0 }, "end": { - "line": 65, + "line": 89, "column": 0 } } diff --git a/docs/class/src/config.js~Config.html b/docs/class/src/config.js~Config.html index 2747dc1..a8793cb 100644 --- a/docs/class/src/config.js~Config.html +++ b/docs/class/src/config.js~Config.html @@ -43,13 +43,13 @@
-
import Config from 'backed-cli/src/config.js'
+
import Config from 'backed-cli/src/config.js'
public class - | source + | source
@@ -281,7 +281,7 @@

- source + source

@@ -328,7 +328,7 @@

- source + source

@@ -348,7 +348,7 @@

Return:

string -

name from 'package.json'

+

name from 'bower.json'

@@ -384,7 +384,7 @@

- source + source

@@ -440,7 +440,7 @@

- source + source

@@ -496,7 +496,7 @@

- source + source

@@ -571,7 +571,7 @@

- source + source

diff --git a/docs/coverage.json b/docs/coverage.json index a6c3b38..df21942 100644 --- a/docs/coverage.json +++ b/docs/coverage.json @@ -17,8 +17,8 @@ "expectCount": 7, "actualCount": 5, "undocumentLines": [ - 4, - 5 + 5, + 6 ] }, "src/logger.js": { diff --git a/docs/dump.json b/docs/dump.json index a13730d..84ac24f 100644 --- a/docs/dump.json +++ b/docs/dump.json @@ -3,7 +3,7 @@ "__docId__": 0, "kind": "file", "name": "src/backed.js", - "content": "process.title = 'backed';\r\nconst commander = require('commander');\r\nconst {version} = require('./../package.json');\r\n\r\nimport Builder from './builder.js';\r\nimport Server from './server.js';\r\nimport Config from './config.js';\r\nimport Utils from './utils.js';\r\nconst config = new Config();\r\nconst utils = new Utils();\r\n\r\nconst hasConfig = () => {\r\n if (global.config === undefined) {\r\n return false;\r\n }\r\n return true;\r\n};\r\n\r\ncommander\r\n .version(version)\r\n .option('-b, --build', 'build your app/component')\r\n .option('-s, --serve', 'serve your app/component')\r\n .option('-c, --copy', 'copy files from your app/component src folder to it distribution folder')\r\n .option('-d, --debug', 'show all warnings')\r\n .parse(process.argv);\r\n\r\nlet build = commander.build;\r\nlet copy = commander.build || commander.copy;\r\nlet serve = commander.serve;\r\nlet debug = commander.debug;\r\n\r\nif (hasConfig()) {\r\n global.debug = debug || config.debug;\r\n if (build) {\r\n const builder = new Builder(config);\r\n builder.build(config);\r\n }\r\n if (copy) {\r\n utils.copySources(config.sources);\r\n }\r\n if (serve) {\r\n const server = new Server();\r\n server.serve(config.server);\r\n }\r\n}\r\n", + "content": "process.title = 'backed';\nconst commander = require('commander');\nconst {version} = require('./../package.json');\n\nimport Builder from './builder.js';\nimport Server from './server.js';\nimport Config from './config.js';\nimport Utils from './utils.js';\nconst config = new Config();\nconst utils = new Utils();\n\nconst hasConfig = () => {\n if (global.config === undefined) {\n return false;\n }\n return true;\n};\n\ncommander\n .version(version)\n .option('-b, --build', 'build your app/component')\n .option('-s, --serve', 'serve your app/component')\n .option('-c, --copy', 'copy files from your app/component src folder to it distribution folder')\n .option('-d, --debug', 'show all warnings')\n .parse(process.argv);\n\nlet build = commander.build;\nlet copy = commander.build || commander.copy;\nlet serve = commander.serve;\nlet debug = commander.debug;\n\nif (hasConfig()) {\n global.debug = debug || config.debug;\n if (build) {\n const builder = new Builder(config);\n builder.build(config);\n }\n if (copy) {\n utils.copySources(config.sources);\n }\n if (serve) {\n const server = new Server();\n server.serve(config.server);\n }\n}\n", "static": true, "longname": "src/backed.js", "access": null, @@ -551,7 +551,7 @@ "__docId__": 19, "kind": "file", "name": "src/config.js", - "content": "'use strict';\nconst {readFileSync} = require('fs');\n\nexport default class Config {\n constructor() {\n let config = this.importConfig();\n const name = this.importPackageName() || this.importBowerName();\n return this.updateConfig(config, name);\n }\n\n /**\n * wrapper around cjs require\n * try's to read file from current working directory\n * @param {string} path path to file/module\n * @return {object|array|function|class} module or file\n */\n require(path) {\n let root = process.cwd();\n root += `/${path}`;\n try {\n return require(root);\n } catch (error) {\n return console.warn(error);\n }\n }\n\n /**\n * @return {object} value of 'backed.json'\n */\n importConfig() {\n return this.require('backed.json');\n }\n\n /**\n * @return {string} name from 'package.json'\n */\n importPackageName() {\n return JSON.parse(readFileSync(`${process.cwd()}/package.json`)).name;\n }\n\n /**\n * @return {string} name from 'package.json'\n */\n importBowerName() {\n return JSON.parse(readFileSync(`${process.cwd()}/bower.json`)).name;\n }\n\n /**\n * @param {object} config - the config to be updated\n * @param {string} name - the name of the element, component, etc\n */\n updateConfig(config, name) {\n config.name = config.name || name;\n config.format = config.format || 'es';\n config.sourceMap = config.sourceMap || true;\n config.server = config.server || {};\n // TODO: create method for building atom app with atom-builder\n // TODO: implement element, app & atom-app config\n // config.server.element = config.element || {path: `${config.name}.js`};\n // config.server.app = config.app || {path: `${config.name}.js`};\n global.config = config;\n return config;\n }\n}\n", + "content": "'use strict';\nconst {readFileSync} = require('fs');\nimport logger from './logger.js';\n\nexport default class Config {\n constructor() {\n this.importConfig().then(config => {\n const name = this.importPackageName() || this.importBowerName();\n return this.updateConfig(config, name);\n });\n }\n\n /**\n * wrapper around cjs require\n * try's to read file from current working directory\n * @param {string} path path to file/module\n * @return {object|array|function|class} module or file\n */\n require(path) {\n return new Promise((resolve, reject) => {\n let root = process.cwd();\n root += `/${path}`;\n try {\n let required = require(root);\n resolve(required);\n } catch (error) {\n reject(error);\n }\n });\n }\n\n /**\n * @return {object} value of 'backed.json'\n */\n importConfig() {\n return new Promise((resolve, reject) => {\n this.require('backed.json').then(config => {\n resolve(config);\n }).catch(() => {\n logger.warn('backed.json:: not found, using default options.');\n resolve({\n name: 'your-element'\n });\n });\n })\n }\n\n /**\n * @return {string} name from 'package.json'\n */\n importPackageName() {\n try {\n return JSON.parse(readFileSync(`${process.cwd()}/package.json`)).name;\n } catch(e) {\n logger.warn('no package.json found');\n }\n return null;\n }\n\n /**\n * @return {string} name from 'bower.json'\n */\n importBowerName() {\n try {\n return JSON.parse(readFileSync(`${process.cwd()}/bower.json`)).name;\n } catch(e) {\n logger.warn('no bower.json found');\n }\n return null;\n }\n\n /**\n * @param {object} config - the config to be updated\n * @param {string} name - the name of the element, component, etc\n */\n updateConfig(config, name) {\n config.name = config.name || name;\n config.format = config.format || 'es';\n config.sourceMap = config.sourceMap || true;\n config.server = config.server || {};\n // TODO: create method for building atom app with atom-builder\n // TODO: implement element, app & atom-app config\n // config.server.element = config.element || {path: `${config.name}.js`};\n // config.server.app = config.app || {path: `${config.name}.js`};\n global.config = config;\n return config;\n }\n}\n", "static": true, "longname": "src/config.js", "access": null, @@ -596,7 +596,7 @@ "importPath": "backed-cli/src/config.js", "importStyle": "Config", "description": null, - "lineNumber": 4, + "lineNumber": 5, "undocument": true, "unknown": [ { @@ -617,7 +617,7 @@ "longname": "src/config.js~Config#constructor", "access": null, "description": null, - "lineNumber": 5, + "lineNumber": 6, "undocument": true, "unknown": [ { @@ -638,7 +638,7 @@ "longname": "src/config.js~Config#require", "access": null, "description": "wrapper around cjs require\ntry's to read file from current working directory", - "lineNumber": 17, + "lineNumber": 19, "params": [ { "nullable": null, @@ -674,7 +674,7 @@ "longname": "src/config.js~Config#importConfig", "access": null, "description": "", - "lineNumber": 30, + "lineNumber": 35, "params": [], "return": { "nullable": null, @@ -696,7 +696,7 @@ "longname": "src/config.js~Config#importPackageName", "access": null, "description": "", - "lineNumber": 37, + "lineNumber": 51, "params": [], "return": { "nullable": null, @@ -718,7 +718,7 @@ "longname": "src/config.js~Config#importBowerName", "access": null, "description": "", - "lineNumber": 44, + "lineNumber": 63, "params": [], "return": { "nullable": null, @@ -726,7 +726,7 @@ "string" ], "spread": false, - "description": "name from 'package.json'" + "description": "name from 'bower.json'" } }, { @@ -740,7 +740,7 @@ "longname": "src/config.js~Config#updateConfig", "access": null, "description": "", - "lineNumber": 52, + "lineNumber": 76, "params": [ { "nullable": null, diff --git a/docs/file/src/config.js.html b/docs/file/src/config.js.html index c8408bc..da99432 100644 --- a/docs/file/src/config.js.html +++ b/docs/file/src/config.js.html @@ -45,12 +45,14 @@

src/config.js

'use strict';
 const {readFileSync} = require('fs');
+import logger from './logger.js';
 
 export default class Config {
   constructor() {
-    let config = this.importConfig();
-    const name = this.importPackageName() || this.importBowerName();
-    return this.updateConfig(config, name);
+    this.importConfig().then(config => {
+      const name = this.importPackageName() || this.importBowerName();
+      return this.updateConfig(config, name);
+    });
   }
 
   /**
@@ -60,34 +62,56 @@
    * @return {object|array|function|class} module or file
    */
   require(path) {
-    let root = process.cwd();
-    root += `/${path}`;
-    try {
-      return require(root);
-    } catch (error) {
-      return console.warn(error);
-    }
+    return new Promise((resolve, reject) => {
+      let root = process.cwd();
+      root += `/${path}`;
+      try {
+        let required = require(root);
+        resolve(required);
+      } catch (error) {
+        reject(error);
+      }
+    });
   }
 
   /**
    * @return {object} value of 'backed.json'
    */
   importConfig() {
-    return this.require('backed.json');
+    return new Promise((resolve, reject) => {
+      this.require('backed.json').then(config => {
+        resolve(config);
+      }).catch(() => {
+        logger.warn('backed.json:: not found, using default options.');
+        resolve({
+          name: 'your-element'
+        });
+      });
+    })
   }
 
   /**
    * @return {string} name from 'package.json'
    */
   importPackageName() {
-    return JSON.parse(readFileSync(`${process.cwd()}/package.json`)).name;
+    try {
+      return JSON.parse(readFileSync(`${process.cwd()}/package.json`)).name;
+    } catch(e) {
+      logger.warn('no package.json found');
+    }
+    return null;
   }
 
   /**
-   * @return {string} name from 'package.json'
+   * @return {string} name from 'bower.json'
    */
   importBowerName() {
-    return JSON.parse(readFileSync(`${process.cwd()}/bower.json`)).name;
+    try {
+      return JSON.parse(readFileSync(`${process.cwd()}/bower.json`)).name;
+    } catch(e) {
+      logger.warn('no bower.json found');
+    }
+    return null;
   }
 
   /**
diff --git a/docs/package.json b/docs/package.json
index 39954c7..56156dd 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -1,6 +1,6 @@
 {
   "name": "backed-cli",
-  "version": "0.1.12",
+  "version": "0.1.13",
   "description": "The official command line interface for Backed",
   "homepage": "https://github.com/vandeurenglenn/backed-cli",
   "author": {
diff --git a/docs/source.html b/docs/source.html
index a8fad4e..a9039e9 100644
--- a/docs/source.html
+++ b/docs/source.html
@@ -61,9 +61,9 @@
       src/backed.js
       -
       -
-      1187 byte
+      1142 byte
       45
-      2017-02-03 22:04:39 (UTC)
+      2017-03-04 21:00:40 (UTC)
     
 
       src/builder.js
@@ -71,15 +71,15 @@
       20 %1/5
       3808 byte
       115
-      2017-02-03 23:34:01 (UTC)
+      2017-03-04 21:00:40 (UTC)
     
 
-      src/config.js
+      src/config.js
       Config
       71 %5/7
-      1740 byte
-      64
-      2017-02-03 23:30:44 (UTC)
+      2322 byte
+      88
+      2017-03-04 21:50:04 (UTC)
     
 
       src/logger.js
@@ -88,7 +88,7 @@
       0 %0/6
       416 byte
       25
-      2017-02-03 01:02:07 (UTC)
+      2017-03-04 21:00:40 (UTC)
     
 
       src/server.js
@@ -96,7 +96,7 @@
       66 %2/3
       3731 byte
       116
-      2017-03-07 19:16:04 (UTC)
+      2017-03-04 21:00:40 (UTC)
     
 
       src/utils.js
@@ -104,7 +104,7 @@
       80 %4/5
       2575 byte
       101
-      2017-03-01 23:42:04 (UTC)
+      2017-03-04 21:00:40 (UTC)
     
 
 
diff --git a/package.json b/package.json
index 39954c7..56156dd 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "backed-cli",
-  "version": "0.1.12",
+  "version": "0.1.13",
   "description": "The official command line interface for Backed",
   "homepage": "https://github.com/vandeurenglenn/backed-cli",
   "author": {
diff --git a/src/config.js b/src/config.js
index d4dda05..f5f64ac 100644
--- a/src/config.js
+++ b/src/config.js
@@ -1,11 +1,13 @@
 'use strict';
 const {readFileSync} = require('fs');
+import logger from './logger.js';
 
 export default class Config {
   constructor() {
-    let config = this.importConfig();
-    const name = this.importPackageName() || this.importBowerName();
-    return this.updateConfig(config, name);
+    this.importConfig().then(config => {
+      const name = this.importPackageName() || this.importBowerName();
+      return this.updateConfig(config, name);
+    });
   }
 
   /**
@@ -15,34 +17,56 @@ export default class Config {
    * @return {object|array|function|class} module or file
    */
   require(path) {
-    let root = process.cwd();
-    root += `/${path}`;
-    try {
-      return require(root);
-    } catch (error) {
-      return console.warn(error);
-    }
+    return new Promise((resolve, reject) => {
+      let root = process.cwd();
+      root += `/${path}`;
+      try {
+        let required = require(root);
+        resolve(required);
+      } catch (error) {
+        reject(error);
+      }
+    });
   }
 
   /**
    * @return {object} value of 'backed.json'
    */
   importConfig() {
-    return this.require('backed.json');
+    return new Promise((resolve, reject) => {
+      this.require('backed.json').then(config => {
+        resolve(config);
+      }).catch(() => {
+        logger.warn('backed.json:: not found, using default options.');
+        resolve({
+          name: 'your-element'
+        });
+      });
+    })
   }
 
   /**
    * @return {string} name from 'package.json'
    */
   importPackageName() {
-    return JSON.parse(readFileSync(`${process.cwd()}/package.json`)).name;
+    try {
+      return JSON.parse(readFileSync(`${process.cwd()}/package.json`)).name;
+    } catch(e) {
+      logger.warn('no package.json found');
+    }
+    return null;
   }
 
   /**
-   * @return {string} name from 'package.json'
+   * @return {string} name from 'bower.json'
    */
   importBowerName() {
-    return JSON.parse(readFileSync(`${process.cwd()}/bower.json`)).name;
+    try {
+      return JSON.parse(readFileSync(`${process.cwd()}/bower.json`)).name;
+    } catch(e) {
+      logger.warn('no bower.json found');
+    }
+    return null;
   }
 
   /**
diff --git a/test/index.js b/test/index.js
index d8055fe..6f6a173 100644
--- a/test/index.js
+++ b/test/index.js
@@ -1,9 +1,8 @@
 'use strict';
 
 var assert = require('assert');
-var backed = require('../lib');
 
-describe('backed', function () {
+describe('backed cli', function () {
   it('should have unit test!', function () {
     assert(false, 'we expected this package author to add actual unit tests.');
   });