roc
Version:
Build modern web applications easily
2,130 lines (2,129 loc) • 1.11 MB
JSON
{
"type": "Program",
"start": 0,
"end": 16182,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 482,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 37,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 37
}
},
"specifiers": [],
"source": {
"type": "Literal",
"start": 7,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 36
}
},
"value": "source-map-support/register",
"rawValue": "source-map-support/register",
"raw": "'source-map-support/register'"
}
},
{
"type": "ImportDeclaration",
"start": 39,
"end": 65,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 46,
"end": 51,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 46,
"end": 51,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 12
}
},
"name": "chalk"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 57,
"end": 64,
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 3,
"column": 25
}
},
"value": "chalk",
"rawValue": "chalk",
"raw": "'chalk'"
}
},
{
"type": "ImportDeclaration",
"start": 66,
"end": 143,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 77
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 75,
"end": 88,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 22
}
},
"imported": {
"type": "Identifier",
"start": 75,
"end": 88,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 22
}
},
"name": "isPlainObject"
},
"local": {
"type": "Identifier",
"start": 75,
"end": 88,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 22
}
},
"name": "isPlainObject"
}
},
{
"type": "ImportSpecifier",
"start": 90,
"end": 99,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 33
}
},
"imported": {
"type": "Identifier",
"start": 90,
"end": 99,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 33
}
},
"name": "isBoolean"
},
"local": {
"type": "Identifier",
"start": 90,
"end": 99,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 33
}
},
"name": "isBoolean"
}
},
{
"type": "ImportSpecifier",
"start": 101,
"end": 109,
"loc": {
"start": {
"line": 4,
"column": 35
},
"end": {
"line": 4,
"column": 43
}
},
"imported": {
"type": "Identifier",
"start": 101,
"end": 109,
"loc": {
"start": {
"line": 4,
"column": 35
},
"end": {
"line": 4,
"column": 43
}
},
"name": "isString"
},
"local": {
"type": "Identifier",
"start": 101,
"end": 109,
"loc": {
"start": {
"line": 4,
"column": 35
},
"end": {
"line": 4,
"column": 43
}
},
"name": "isString"
}
},
{
"type": "ImportSpecifier",
"start": 111,
"end": 114,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 4,
"column": 48
}
},
"imported": {
"type": "Identifier",
"start": 111,
"end": 114,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 4,
"column": 48
}
},
"name": "set"
},
"local": {
"type": "Identifier",
"start": 111,
"end": 114,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 4,
"column": 48
}
},
"name": "set"
}
},
{
"type": "ImportSpecifier",
"start": 116,
"end": 126,
"loc": {
"start": {
"line": 4,
"column": 50
},
"end": {
"line": 4,
"column": 60
}
},
"imported": {
"type": "Identifier",
"start": 116,
"end": 126,
"loc": {
"start": {
"line": 4,
"column": 50
},
"end": {
"line": 4,
"column": 60
}
},
"name": "difference"
},
"local": {
"type": "Identifier",
"start": 116,
"end": 126,
"loc": {
"start": {
"line": 4,
"column": 50
},
"end": {
"line": 4,
"column": 60
}
},
"name": "difference"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 134,
"end": 142,
"loc": {
"start": {
"line": 4,
"column": 68
},
"end": {
"line": 4,
"column": 76
}
},
"value": "lodash",
"rawValue": "lodash",
"raw": "'lodash'"
}
},
{
"type": "ImportDeclaration",
"start": 144,
"end": 174,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 30
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 151,
"end": 158,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 151,
"end": 158,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 14
}
},
"name": "resolve"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 164,
"end": 173,
"loc": {
"start": {
"line": 5,
"column": 20
},
"end": {
"line": 5,
"column": 29
}
},
"value": "resolve",
"rawValue": "resolve",
"raw": "'resolve'"
}
},
{
"type": "ImportDeclaration",
"start": 175,
"end": 201,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 182,
"end": 187,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 182,
"end": 187,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 12
}
},
"name": "leven"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 193,
"end": 200,
"loc": {
"start": {
"line": 6,
"column": 18
},
"end": {
"line": 6,
"column": 25
}
},
"value": "leven",
"rawValue": "leven",
"raw": "'leven'"
}
},
{
"type": "ImportDeclaration",
"start": 202,
"end": 243,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 41
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 209,
"end": 221,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 19
}
},
"local": {
"type": "Identifier",
"start": 209,
"end": 221,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 19
}
},
"name": "trimNewlines"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 227,
"end": 242,
"loc": {
"start": {
"line": 7,
"column": 25
},
"end": {
"line": 7,
"column": 40
}
},
"value": "trim-newlines",
"rawValue": "trim-newlines",
"raw": "'trim-newlines'"
}
},
{
"type": "ImportDeclaration",
"start": 244,
"end": 272,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 28
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 251,
"end": 257,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 251,
"end": 257,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 13
}
},
"name": "redent"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 263,
"end": 271,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 27
}
},
"value": "redent",
"rawValue": "redent",
"raw": "'redent'"
}
},
{
"type": "ImportDeclaration",
"start": 274,
"end": 315,
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 10,
"column": 41
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 283,
"end": 288,
"loc": {
"start": {
"line": 10,
"column": 9
},
"end": {
"line": 10,
"column": 14
}
},
"imported": {
"type": "Identifier",
"start": 283,
"end": 288,
"loc": {
"start": {
"line": 10,
"column": 9
},
"end": {
"line": 10,
"column": 14
}
},
"name": "merge"
},
"local": {
"type": "Identifier",
"start": 283,
"end": 288,
"loc": {
"start": {
"line": 10,
"column": 9
},
"end": {
"line": 10,
"column": 14
}
},
"name": "merge"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 296,
"end": 314,
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 40
}
},
"value": "../configuration",
"rawValue": "../configuration",
"raw": "'../configuration'"
}
},
{
"type": "ImportDeclaration",
"start": 316,
"end": 399,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 83
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 323,
"end": 347,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 11,
"column": 31
}
},
"local": {
"type": "Identifier",
"start": 323,
"end": 347,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 11,
"column": 31
}
},
"name": "buildDocumentationObject"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 353,
"end": 398,
"loc": {
"start": {
"line": 11,
"column": 37
},
"end": {
"line": 11,
"column": 82
}
},
"value": "../documentation/build-documentation-object",
"rawValue": "../documentation/build-documentation-object",
"raw": "'../documentation/build-documentation-object'"
}
},
{
"type": "ImportDeclaration",
"start": 400,
"end": 460,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 12,
"column": 60
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 407,
"end": 420,
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 12,
"column": 20
}
},
"local": {
"type": "Identifier",
"start": 407,
"end": 420,
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 12,
"column": 20
}
},
"name": "generateTable"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 426,
"end": 459,
"loc": {
"start": {
"line": 12,
"column": 26
},
"end": {
"line": 12,
"column": 59
}
},
"value": "../documentation/generate-table",
"rawValue": "../documentation/generate-table",
"raw": "'../documentation/generate-table'"
}
},
{
"type": "ImportDeclaration",
"start": 461,
"end": 520,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 59
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 470,
"end": 485,
"loc": {
"start": {
"line": 13,
"column": 9
},
"end": {
"line": 13,
"column": 24
}
},
"imported": {
"type": "Identifier",
"start": 470,
"end": 485,
"loc": {
"start": {
"line": 13,
"column": 9
},
"end": {
"line": 13,
"column": 24
}
},
"name": "getDefaultValue"
},
"local": {
"type": "Identifier",
"start": 470,
"end": 485,
"loc": {
"start": {
"line": 13,
"column": 9
},
"end": {
"line": 13,
"column": 24
}
},
"name": "getDefaultValue"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 493,
"end": 519,
"loc": {
"start": {
"line": 13,
"column": 32
},
"end": {
"line": 13,
"column": 58
}
},
"value": "../documentation/helpers",
"rawValue": "../documentation/helpers",
"raw": "'../documentation/helpers'"
}
},
{
"type": "ImportDeclaration",
"start": 521,
"end": 597,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 14,
"column": 76
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 530,
"end": 540,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 19
}
},
"imported": {
"type": "Identifier",
"start": 530,
"end": 540,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 19
}
},
"name": "fileExists"
},
"local": {
"type": "Identifier",
"start": 530,
"end": 540,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 19
}
},
"name": "fileExists"
}
},
{
"type": "ImportSpecifier",
"start": 542,
"end": 560,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 39
}
},
"imported": {
"type": "Identifier",
"start": 542,
"end": 560,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 39
}
},
"name": "getRocDependencies"
},
"local": {
"type": "Identifier",
"start": 542,
"end": 560,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 39
}
},
"name": "getRocDependencies"
}
},
{
"type": "ImportSpecifier",
"start": 562,
"end": 576,
"loc": {
"start": {
"line": 14,
"column": 41
},
"end": {
"line": 14,
"column": 55
}
},
"imported": {
"type": "Identifier",
"start": 562,
"end": 576,
"loc": {
"start": {
"line": 14,
"column": 41
},
"end": {
"line": 14,
"column": 55
}
},
"name": "getPackageJson"
},
"local": {
"type": "Identifier",
"start": 562,
"end": 576,
"loc": {
"start": {
"line": 14,
"column": 41
},
"end": {
"line": 14,
"column": 55
}
},
"name": "getPackageJson"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 584,
"end": 596,
"loc": {
"start": {
"line": 14,
"column": 63
},
"end": {
"line": 14,
"column": 75
}
},
"value": "../helpers",
"rawValue": "../helpers",
"raw": "'../helpers'"
}
},
{
"type": "ImportDeclaration",
"start": 598,
"end": 641,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 15,
"column": 43
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 607,
"end": 617,
"loc": {
"start": {
"line": 15,
"column": 9
},
"end": {
"line": 15,
"column": 19
}
},
"imported": {
"type": "Identifier",
"start": 607,
"end": 617,
"loc": {
"start": {
"line": 15,
"column": 9
},
"end": {
"line": 15,
"column": 19
}
},
"name": "throwError"
},
"local": {
"type": "Identifier",
"start": 607,
"end": 617,
"loc": {
"start": {
"line": 15,
"column": 9
},
"end": {
"line": 15,
"column": 19
}
},
"name": "throwError"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 625,
"end": 640,
"loc": {
"start": {
"line": 15,
"column": 27
},
"end": {
"line": 15,
"column": 42
}
},
"value": "../validation",
"rawValue": "../validation",
"raw": "'../validation'"
}
},
{
"type": "ImportDeclaration",
"start": 642,
"end": 682,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 16,
"column": 40
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 651,
"end": 658,
"loc": {
"start": {
"line": 16,
"column": 9
},
"end": {
"line": 16,
"column": 16
}
},
"imported": {
"type": "Identifier",
"start": 651,
"end": 658,
"loc": {
"start": {
"line": 16,
"column": 9
},
"end": {
"line": 16,
"column": 16
}
},
"name": "isValid"
},
"local": {
"type": "Identifier",
"start": 651,
"end": 658,
"loc": {
"start": {
"line": 16,
"column": 9
},
"end": {
"line": 16,
"column": 16
}
},
"name": "isValid"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 666,
"end": 681,
"loc": {
"start": {
"line": 16,
"column": 24
},
"end": {
"line": 16,
"column": 39
}
},
"value": "../validation",
"rawValue": "../validation",
"raw": "'../validation'"
}
},
{
"type": "ImportDeclaration",
"start": 683,
"end": 768,
"loc": {
"start": {
"line": 17,
"column": 0
},
"end": {
"line": 17,
"column": 85
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 692,
"end": 699,
"loc": {
"start": {
"line": 17,
"column": 9
},
"end": {
"line": 17,
"column": 16
}
},
"imported": {
"type": "Identifier",
"start": 692,
"end": 699,
"loc": {
"start": {
"line": 17,
"column": 9
},
"end": {
"line": 17,
"column": 16
}
},
"name": "warning"
},
"local": {
"type": "Identifier",
"start": 692,
"end": 699,
"loc": {
"start": {
"line": 17,
"column": 9
},
"end": {
"line": 17,
"column": 16
}
},
"name": "warning"
}
},
{
"type": "ImportSpecifier",
"start": 701,
"end": 715,
"loc": {
"start": {
"line": 17,
"column": 18
},
"end": {
"line": 17,
"column": 32
}
},
"imported": {
"type": "Identifier",
"start": 701,
"end": 715,
"loc": {
"start": {
"line": 17,
"column": 18
},
"end": {
"line": 17,
"column": 32
}
},
"name": "importantLabel"
},
"local": {
"type": "Identifier",
"start": 701,
"end": 715,
"loc": {
"start": {
"line": 17,
"column": 18
},
"end": {
"line": 17,
"column": 32
}
},
"name": "importantLabel"
}
},
{
"type": "ImportSpecifier",
"start": 717,
"end": 727,
"loc": {
"start": {
"line": 17,
"column": 34
},
"end": {
"line": 17,
"column": 44
}
},
"imported": {
"type": "Identifier",
"start": 717,
"end": 727,
"loc": {
"start": {
"line": 17,
"column": 34
},
"end": {
"line": 17,
"column": 44
}
},
"name": "errorLabel"
},
"local": {
"type": "Identifier",
"start": 717,
"end": 727,
"loc": {
"start": {
"line": 17,
"column": 34
},
"end": {
"line": 17,
"column": 44
}
},
"name": "errorLabel"
}
},
{
"type": "ImportSpecifier",
"start": 729,
"end": 741,
"loc": {
"start": {
"line": 17,
"column": 46
},
"end": {
"line": 17,
"column": 58
}
},
"imported": {
"type": "Identifier",
"start": 729,
"end": 741,
"loc": {
"start": {
"line": 17,
"column": 46
},
"end": {
"line": 17,
"column": 58
}
},
"name": "warningLabel"
},
"local": {
"type": "Identifier",
"start": 729,
"end": 741,
"loc": {
"start": {
"line": 17,
"column": 46
},
"end": {
"line": 17,
"column": 58
}
},
"name": "warningLabel"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 749,
"end": 767,
"loc": {
"start": {
"line": 17,
"column": 66
},
"end": {
"line": 17,
"column": 84
}
},
"value": "../helpers/style",
"rawValue": "../helpers/style",
"raw": "'../helpers/style'"
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * Builds the complete configuration objects.\n *\n * @param {boolean} debug - If debug mode should be enabled, logs some extra information.\n * @param {rocConfig} config - The base configuration.\n * @param {rocMetaConfig} meta - The base meta configuration.\n * @param {rocConfig} newConfig - The new configuration to base the merge on.\n * @param {rocMetaConfig} newMeta - The new meta configuration to base the merge on.\n * @param {string} [directory=process.cwd()] - The directory to resolve relative paths from.\n * @param {boolean} [validate=true] - If the newConfig and the newMeta structure should be validated.\n *\n * @returns {Object} - The result of with the built configurations.\n * @property {rocConfig} extensionConfig - The extensions merged configurations\n * @property {rocConfig} config - The final configuration, with application configuration.\n * @property {rocMetaConfig} meta - The merged meta configuration.\n ",
"start": 770,
"end": 1700,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 34,
"column": 3
}
},
"range": [
770,
1700
]
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 1701,
"end": 3445,
"loc": {
"start": {
"line": 35,
"column": 0
},
"end": {
"line": 82,
"column": 1
}
},
"declaration": {
"type": "FunctionDeclaration",
"start": 1708,
"end": 3445,
"loc": {
"start": {
"line": 35,
"column": 7
},
"end": {
"line": 82,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1717,
"end": 1736,
"loc": {
"start": {
"line": 35,
"column": 16
},
"end": {
"line": 35,
"column": 35
}
},
"name": "buildCompleteConfig",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1742,
"end": 1747,
"loc": {
"start": {
"line": 36,
"column": 4
},
"end": {
"line": 36,
"column": 9
}
},
"name": "debug"
},
{
"type": "AssignmentPattern",
"start": 1749,
"end": 1760,
"loc": {
"start": {
"line": 36,
"column": 11
},
"end": {
"line": 36,
"column": 22
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1749,
"end": 1755,
"loc": {
"start": {
"line": 36,
"column": 11
},
"end": {
"line": 36,
"column": 17
}
},
"name": "config"
},
"right": {
"type": "ObjectExpression",
"start": 1758,
"end": 1760,
"loc": {
"start": {
"line": 36,
"column": 20
},
"end": {
"line": 36,
"column": 22
}
},
"properties": []
}
},
{
"type": "AssignmentPattern",
"start": 1762,
"end": 1771,
"loc": {
"start": {
"line": 36,
"column": 24
},
"end": {
"line": 36,
"column": 33
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1762,
"end": 1766,
"loc": {
"start": {
"line": 36,
"column": 24
},
"end": {
"line": 36,
"column": 28
}
},
"name": "meta"
},
"right": {
"type": "ObjectExpression",
"start": 1769,
"end": 1771,
"loc": {
"start": {
"line": 36,
"column": 31
},
"end": {
"line": 36,
"column": 33
}
},
"properties": []
}
},
{
"type": "AssignmentPattern",
"start": 1773,
"end": 1787,
"loc": {
"start": {
"line": 36,
"column": 35
},
"end": {
"line": 36,
"column": 49
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1773,
"end": 1782,
"loc": {
"start": {
"line": 36,
"column": 35
},
"end": {
"line": 36,
"column": 44
}
},
"name": "newConfig"
},
"right": {
"type": "ObjectExpression",
"start": 1785,
"end": 1787,
"loc": {
"start": {
"line": 36,
"column": 47
},
"end": {
"line": 36,
"column": 49
}
},
"properties": []
}
},
{
"type": "AssignmentPattern",
"start": 1789,
"end": 1801,
"loc": {
"start": {
"line": 36,
"column": 51
},
"end": {
"line": 36,
"column": 63
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1789,
"end": 1796,
"loc": {
"start": {
"line": 36,
"column": 51
},
"end": {
"line": 36,
"column": 58
}
},
"name": "newMeta"
},
"right": {
"type": "ObjectExpression",
"start": 1799,
"end": 1801,
"loc": {
"start": {
"line": 36,
"column": 61
},
"end": {
"line": 36,
"column": 63
}
},
"properties": []
}
},
{
"type": "AssignmentPattern",
"start": 1803,
"end": 1828,
"loc": {
"start": {
"line": 36,
"column": 65
},
"end": {
"line": 36,
"column": 90
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1803,
"end": 1812,
"loc": {
"start": {
"line": 36,
"column": 65
},
"end": {
"line": 36,
"column": 74
}
},
"name": "directory"
},
"right": {
"type": "CallExpression",
"start": 1815,
"end": 1828,
"loc": {
"start": {
"line": 36,
"column": 77
},
"end": {
"line": 36,
"column": 90
}
},
"callee": {
"type": "MemberExpression",
"start": 1815,
"end": 1826,
"loc": {
"start": {
"line": 36,
"column": 77
},
"end": {
"line": 36,
"column": 88
}
},
"object": {
"type": "Identifier",
"start": 1815,
"end": 1822,
"loc": {
"start": {
"line": 36,
"column": 77
},
"end": {
"line": 36,
"column": 84
}
},
"name": "process"
},
"property": {
"type": "Identifier",
"start": 1823,
"end": 1826,
"loc": {
"start": {
"line": 36,
"column": 85
},
"end": {
"line": 36,
"column": 88
}
},
"name": "cwd"
},
"computed": false
},
"arguments": []
}
},
{
"type": "AssignmentPattern",
"start": 1830,
"end": 1845,
"loc": {
"start": {
"line": 36,
"column": 92
},
"end": {
"line": 36,
"column": 107
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1830,
"end": 1838,
"loc": {
"start": {
"line": 36,
"column": 92
},
"end": {
"line": 36,
"column": 100
}
},
"name": "validate"
},
"right": {
"type": "Literal",
"start": 1841,
"end": 1845,
"loc": {
"start": {
"line": 36,
"column": 103
},
"end": {
"line": 36,
"column": 107
}
},
"value": true,
"rawValue": true,
"raw": "true"
}
}
],
"body": {
"type": "BlockStatement",
"start": 1848,
"end": 3445,
"loc": {
"start": {
"line": 37,
"column": 2
},
"end": {
"line": 82,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1854,
"end": 1886,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 38,
"column": 36
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1858,
"end": 1885,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 35
}
},
"id": {
"type": "Identifier",
"start": 1858,
"end": 1869,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 19
}
},
"name": "finalConfig"
},
"init": {
"type": "ObjectExpression",
"start": 1872,
"end": 1885,
"loc": {
"start": {
"line": 38,
"column": 22
},
"end": {
"line": 38,
"column": 35
}
},
"properties": [
{
"type": "SpreadProperty",
"start": 1874,
"end": 1883,
"loc": {
"start": {
"line": 38,
"column": 24
},
"end": {
"line": 38,
"column": 33
}
},
"argument": {
"type": "Identifier",
"start": 1877,
"end": 1883,
"loc": {
"start": {
"line": 38,
"column": 27
},
"end": {
"line": 38,
"column": 33
}
},
"name": "config"
}
}
]
}
}
],
"kind": "let"
},
{
"type": "VariableDeclaration",
"start": 1891,
"end": 1919,
"loc": {
"start": {
"line": 39,
"column": 4
},
"end": {
"line": 39,
"column": 32
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1895,
"end": 1918,
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 39,
"column": 31
}
},
"id": {
"type": "Identifier",
"start": 1895,
"end": 1904,
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 39,
"column": 17
}
},
"name": "finalMeta"
},
"init": {
"type": "ObjectExpression",
"start": 1907,
"end": 1918,
"loc": {
"start": {
"line": 39,
"column": 20
},
"end": {
"line": 39,
"column": 31
}
},
"properties": [
{
"type": "SpreadProperty",
"start": 1909,
"end": 1916,
"loc": {
"start": {
"line": 39,
"column": 22