UNPKG

roc

Version:

Build modern web applications easily

1,390 lines 48 kB
{ "type": "Program", "start": 0, "end": 700, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 28, "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'" }, "trailingComments": [ { "type": "Block", "value": "*\n * The default prompt options.\n ", "start": 39, "end": 77, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 5, "column": 3 } }, "range": [ 39, 77 ] } ] }, { "type": "ExportNamedDeclaration", "start": 78, "end": 699, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 27, "column": 3 } }, "declaration": { "type": "VariableDeclaration", "start": 85, "end": 699, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 27, "column": 3 } }, "declarations": [ { "type": "VariableDeclarator", "start": 91, "end": 698, "loc": { "start": { "line": 6, "column": 13 }, "end": { "line": 27, "column": 2 } }, "id": { "type": "Identifier", "start": 91, "end": 104, "loc": { "start": { "line": 6, "column": 13 }, "end": { "line": 6, "column": 26 } }, "name": "defaultPrompt", "leadingComments": null }, "init": { "type": "ArrayExpression", "start": 107, "end": 698, "loc": { "start": { "line": 6, "column": 29 }, "end": { "line": 27, "column": 2 } }, "elements": [ { "type": "ObjectExpression", "start": 108, "end": 299, "loc": { "start": { "line": 6, "column": 30 }, "end": { "line": 12, "column": 1 } }, "properties": [ { "type": "Property", "start": 114, "end": 127, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 17 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 114, "end": 118, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 8 } }, "name": "type" }, "value": { "type": "Literal", "start": 120, "end": 127, "loc": { "start": { "line": 7, "column": 10 }, "end": { "line": 7, "column": 17 } }, "value": "input", "rawValue": "input", "raw": "'input'" }, "kind": "init" }, { "type": "Property", "start": 133, "end": 151, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 133, "end": 137, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 8 } }, "name": "name" }, "value": { "type": "Literal", "start": 139, "end": 151, "loc": { "start": { "line": 8, "column": 10 }, "end": { "line": 8, "column": 22 } }, "value": "rocAppName", "rawValue": "rocAppName", "raw": "'rocAppName'" }, "kind": "init" }, { "type": "Property", "start": 157, "end": 205, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 52 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 157, "end": 164, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 11 } }, "name": "message" }, "value": { "type": "Literal", "start": 166, "end": 205, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 52 } }, "value": "What's the name of your application?", "rawValue": "What's the name of your application?", "raw": "'What\\'s the name of your application?'" }, "kind": "init" }, { "type": "Property", "start": 211, "end": 232, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 211, "end": 218, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 11 } }, "name": "default" }, "value": { "type": "Literal", "start": 220, "end": 232, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 25 } }, "value": "my-roc-app", "rawValue": "my-roc-app", "raw": "'my-roc-app'" }, "kind": "init" }, { "type": "Property", "start": 238, "end": 297, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 63 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 238, "end": 244, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 10 } }, "name": "filter" }, "value": { "type": "ArrowFunctionExpression", "start": 246, "end": 297, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 63 } }, "id": null, "generator": false, "expression": true, "async": false, "params": [ { "type": "Identifier", "start": 247, "end": 252, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 18 } }, "name": "input" } ], "body": { "type": "CallExpression", "start": 257, "end": 297, "loc": { "start": { "line": 11, "column": 23 }, "end": { "line": 11, "column": 63 } }, "callee": { "type": "MemberExpression", "start": 257, "end": 292, "loc": { "start": { "line": 11, "column": 23 }, "end": { "line": 11, "column": 58 } }, "object": { "type": "CallExpression", "start": 257, "end": 287, "loc": { "start": { "line": 11, "column": 23 }, "end": { "line": 11, "column": 53 } }, "callee": { "type": "MemberExpression", "start": 257, "end": 282, "loc": { "start": { "line": 11, "column": 23 }, "end": { "line": 11, "column": 48 } }, "object": { "type": "CallExpression", "start": 257, "end": 276, "loc": { "start": { "line": 11, "column": 23 }, "end": { "line": 11, "column": 42 } }, "callee": { "type": "MemberExpression", "start": 257, "end": 274, "loc": { "start": { "line": 11, "column": 23 }, "end": { "line": 11, "column": 40 } }, "object": { "type": "Identifier", "start": 257, "end": 262, "loc": { "start": { "line": 11, "column": 23 }, "end": { "line": 11, "column": 28 } }, "name": "input" }, "property": { "type": "Identifier", "start": 263, "end": 274, "loc": { "start": { "line": 11, "column": 29 }, "end": { "line": 11, "column": 40 } }, "name": "toLowerCase" }, "computed": false }, "arguments": [] }, "property": { "type": "Identifier", "start": 277, "end": 282, "loc": { "start": { "line": 11, "column": 43 }, "end": { "line": 11, "column": 48 } }, "name": "split" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 283, "end": 286, "loc": { "start": { "line": 11, "column": 49 }, "end": { "line": 11, "column": 52 } }, "value": " ", "rawValue": " ", "raw": "' '" } ] }, "property": { "type": "Identifier", "start": 288, "end": 292, "loc": { "start": { "line": 11, "column": 54 }, "end": { "line": 11, "column": 58 } }, "name": "join" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 293, "end": 296, "loc": { "start": { "line": 11, "column": 59 }, "end": { "line": 11, "column": 62 } }, "value": "-", "rawValue": "-", "raw": "'-'" } ] } }, "kind": "init" } ] }, { "type": "ObjectExpression", "start": 301, "end": 442, "loc": { "start": { "line": 12, "column": 3 }, "end": { "line": 17, "column": 1 } }, "properties": [ { "type": "Property", "start": 307, "end": 320, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 17 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 307, "end": 311, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 8 } }, "name": "type" }, "value": { "type": "Literal", "start": 313, "end": 320, "loc": { "start": { "line": 13, "column": 10 }, "end": { "line": 13, "column": 17 } }, "value": "input", "rawValue": "input", "raw": "'input'" }, "kind": "init" }, { "type": "Property", "start": 326, "end": 344, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 326, "end": 330, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 8 } }, "name": "name" }, "value": { "type": "Literal", "start": 332, "end": 344, "loc": { "start": { "line": 14, "column": 10 }, "end": { "line": 14, "column": 22 } }, "value": "rocAppDesc", "rawValue": "rocAppDesc", "raw": "'rocAppDesc'" }, "kind": "init" }, { "type": "Property", "start": 350, "end": 405, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 59 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 350, "end": 357, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 11 } }, "name": "message" }, "value": { "type": "Literal", "start": 359, "end": 405, "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 59 } }, "value": "What's the description for the application?", "rawValue": "What's the description for the application?", "raw": "'What\\'s the description for the application?'" }, "kind": "init" }, { "type": "Property", "start": 411, "end": 440, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 33 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 411, "end": 418, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 11 } }, "name": "default" }, "value": { "type": "Literal", "start": 420, "end": 440, "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 33 } }, "value": "My Roc Application", "rawValue": "My Roc Application", "raw": "'My Roc Application'" }, "kind": "init" } ] }, { "type": "ObjectExpression", "start": 444, "end": 570, "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 22, "column": 1 } }, "properties": [ { "type": "Property", "start": 450, "end": 463, "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 18, "column": 17 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 450, "end": 454, "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 18, "column": 8 } }, "name": "type" }, "value": { "type": "Literal", "start": 456, "end": 463, "loc": { "start": { "line": 18, "column": 10 }, "end": { "line": 18, "column": 17 } }, "value": "input", "rawValue": "input", "raw": "'input'" }, "kind": "init" }, { "type": "Property", "start": 469, "end": 489, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 24 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 469, "end": 473, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 8 } }, "name": "name" }, "value": { "type": "Literal", "start": 475, "end": 489, "loc": { "start": { "line": 19, "column": 10 }, "end": { "line": 19, "column": 24 } }, "value": "rocAppAuthor", "rawValue": "rocAppAuthor", "raw": "'rocAppAuthor'" }, "kind": "init" }, { "type": "Property", "start": 495, "end": 543, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 52 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 495, "end": 502, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 11 } }, "name": "message" }, "value": { "type": "Literal", "start": 504, "end": 543, "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 52 } }, "value": "Who's the author of the application?", "rawValue": "Who's the author of the application?", "raw": "'Who\\'s the author of the application?'" }, "kind": "init" }, { "type": "Property", "start": 549, "end": 568, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 23 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 549, "end": 556, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 11 } }, "name": "default" }, "value": { "type": "Literal", "start": 558, "end": 568, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 23 } }, "value": "John Doe", "rawValue": "John Doe", "raw": "'John Doe'" }, "kind": "init" } ] }, { "type": "ObjectExpression", "start": 572, "end": 697, "loc": { "start": { "line": 22, "column": 3 }, "end": { "line": 27, "column": 1 } }, "properties": [ { "type": "Property", "start": 578, "end": 591, "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 23, "column": 17 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 578, "end": 582, "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 23, "column": 8 } }, "name": "type" }, "value": { "type": "Literal", "start": 584, "end": 591, "loc": { "start": { "line": 23, "column": 10 }, "end": { "line": 23, "column": 17 } }, "value": "input", "rawValue": "input", "raw": "'input'" }, "kind": "init" }, { "type": "Property", "start": 597, "end": 618, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 597, "end": 601, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 8 } }, "name": "name" }, "value": { "type": "Literal", "start": 603, "end": 618, "loc": { "start": { "line": 24, "column": 10 }, "end": { "line": 24, "column": 25 } }, "value": "rocAppLicense", "rawValue": "rocAppLicense", "raw": "'rocAppLicense'" }, "kind": "init" }, { "type": "Property", "start": 624, "end": 675, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 55 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 624, "end": 631, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 11 } }, "name": "message" }, "value": { "type": "Literal", "start": 633, "end": 675, "loc": { "start": { "line": 25, "column": 13 }, "end": { "line": 25, "column": 55 } }, "value": "What's the license for the application?", "rawValue": "What's the license for the application?", "raw": "'What\\'s the license for the application?'" }, "kind": "init" }, { "type": "Property", "start": 681, "end": 695, "loc": { "start": { "line": 26, "column": 4 }, "end": { "line": 26, "column": 18 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 681, "end": 688, "loc": { "start": { "line": 26, "column": 4 }, "end": { "line": 26, "column": 11 } }, "name": "default" }, "value": { "type": "Literal", "start": 690, "end": 695, "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 18 } }, "value": "MIT", "rawValue": "MIT", "raw": "'MIT'" }, "kind": "init" } ] } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "Block", "value": "*\n * The default prompt options.\n ", "start": 39, "end": 77, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 5, "column": 3 } }, "range": [ 39, 77 ] } ], "trailingComments": [] }, "specifiers": [], "source": null, "leadingComments": [ { "type": "Block", "value": "*\n * The default prompt options.\n ", "start": 39, "end": 77, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 5, "column": 3 } }, "range": [ 39, 77 ] } ] } ] }