backed-cli
Version:
The official command line interface for Backed
1,482 lines • 343 kB
JSON
{
"type": "File",
"start": 0,
"end": 1655,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 59,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 1655,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 59,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExpressionStatement",
"start": 14,
"end": 39,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 14,
"end": 38,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 24
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 14,
"end": 27,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 13
}
},
"object": {
"type": "Identifier",
"start": 14,
"end": 21,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 7
},
"identifierName": "process"
},
"name": "process"
},
"property": {
"type": "Identifier",
"start": 22,
"end": 27,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 13
},
"identifierName": "title"
},
"name": "title"
},
"computed": false
},
"right": {
"type": "StringLiteral",
"start": 30,
"end": 38,
"loc": {
"start": {
"line": 2,
"column": 16
},
"end": {
"line": 2,
"column": 24
}
},
"extra": {
"rawValue": "backed",
"raw": "'backed'"
},
"value": "backed"
}
}
},
{
"type": "VariableDeclaration",
"start": 40,
"end": 79,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 39
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 46,
"end": 78,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 38
}
},
"id": {
"type": "Identifier",
"start": 46,
"end": 55,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 15
},
"identifierName": "commander"
},
"name": "commander"
},
"init": {
"type": "CallExpression",
"start": 58,
"end": 78,
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 3,
"column": 38
}
},
"callee": {
"type": "Identifier",
"start": 58,
"end": 65,
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 3,
"column": 25
},
"identifierName": "require"
},
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"start": 66,
"end": 77,
"loc": {
"start": {
"line": 3,
"column": 26
},
"end": {
"line": 3,
"column": 37
}
},
"extra": {
"rawValue": "commander",
"raw": "'commander'"
},
"value": "commander"
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 80,
"end": 127,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 47
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 86,
"end": 126,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 46
}
},
"id": {
"type": "ObjectPattern",
"start": 86,
"end": 95,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 15
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 87,
"end": 94,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 14
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 87,
"end": 94,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 14
},
"identifierName": "version"
},
"name": "version"
},
"value": {
"type": "Identifier",
"start": 87,
"end": 94,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 14
},
"identifierName": "version"
},
"name": "version"
},
"extra": {
"shorthand": true
}
}
]
},
"init": {
"type": "CallExpression",
"start": 98,
"end": 126,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 4,
"column": 46
}
},
"callee": {
"type": "Identifier",
"start": 98,
"end": 105,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 4,
"column": 25
},
"identifierName": "require"
},
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"start": 106,
"end": 125,
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 45
}
},
"extra": {
"rawValue": "./../package.json",
"raw": "'./../package.json'"
},
"value": "./../package.json"
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 128,
"end": 159,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 31
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 134,
"end": 158,
"loc": {
"start": {
"line": 5,
"column": 6
},
"end": {
"line": 5,
"column": 30
}
},
"id": {
"type": "Identifier",
"start": 134,
"end": 139,
"loc": {
"start": {
"line": 5,
"column": 6
},
"end": {
"line": 5,
"column": 11
},
"identifierName": "webup"
},
"name": "webup"
},
"init": {
"type": "CallExpression",
"start": 142,
"end": 158,
"loc": {
"start": {
"line": 5,
"column": 14
},
"end": {
"line": 5,
"column": 30
}
},
"callee": {
"type": "Identifier",
"start": 142,
"end": 149,
"loc": {
"start": {
"line": 5,
"column": 14
},
"end": {
"line": 5,
"column": 21
},
"identifierName": "require"
},
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"start": 150,
"end": 157,
"loc": {
"start": {
"line": 5,
"column": 22
},
"end": {
"line": 5,
"column": 29
}
},
"extra": {
"rawValue": "webup",
"raw": "'webup'"
},
"value": "webup"
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 160,
"end": 200,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 40
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 166,
"end": 199,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 39
}
},
"id": {
"type": "Identifier",
"start": 166,
"end": 172,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 12
},
"identifierName": "logger"
},
"name": "logger"
},
"init": {
"type": "CallExpression",
"start": 175,
"end": 199,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 6,
"column": 39
}
},
"callee": {
"type": "Identifier",
"start": 175,
"end": 182,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 6,
"column": 22
},
"identifierName": "require"
},
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"start": 183,
"end": 198,
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 38
}
},
"extra": {
"rawValue": "backed-logger",
"raw": "'backed-logger'"
},
"value": "backed-logger"
}
]
}
}
],
"kind": "const"
},
{
"type": "ImportDeclaration",
"start": 202,
"end": 235,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 33
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 209,
"end": 215,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 209,
"end": 215,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 13
},
"identifierName": "Config"
},
"name": "Config"
}
}
],
"source": {
"type": "StringLiteral",
"start": 221,
"end": 234,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 32
}
},
"extra": {
"rawValue": "./config.js",
"raw": "'./config.js'"
},
"value": "./config.js"
}
},
{
"type": "ImportDeclaration",
"start": 236,
"end": 267,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 31
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 243,
"end": 248,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 243,
"end": 248,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 12
},
"identifierName": "tasks"
},
"name": "tasks"
}
}
],
"source": {
"type": "StringLiteral",
"start": 254,
"end": 266,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 30
}
},
"extra": {
"rawValue": "./tasks.js",
"raw": "'./tasks.js'"
},
"value": "./tasks.js"
}
},
{
"type": "ExpressionStatement",
"start": 269,
"end": 739,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 20,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 269,
"end": 738,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 20,
"column": 22
}
},
"callee": {
"type": "MemberExpression",
"start": 269,
"end": 724,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 20,
"column": 8
}
},
"object": {
"type": "CallExpression",
"start": 269,
"end": 715,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 19,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 269,
"end": 679,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 19,
"column": 9
}
},
"object": {
"type": "CallExpression",
"start": 269,
"end": 669,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 18,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 269,
"end": 633,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 18,
"column": 9
}
},
"object": {
"type": "CallExpression",
"start": 269,
"end": 623,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 17,
"column": 98
}
},
"callee": {
"type": "MemberExpression",
"start": 269,
"end": 534,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 17,
"column": 9
}
},
"object": {
"type": "CallExpression",
"start": 269,
"end": 524,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 16,
"column": 52
}
},
"callee": {
"type": "MemberExpression",
"start": 269,
"end": 481,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 16,
"column": 9
}
},
"object": {
"type": "CallExpression",
"start": 269,
"end": 471,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 15,
"column": 52
}
},
"callee": {
"type": "MemberExpression",
"start": 269,
"end": 428,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 15,
"column": 9
}
},
"object": {
"type": "CallExpression",
"start": 269,
"end": 418,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 14,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 269,
"end": 379,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 14,
"column": 9
}
},
"object": {
"type": "CallExpression",
"start": 269,
"end": 369,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 13,
"column": 70
}
},
"callee": {
"type": "MemberExpression",
"start": 269,
"end": 308,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 13,
"column": 9
}
},
"object": {
"type": "CallExpression",
"start": 269,
"end": 298,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 12,
"column": 19
}
},
"callee": {
"type": "MemberExpression",
"start": 269,
"end": 289,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 12,
"column": 10
}
},
"object": {
"type": "Identifier",
"start": 269,
"end": 278,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"column": 9
},
"identifierName": "commander"
},
"name": "commander"
},
"property": {
"type": "Identifier",
"start": 282,
"end": 289,
"loc": {
"start": {
"line": 12,
"column": 3
},
"end": {
"line": 12,
"column": 10
},
"identifierName": "version"
},
"name": "version"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 290,
"end": 297,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 18
},
"identifierName": "version"
},
"name": "version"
}
]
},
"property": {
"type": "Identifier",
"start": 302,
"end": 308,
"loc": {
"start": {
"line": 13,
"column": 3
},
"end": {
"line": 13,
"column": 9
},
"identifierName": "option"
},
"name": "option"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 309,
"end": 322,
"loc": {
"start": {
"line": 13,
"column": 10
},
"end": {
"line": 13,
"column": 23
}
},
"extra": {
"rawValue": "-w, --watch",
"raw": "'-w, --watch'"
},
"value": "-w, --watch"
},
{
"type": "StringLiteral",
"start": 324,
"end": 368,
"loc": {
"start": {
"line": 13,
"column": 25
},
"end": {
"line": 13,
"column": 69
}
},
"extra": {
"rawValue": "watch for file changes & rebuild on change",
"raw": "'watch for file changes & rebuild on change'"
},
"value": "watch for file changes & rebuild on change"
}
]
},
"property": {
"type": "Identifier",
"start": 373,
"end": 379,
"loc": {
"start": {
"line": 14,
"column": 3
},
"end": {
"line": 14,
"column": 9
},
"identifierName": "option"
},
"name": "option"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 380,
"end": 394,
"loc": {
"start": {
"line": 14,
"column": 10
},
"end": {
"line": 14,
"column": 24
}
},
"extra": {
"rawValue": "-u, --uglify",
"raw": "'-u, --uglify'"
},
"value": "-u, --uglify"
},
{
"type": "StringLiteral",
"start": 396,
"end": 417,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 47
}
},
"extra": {
"rawValue": "minimize code ouput",
"raw": "'minimize code ouput'"
},
"value": "minimize code ouput"
}
]
},
"property": {
"type": "Identifier",
"start": 422,
"end": 428,
"loc": {
"start": {
"line": 15,
"column": 3
},
"end": {
"line": 15,
"column": 9
},
"identifierName": "option"
},
"name": "option"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 429,
"end": 442,
"loc": {
"start": {
"line": 15,
"column": 10
},
"end": {
"line": 15,
"column": 23
}
},
"extra": {
"rawValue": "-b, --build",
"raw": "'-b, --build'"
},
"value": "-b, --build"
},
{
"type": "StringLiteral",
"start": 444,
"end": 470,
"loc": {
"start": {
"line": 15,
"column": 25
},
"end": {
"line": 15,
"column": 51
}
},
"extra": {
"rawValue": "build your app/component",
"raw": "'build your app/component'"
},
"value": "build your app/component"
}
]
},
"property": {
"type": "Identifier",
"start": 475,
"end": 481,
"loc": {
"start": {
"line": 16,
"column": 3
},
"end": {
"line": 16,
"column": 9
},
"identifierName": "option"
},
"name": "option"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 482,
"end": 495,
"loc": {
"start": {
"line": 16,
"column": 10
},
"end": {
"line": 16,
"column": 23
}
},
"extra": {
"rawValue": "-s, --serve",
"raw": "'-s, --serve'"
},
"value": "-s, --serve"
},
{
"type": "StringLiteral",
"start": 497,
"end": 523,
"loc": {
"start": {
"line": 16,
"column": 25
},
"end": {
"line": 16,
"column": 51
}
},
"extra": {
"rawValue": "serve your app/component",
"raw": "'serve your app/component'"
},
"value": "serve your app/component"
}
]
},
"property": {
"type": "Identifier",
"start": 528,
"end": 534,
"loc": {
"start": {
"line": 17,
"column": 3
},
"end": {
"line": 17,
"column": 9
},
"identifierName": "option"
},
"name": "option"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 535,
"end": 547,
"loc": {
"start": {
"line": 17,
"column": 10
},
"end": {
"line": 17,
"column": 22
}
},
"extra": {
"rawValue": "-c, --copy",
"raw": "'-c, --copy'"
},
"value": "-c, --copy"
},
{
"type": "StringLiteral",
"start": 549,
"end": 622,
"loc": {
"start": {
"line": 17,
"column": 24
},
"end": {
"line": 17,
"column": 97
}
},
"extra": {
"rawValue": "copy files from your app/component src folder to it distribution folder",
"raw": "'copy files from your app/component src folder to it distribution folder'"
},
"value": "copy files from your app/component src folder to it distribution folder"
}
]
},
"property": {
"type": "Identifier",
"start": 627,
"end": 633,
"loc": {
"start": {
"line": 18,
"column": 3
},
"end": {
"line": 18,
"column": 9
},
"identifierName": "option"
},
"name": "option"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 634,
"end": 647,
"loc": {
"start": {
"line": 18,
"column": 10
},
"end": {
"line": 18,
"column": 23
}
},
"extra": {
"rawValue": "-d, --debug",
"raw": "'-d, --debug'"
},
"value": "-d, --debug"
},
{
"type": "StringLiteral",
"start": 649,
"end": 668,
"loc": {
"start": {
"line": 18,
"column": 25
},
"end": {
"line": 18,
"column": 44
}
},
"extra": {
"rawValue": "show all warnings",
"raw": "'show all warnings'"
},
"value": "show all warnings"
}
]
},
"property": {
"type": "Identifier",
"start": 673,
"end": 679,
"loc": {
"start": {
"line": 19,
"column": 3
},
"end": {
"line": 19,
"column": 9
},
"identifierName": "option"
},
"name": "option"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 680,
"end": 695,
"loc": {
"start": {
"line": 19,
"column": 10
},
"end": {
"line": 19,
"column": 25
}
},
"extra": {
"rawValue": "-v, --version",
"raw": "'-v, --version'"
},
"value": "-v, --version"
},
{
"type": "StringLiteral",
"start": 697,
"end": 714,
"loc": {
"start": {
"line": 19,
"co