backed-cli
Version:
The official command line interface for Backed
1,201 lines • 719 kB
JSON
{
"type": "File",
"start": 0,
"end": 2927,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 112,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2927,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 112,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "VariableDeclaration",
"start": 14,
"end": 55,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 41
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 20,
"end": 54,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 40
}
},
"id": {
"type": "ObjectPattern",
"start": 20,
"end": 38,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 24
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 21,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 16
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 21,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 16
},
"identifierName": "writeFile"
},
"name": "writeFile"
},
"value": {
"type": "Identifier",
"start": 21,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 16
},
"identifierName": "writeFile"
},
"name": "writeFile"
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 32,
"end": 37,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 23
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 32,
"end": 37,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 23
},
"identifierName": "mkdir"
},
"name": "mkdir"
},
"value": {
"type": "Identifier",
"start": 32,
"end": 37,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 23
},
"identifierName": "mkdir"
},
"name": "mkdir"
},
"extra": {
"shorthand": true
}
}
]
},
"init": {
"type": "CallExpression",
"start": 41,
"end": 54,
"loc": {
"start": {
"line": 2,
"column": 27
},
"end": {
"line": 2,
"column": 40
}
},
"callee": {
"type": "Identifier",
"start": 41,
"end": 48,
"loc": {
"start": {
"line": 2,
"column": 27
},
"end": {
"line": 2,
"column": 34
},
"identifierName": "require"
},
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"start": 49,
"end": 53,
"loc": {
"start": {
"line": 2,
"column": 35
},
"end": {
"line": 2,
"column": 39
}
},
"extra": {
"rawValue": "fs",
"raw": "'fs'"
},
"value": "fs"
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 56,
"end": 96,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 40
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 62,
"end": 95,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 39
}
},
"id": {
"type": "Identifier",
"start": 62,
"end": 71,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 15
},
"identifierName": "vinylRead"
},
"name": "vinylRead"
},
"init": {
"type": "CallExpression",
"start": 74,
"end": 95,
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 3,
"column": 39
}
},
"callee": {
"type": "Identifier",
"start": 74,
"end": 81,
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 3,
"column": 25
},
"identifierName": "require"
},
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"start": 82,
"end": 94,
"loc": {
"start": {
"line": 3,
"column": 26
},
"end": {
"line": 3,
"column": 38
}
},
"extra": {
"rawValue": "vinyl-read",
"raw": "'vinyl-read'"
},
"value": "vinyl-read"
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 97,
"end": 126,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 29
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 103,
"end": 125,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 28
}
},
"id": {
"type": "Identifier",
"start": 103,
"end": 107,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 10
},
"identifierName": "path"
},
"name": "path"
},
"init": {
"type": "CallExpression",
"start": 110,
"end": 125,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 28
}
},
"callee": {
"type": "Identifier",
"start": 110,
"end": 117,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 20
},
"identifierName": "require"
},
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"start": 118,
"end": 124,
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 27
}
},
"extra": {
"rawValue": "path",
"raw": "'path'"
},
"value": "path"
}
]
}
}
],
"kind": "const"
},
{
"type": "ImportDeclaration",
"start": 127,
"end": 160,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 33
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 134,
"end": 140,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 134,
"end": 140,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 13
},
"identifierName": "logger"
},
"name": "logger"
}
}
],
"source": {
"type": "StringLiteral",
"start": 146,
"end": 159,
"loc": {
"start": {
"line": 5,
"column": 19
},
"end": {
"line": 5,
"column": 32
}
},
"extra": {
"rawValue": "./logger.js",
"raw": "'./logger.js'"
},
"value": "./logger.js"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 162,
"end": 2926,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 111,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 177,
"end": 2926,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 111,
"column": 1
}
},
"id": null,
"superClass": null,
"body": {
"type": "ClassBody",
"start": 183,
"end": 2926,
"loc": {
"start": {
"line": 7,
"column": 21
},
"end": {
"line": 111,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 272,
"end": 780,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 29,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 272,
"end": 283,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 11,
"column": 13
},
"identifierName": "copySources"
},
"name": "copySources",
"leadingComments": null
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 284,
"end": 291,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 21
},
"identifierName": "sources"
},
"name": "sources"
}
],
"body": {
"type": "BlockStatement",
"start": 293,
"end": 780,
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 29,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 299,
"end": 776,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 28,
"column": 7
}
},
"argument": {
"type": "NewExpression",
"start": 306,
"end": 775,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 28,
"column": 6
}
},
"callee": {
"type": "Identifier",
"start": 310,
"end": 317,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 22
},
"identifierName": "Promise"
},
"name": "Promise"
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 318,
"end": 774,
"loc": {
"start": {
"line": 12,
"column": 23
},
"end": {
"line": 28,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 319,
"end": 326,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 31
},
"identifierName": "resolve"
},
"name": "resolve"
},
{
"type": "Identifier",
"start": 328,
"end": 334,
"loc": {
"start": {
"line": 12,
"column": 33
},
"end": {
"line": 12,
"column": 39
},
"identifierName": "reject"
},
"name": "reject"
}
],
"body": {
"type": "BlockStatement",
"start": 339,
"end": 774,
"loc": {
"start": {
"line": 12,
"column": 44
},
"end": {
"line": 28,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 347,
"end": 768,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 27,
"column": 7
}
},
"test": {
"type": "Identifier",
"start": 351,
"end": 358,
"loc": {
"start": {
"line": 13,
"column": 10
},
"end": {
"line": 13,
"column": 17
},
"identifierName": "sources"
},
"name": "sources"
},
"consequent": {
"type": "BlockStatement",
"start": 360,
"end": 768,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 27,
"column": 7
}
},
"body": [
{
"type": "TryStatement",
"start": 370,
"end": 760,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 26,
"column": 9
}
},
"block": {
"type": "BlockStatement",
"start": 374,
"end": 678,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 23,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 386,
"end": 404,
"loc": {
"start": {
"line": 15,
"column": 10
},
"end": {
"line": 15,
"column": 28
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 390,
"end": 403,
"loc": {
"start": {
"line": 15,
"column": 14
},
"end": {
"line": 15,
"column": 27
}
},
"id": {
"type": "Identifier",
"start": 390,
"end": 398,
"loc": {
"start": {
"line": 15,
"column": 14
},
"end": {
"line": 15,
"column": 22
},
"identifierName": "promises"
},
"name": "promises"
},
"init": {
"type": "ArrayExpression",
"start": 401,
"end": 403,
"loc": {
"start": {
"line": 15,
"column": 25
},
"end": {
"line": 15,
"column": 27
}
},
"elements": []
}
}
],
"kind": "let"
},
{
"type": "ForOfStatement",
"start": 415,
"end": 519,
"loc": {
"start": {
"line": 16,
"column": 10
},
"end": {
"line": 18,
"column": 11
}
},
"left": {
"type": "VariableDeclaration",
"start": 420,
"end": 430,
"loc": {
"start": {
"line": 16,
"column": 15
},
"end": {
"line": 16,
"column": 25
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 424,
"end": 430,
"loc": {
"start": {
"line": 16,
"column": 19
},
"end": {
"line": 16,
"column": 25
}
},
"id": {
"type": "Identifier",
"start": 424,
"end": 430,
"loc": {
"start": {
"line": 16,
"column": 19
},
"end": {
"line": 16,
"column": 25
},
"identifierName": "source"
},
"name": "source"
},
"init": null
}
],
"kind": "let"
},
"right": {
"type": "Identifier",
"start": 434,
"end": 441,
"loc": {
"start": {
"line": 16,
"column": 29
},
"end": {
"line": 16,
"column": 36
},
"identifierName": "sources"
},
"name": "sources"
},
"body": {
"type": "BlockStatement",
"start": 443,
"end": 519,
"loc": {
"start": {
"line": 16,
"column": 38
},
"end": {
"line": 18,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 457,
"end": 507,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 62
}
},
"expression": {
"type": "CallExpression",
"start": 457,
"end": 506,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 61
}
},
"callee": {
"type": "MemberExpression",
"start": 457,
"end": 470,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 457,
"end": 465,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 20
},
"identifierName": "promises"
},
"name": "promises"
},
"property": {
"type": "Identifier",
"start": 466,
"end": 470,
"loc": {
"start": {
"line": 17,
"column": 21
},
"end": {
"line": 17,
"column": 25
},
"identifierName": "push"
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 471,
"end": 505,
"loc": {
"start": {
"line": 17,
"column": 26
},
"end": {
"line": 17,
"column": 60
}
},
"callee": {
"type": "MemberExpression",
"start": 471,
"end": 480,
"loc": {
"start": {
"line": 17,
"column": 26
},
"end": {
"line": 17,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 471,
"end": 475,
"loc": {
"start": {
"line": 17,
"column": 26
},
"end": {
"line": 17,
"column": 30
}
}
},
"property": {
"type": "Identifier",
"start": 476,
"end": 480,
"loc": {
"start": {
"line": 17,
"column": 31
},
"end": {
"line": 17,
"column": 35
},
"identifierName": "copy"
},
"name": "copy"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 481,
"end": 491,
"loc": {
"start": {
"line": 17,
"column": 36
},
"end": {
"line": 17,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 481,
"end": 487,
"loc": {
"start": {
"line": 17,
"column": 36
},
"end": {
"line": 17,
"column": 42
},
"identifierName": "source"
},
"name": "source"
},
"property": {
"type": "Identifier",
"start": 488,
"end": 491,
"loc": {
"start": {
"line": 17,
"column": 43
},
"end": {
"line": 17,
"column": 46
},
"identifierName": "src"
},
"name": "src"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 493,
"end": 504,
"loc": {
"start": {
"line": 17,
"column": 48
},
"end": {
"line": 17,
"column": 59
}
},
"object": {
"type": "Identifier",
"s