electron-forge
Version:
A complete tool for building modern Electron applications
1,492 lines (1,491 loc) • 264 kB
JSON
{
"type": "File",
"start": 0,
"end": 2227,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 67,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2227,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 67,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 16
}
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"start": 7,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 15
}
},
"extra": {
"rawValue": "colors",
"raw": "'colors'"
},
"value": "colors"
}
},
{
"type": "ImportDeclaration",
"start": 18,
"end": 61,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 43
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 25,
"end": 33,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 15
}
},
"local": {
"type": "Identifier",
"start": 25,
"end": 33,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 15
},
"identifierName": "asyncOra"
},
"name": "asyncOra"
}
}
],
"source": {
"type": "StringLiteral",
"start": 39,
"end": 60,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 42
}
},
"extra": {
"rawValue": "../util/ora-handler",
"raw": "'../util/ora-handler'"
},
"value": "../util/ora-handler"
}
},
{
"type": "ImportDeclaration",
"start": 62,
"end": 112,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 50
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 69,
"end": 83,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 21
}
},
"local": {
"type": "Identifier",
"start": 69,
"end": 83,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 21
},
"identifierName": "getForgeConfig"
},
"name": "getForgeConfig"
}
}
],
"source": {
"type": "StringLiteral",
"start": 89,
"end": 111,
"loc": {
"start": {
"line": 4,
"column": 27
},
"end": {
"line": 4,
"column": 49
}
},
"extra": {
"rawValue": "../util/forge-config",
"raw": "'../util/forge-config'"
},
"value": "../util/forge-config"
}
},
{
"type": "ImportDeclaration",
"start": 113,
"end": 169,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 56
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 120,
"end": 135,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 22
}
},
"local": {
"type": "Identifier",
"start": 120,
"end": 135,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 22
},
"identifierName": "readPackageJSON"
},
"name": "readPackageJSON"
}
}
],
"source": {
"type": "StringLiteral",
"start": 141,
"end": 168,
"loc": {
"start": {
"line": 5,
"column": 28
},
"end": {
"line": 5,
"column": 55
}
},
"extra": {
"rawValue": "../util/read-package-json",
"raw": "'../util/read-package-json'"
},
"value": "../util/read-package-json"
}
},
{
"type": "ImportDeclaration",
"start": 170,
"end": 221,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 51
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 177,
"end": 190,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 20
}
},
"local": {
"type": "Identifier",
"start": 177,
"end": 190,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 20
},
"identifierName": "requireSearch"
},
"name": "requireSearch"
}
}
],
"source": {
"type": "StringLiteral",
"start": 196,
"end": 220,
"loc": {
"start": {
"line": 6,
"column": 26
},
"end": {
"line": 6,
"column": 50
}
},
"extra": {
"rawValue": "../util/require-search",
"raw": "'../util/require-search'"
},
"value": "../util/require-search"
}
},
{
"type": "ImportDeclaration",
"start": 222,
"end": 267,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 45
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 229,
"end": 239,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 17
}
},
"local": {
"type": "Identifier",
"start": 229,
"end": 239,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 17
},
"identifierName": "resolveDir"
},
"name": "resolveDir"
}
}
],
"source": {
"type": "StringLiteral",
"start": 245,
"end": 266,
"loc": {
"start": {
"line": 7,
"column": 23
},
"end": {
"line": 7,
"column": 44
}
},
"extra": {
"rawValue": "../util/resolve-dir",
"raw": "'../util/resolve-dir'"
},
"value": "../util/resolve-dir"
}
},
{
"type": "ImportDeclaration",
"start": 269,
"end": 295,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 276,
"end": 280,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 11
}
},
"local": {
"type": "Identifier",
"start": 276,
"end": 280,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 11
},
"identifierName": "make"
},
"name": "make"
}
}
],
"source": {
"type": "StringLiteral",
"start": 286,
"end": 294,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 25
}
},
"extra": {
"rawValue": "./make",
"raw": "'./make'"
},
"value": "./make"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @typedef {Object} PublishOptions\n * @property {string} [dir=process.cwd()] The path to the app to be published\n * @property {boolean} [interactive=false] Whether to use sensible defaults or prompt the user visually\n * @property {string} [authToken] An authentication token to use when publishing\n * @property {string} [tag=packageJSON.version] The string to tag this release with\n * @property {string} [target=github] The publish target\n * @property {MakeOptions} [makeOptions] Options object to passed through to make()\n ",
"start": 297,
"end": 828,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 19,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Publish an Electron application into the given target service.\n *\n * @param {PublishOptions} providedOptions - Options for the Publish method\n * @return {Promise} Will resolve when the publish process is complete\n ",
"start": 830,
"end": 1053,
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 26,
"column": 3
}
}
}
]
},
{
"type": "ExportDefaultDeclaration",
"start": 1054,
"end": 2226,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 66,
"column": 2
}
},
"declaration": {
"type": "ArrowFunctionExpression",
"start": 1069,
"end": 2225,
"loc": {
"start": {
"line": 27,
"column": 15
},
"end": {
"line": 66,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": true,
"params": [
{
"type": "AssignmentPattern",
"start": 1076,
"end": 1096,
"loc": {
"start": {
"line": 27,
"column": 22
},
"end": {
"line": 27,
"column": 42
}
},
"left": {
"type": "Identifier",
"start": 1076,
"end": 1091,
"loc": {
"start": {
"line": 27,
"column": 22
},
"end": {
"line": 27,
"column": 37
},
"identifierName": "providedOptions"
},
"name": "providedOptions"
},
"right": {
"type": "ObjectExpression",
"start": 1094,
"end": 1096,
"loc": {
"start": {
"line": 27,
"column": 40
},
"end": {
"line": 27,
"column": 42
}
},
"properties": []
}
}
],
"body": {
"type": "BlockStatement",
"start": 1101,
"end": 2225,
"loc": {
"start": {
"line": 27,
"column": 47
},
"end": {
"line": 66,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1164,
"end": 1372,
"loc": {
"start": {
"line": 29,
"column": 2
},
"end": {
"line": 35,
"column": 22
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1168,
"end": 1371,
"loc": {
"start": {
"line": 29,
"column": 6
},
"end": {
"line": 35,
"column": 21
}
},
"id": {
"type": "ObjectPattern",
"start": 1168,
"end": 1225,
"loc": {
"start": {
"line": 29,
"column": 6
},
"end": {
"line": 29,
"column": 63
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 1170,
"end": 1173,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 11
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1170,
"end": 1173,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 11
},
"identifierName": "dir"
},
"name": "dir",
"leadingComments": null
},
"value": {
"type": "Identifier",
"start": 1170,
"end": 1173,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 11
},
"identifierName": "dir"
},
"name": "dir"
},
"leadingComments": null,
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 1175,
"end": 1186,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 24
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1175,
"end": 1186,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 24
},
"identifierName": "interactive"
},
"name": "interactive"
},
"value": {
"type": "Identifier",
"start": 1175,
"end": 1186,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 24
},
"identifierName": "interactive"
},
"name": "interactive"
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 1188,
"end": 1197,
"loc": {
"start": {
"line": 29,
"column": 26
},
"end": {
"line": 29,
"column": 35
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1188,
"end": 1197,
"loc": {
"start": {
"line": 29,
"column": 26
},
"end": {
"line": 29,
"column": 35
},
"identifierName": "authToken"
},
"name": "authToken"
},
"value": {
"type": "Identifier",
"start": 1188,
"end": 1197,
"loc": {
"start": {
"line": 29,
"column": 26
},
"end": {
"line": 29,
"column": 35
},
"identifierName": "authToken"
},
"name": "authToken"
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 1199,
"end": 1202,
"loc": {
"start": {
"line": 29,
"column": 37
},
"end": {
"line": 29,
"column": 40
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1199,
"end": 1202,
"loc": {
"start": {
"line": 29,
"column": 37
},
"end": {
"line": 29,
"column": 40
},
"identifierName": "tag"
},
"name": "tag"
},
"value": {
"type": "Identifier",
"start": 1199,
"end": 1202,
"loc": {
"start": {
"line": 29,
"column": 37
},
"end": {
"line": 29,
"column": 40
},
"identifierName": "tag"
},
"name": "tag"
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 1204,
"end": 1210,
"loc": {
"start": {
"line": 29,
"column": 42
},
"end": {
"line": 29,
"column": 48
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1204,
"end": 1210,
"loc": {
"start": {
"line": 29,
"column": 42
},
"end": {
"line": 29,
"column": 48
},
"identifierName": "target"
},
"name": "target"
},
"value": {
"type": "Identifier",
"start": 1204,
"end": 1210,
"loc": {
"start": {
"line": 29,
"column": 42
},
"end": {
"line": 29,
"column": 48
},
"identifierName": "target"
},
"name": "target"
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start": 1212,
"end": 1223,
"loc": {
"start": {
"line": 29,
"column": 50
},
"end": {
"line": 29,
"column": 61
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1212,
"end": 1223,
"loc": {
"start": {
"line": 29,
"column": 50
},
"end": {
"line": 29,
"column": 61
},
"identifierName": "makeOptions"
},
"name": "makeOptions"
},
"value": {
"type": "Identifier",
"start": 1212,
"end": 1223,
"loc": {
"start": {
"line": 29,
"column": 50
},
"end": {
"line": 29,
"column": 61
},
"identifierName": "makeOptions"
},
"name": "makeOptions"
},
"extra": {
"shorthand": true
}
}
],
"leadingComments": null
},
"init": {
"type": "CallExpression",
"start": 1228,
"end": 1371,
"loc": {
"start": {
"line": 29,
"column": 66
},
"end": {
"line": 35,
"column": 21
}
},
"callee": {
"type": "MemberExpression",
"start": 1228,
"end": 1241,
"loc": {
"start": {
"line": 29,
"column": 66
},
"end": {
"line": 29,
"column": 79
}
},
"object": {
"type": "Identifier",
"start": 1228,
"end": 1234,
"loc": {
"start": {
"line": 29,
"column": 66
},
"end": {
"line": 29,
"column": 72
},
"identifierName": "Object"
},
"name": "Object"
},
"property": {
"type": "Identifier",
"start": 1235,
"end": 1241,
"loc": {
"start": {
"line": 29,
"column": 73
},
"end": {
"line": 29,
"column": 79
},
"identifierName": "assign"
},
"name": "assign"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 1242,
"end": 1353,
"loc": {
"start": {
"line": 29,
"column": 80
},
"end": {
"line": 35,
"column": 3
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 1248,
"end": 1266,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 22
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1248,
"end": 1251,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 7
},
"identifierName": "dir"
},
"name": "dir"
},
"value": {
"type": "CallExpression",
"start": 1253,
"end": 1266,
"loc": {
"start": {
"line": 30,
"column": 9
},
"end": {
"line": 30,
"column": 22
}
},
"callee": {
"type": "MemberExpression",
"start": 1253,
"end": 1264,
"loc": {
"start": {
"line": 30,
"column": 9
},
"end": {
"line": 30,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 1253,
"end": 1260,
"loc": {
"start": {
"line": 30,
"column": 9
},
"end": {
"line": 30,
"column": 16
},
"identifierName": "process"
},
"name": "process"
},
"property": {
"type": "Identifier",
"start": 1261,
"end": 1264,
"loc": {
"start": {
"line": 30,
"column": 17
},
"end": {
"line": 30,
"column": 20
},
"identifierName": "cwd"
},
"name": "cwd"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ObjectProperty",
"start": 1272,
"end": 1290,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 22
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1272,
"end": 1283,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 15
},
"identifierName": "interactive"
},
"name": "interactive"
},
"value": {
"type": "BooleanLiteral",
"start": 1285,
"end": 1290,
"loc": {
"start": {
"line": 31,
"column": 17
},
"end": {
"line": 31,
"column": 22
}
},
"value": false
}
},
{
"type": "ObjectProperty",
"start": 1296,
"end": 1305,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 13
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1296,
"end": 1299,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 7
},
"identifierName": "tag"
},
"name": "tag"
},
"value": {
"type": "NullLiteral",
"start": 1301,
"end": 1305,
"loc": {
"start": {
"line": 32,
"column": 9
},
"end": {
"line": 32,
"column": 13
}
}
}
},
{
"type": "ObjectProperty",
"start": 1311,
"end": 1326,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 33,
"column": 19
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1311,
"end": 1322,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 33,
"column": 15
},
"identifierName": "makeOptions"
},
"name": "makeOptions"
},
"value": {
"type": "ObjectExpression",
"start": 1324,
"end": 1326,
"loc": {
"start": {
"line": 33,
"column": 17
},
"end": {
"line": 33,
"column": 19
}
},
"properties": []
}
},
{
"type": "ObjectProperty",
"start": 1332,
"end": 1348,
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 34,
"column": 20
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1332,
"end": 1338,
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 34,
"column": 10
},
"identifierName": "target"
},
"name": "target"
},
"value": {
"type": "StringLiteral",
"start": 1340,
"end": 1348,
"loc": {
"start": {
"line": 34,
"column": 12
},
"end": {
"line": 34,
"column": 20
}
},
"extra": {
"rawValue": "github",
"raw": "'github'"
},
"value": "github"
}
}
]
},
{
"type": "Identifier",
"start": 1355,
"end": 1370,
"loc": {
"start": {
"line": 35,
"column": 5
},
"end": {
"line": 35,
"column": 20
},
"identifierName": "providedOptions"
},
"name": "providedOptions"
}
]
},
"leadingComments": null
}
],
"kind": "let",
"leadingComments": [
{
"type": "CommentLine",
"value": " eslint-disable-next-line prefer-const, no-unused-vars",
"start": 1105,
"end": 1161,
"loc": {
"start": {
"line": 28,
"column": 2
},
"end": {
"line": 28,
"column": 58
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 1376,
"end": 1420,
"loc": {
"start": {
"line": 37,
"column": 2
},
"end": {
"line": 37,
"column": 46
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1382,
"end": 1419,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 45
}
},
"id": {
"type": "Identifier",
"start": 1382,
"end": 1393,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 19
},
"identifierName": "makeResults"
},
"name": "makeResults"
},
"init": {
"type": "AwaitExpression",
"start": 1396,
"end": 1419,
"loc": {
"start": {
"line": 37,
"column": 22
},
"end": {
"line": 37,
"column": 45
}
},
"argument": {
"type": "CallExpression",
"start": 1402,
"end": 1419,
"loc": {
"start": {
"line": 37,
"column": 28
},