UNPKG

mongoose-data-seed

Version:

Seed mongodb with data using mongoose models

2,150 lines (2,149 loc) 54.5 kB
{ "type": "File", "start": 0, "end": 659, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 35, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 659, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 35, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 24, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 24 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 11, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 11 } }, "local": { "type": "Identifier", "start": 7, "end": 11, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 11 }, "identifierName": "path" }, "name": "path" } } ], "source": { "type": "StringLiteral", "start": 17, "end": 23, "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 23 } }, "extra": { "rawValue": "path", "raw": "'path'" }, "value": "path" }, "trailingComments": [ { "type": "CommentBlock", "value": "*\n * mongoose-data-seed user config filename\n * @type {String}\n ", "start": 26, "end": 94, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 6, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 95, "end": 145, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 50 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 102, "end": 145, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", "start": 108, "end": 144, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 49 } }, "id": { "type": "Identifier", "start": 108, "end": 122, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 27 }, "identifierName": "configFilename" }, "name": "configFilename", "leadingComments": null }, "init": { "type": "StringLiteral", "start": 125, "end": 144, "loc": { "start": { "line": 7, "column": 30 }, "end": { "line": 7, "column": 49 } }, "extra": { "rawValue": "md-seed-config.js", "raw": "'md-seed-config.js'" }, "value": "md-seed-config.js" }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "*\n * mongoose-data-seed user config filename\n * @type {String}\n ", "start": 26, "end": 94, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 6, "column": 3 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * mongoose-data-seed default user generator-config\n * @type {Object}\n * @property {string} seedersFolder\n ", "start": 147, "end": 260, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 13, "column": 3 } } } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * mongoose-data-seed user config filename\n * @type {String}\n ", "start": 26, "end": 94, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 6, "column": 3 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * mongoose-data-seed default user generator-config\n * @type {Object}\n * @property {string} seedersFolder\n ", "start": 147, "end": 260, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 13, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 261, "end": 337, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 16, "column": 2 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 268, "end": 337, "loc": { "start": { "line": 14, "column": 7 }, "end": { "line": 16, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 274, "end": 336, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 16, "column": 1 } }, "id": { "type": "Identifier", "start": 274, "end": 300, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 39 }, "identifierName": "defaultUserGeneratorConfig" }, "name": "defaultUserGeneratorConfig", "leadingComments": null }, "init": { "type": "ObjectExpression", "start": 303, "end": 336, "loc": { "start": { "line": 14, "column": 42 }, "end": { "line": 16, "column": 1 } }, "properties": [ { "type": "ObjectProperty", "start": 307, "end": 333, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 15, "column": 28 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 307, "end": 320, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 15, "column": 15 }, "identifierName": "seedersFolder" }, "name": "seedersFolder" }, "value": { "type": "StringLiteral", "start": 322, "end": 333, "loc": { "start": { "line": 15, "column": 17 }, "end": { "line": 15, "column": 28 } }, "extra": { "rawValue": "./seeders", "raw": "'./seeders'" }, "value": "./seeders" } } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "*\n * mongoose-data-seed default user generator-config\n * @type {Object}\n * @property {string} seedersFolder\n ", "start": 147, "end": 260, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 13, "column": 3 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * system seeder template path\n * @type {string}\n ", "start": 339, "end": 395, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 21, "column": 3 } } } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * mongoose-data-seed default user generator-config\n * @type {Object}\n * @property {string} seedersFolder\n ", "start": 147, "end": 260, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 13, "column": 3 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * system seeder template path\n * @type {string}\n ", "start": 339, "end": 395, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 21, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 396, "end": 489, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 25, "column": 2 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 403, "end": 489, "loc": { "start": { "line": 22, "column": 7 }, "end": { "line": 25, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 409, "end": 488, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 25, "column": 1 } }, "id": { "type": "Identifier", "start": 409, "end": 429, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 33 }, "identifierName": "systemSeederTemplate" }, "name": "systemSeederTemplate", "leadingComments": null }, "init": { "type": "CallExpression", "start": 432, "end": 488, "loc": { "start": { "line": 22, "column": 36 }, "end": { "line": 25, "column": 1 } }, "callee": { "type": "MemberExpression", "start": 432, "end": 441, "loc": { "start": { "line": 22, "column": 36 }, "end": { "line": 22, "column": 45 } }, "object": { "type": "Identifier", "start": 432, "end": 436, "loc": { "start": { "line": 22, "column": 36 }, "end": { "line": 22, "column": 40 }, "identifierName": "path" }, "name": "path" }, "property": { "type": "Identifier", "start": 437, "end": 441, "loc": { "start": { "line": 22, "column": 41 }, "end": { "line": 22, "column": 45 }, "identifierName": "join" }, "name": "join" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 445, "end": 454, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 23, "column": 11 }, "identifierName": "__dirname" }, "name": "__dirname" }, { "type": "StringLiteral", "start": 458, "end": 486, "loc": { "start": { "line": 24, "column": 2 }, "end": { "line": 24, "column": 30 } }, "extra": { "rawValue": "../../templates/seeder.ejs", "raw": "'../../templates/seeder.ejs'" }, "value": "../../templates/seeder.ejs" } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "*\n * system seeder template path\n * @type {string}\n ", "start": 339, "end": 395, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 21, "column": 3 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * system template for user-config path\n * @type {string}\n ", "start": 491, "end": 556, "loc": { "start": { "line": 27, "column": 0 }, "end": { "line": 30, "column": 3 } } } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * system seeder template path\n * @type {string}\n ", "start": 339, "end": 395, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 21, "column": 3 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * system template for user-config path\n * @type {string}\n ", "start": 491, "end": 556, "loc": { "start": { "line": 27, "column": 0 }, "end": { "line": 30, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 557, "end": 658, "loc": { "start": { "line": 31, "column": 0 }, "end": { "line": 34, "column": 2 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 564, "end": 658, "loc": { "start": { "line": 31, "column": 7 }, "end": { "line": 34, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 570, "end": 657, "loc": { "start": { "line": 31, "column": 13 }, "end": { "line": 34, "column": 1 } }, "id": { "type": "Identifier", "start": 570, "end": 590, "loc": { "start": { "line": 31, "column": 13 }, "end": { "line": 31, "column": 33 }, "identifierName": "systemConfigTemplate" }, "name": "systemConfigTemplate", "leadingComments": null }, "init": { "type": "CallExpression", "start": 593, "end": 657, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 34, "column": 1 } }, "callee": { "type": "MemberExpression", "start": 593, "end": 602, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 45 } }, "object": { "type": "Identifier", "start": 593, "end": 597, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 40 }, "identifierName": "path" }, "name": "path" }, "property": { "type": "Identifier", "start": 598, "end": 602, "loc": { "start": { "line": 31, "column": 41 }, "end": { "line": 31, "column": 45 }, "identifierName": "join" }, "name": "join" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 606, "end": 615, "loc": { "start": { "line": 32, "column": 2 }, "end": { "line": 32, "column": 11 }, "identifierName": "__dirname" }, "name": "__dirname" }, { "type": "StringLiteral", "start": 619, "end": 655, "loc": { "start": { "line": 33, "column": 2 }, "end": { "line": 33, "column": 38 } }, "extra": { "rawValue": "../../templates/md-seed-config.ejs", "raw": "'../../templates/md-seed-config.ejs'" }, "value": "../../templates/md-seed-config.ejs" } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "*\n * system template for user-config path\n * @type {string}\n ", "start": 491, "end": 556, "loc": { "start": { "line": 27, "column": 0 }, "end": { "line": 30, "column": 3 } } } ], "trailingComments": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * system template for user-config path\n * @type {string}\n ", "start": 491, "end": 556, "loc": { "start": { "line": 27, "column": 0 }, "end": { "line": 30, "column": 3 } } } ] } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\n * mongoose-data-seed user config filename\n * @type {String}\n ", "start": 26, "end": 94, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 6, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * mongoose-data-seed default user generator-config\n * @type {Object}\n * @property {string} seedersFolder\n ", "start": 147, "end": 260, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 13, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * system seeder template path\n * @type {string}\n ", "start": 339, "end": 395, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 21, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * system template for user-config path\n * @type {string}\n ", "start": 491, "end": 556, "loc": { "start": { "line": 27, "column": 0 }, "end": { "line": 30, "column": 3 } } } ], "tokens": [ { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 0, "end": 6, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 6 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "path", "start": 7, "end": 11, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 12, "end": 16, "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 16 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "path", "start": 17, "end": 23, "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 23 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 23, "end": 24, "loc": { "start": { "line": 1, "column": 23 }, "end": { "line": 1, "column": 24 } } }, { "type": "CommentBlock", "value": "*\n * mongoose-data-seed user config filename\n * @type {String}\n ", "start": 26, "end": 94, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 6, "column": 3 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 95, "end": 101, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 6 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 102, "end": 107, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "configFilename", "start": 108, "end": 122, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 123, "end": 124, "loc": { "start": { "line": 7, "column": 28 }, "end": { "line": 7, "column": 29 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "md-seed-config.js", "start": 125, "end": 144, "loc": { "start": { "line": 7, "column": 30 }, "end": { "line": 7, "column": 49 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 144, "end": 145, "loc": { "start": { "line": 7, "column": 49 }, "end": { "line": 7, "column": 50 } } }, { "type": "CommentBlock", "value": "*\n * mongoose-data-seed default user generator-config\n * @type {Object}\n * @property {string} seedersFolder\n ", "start": 147, "end": 260, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 13, "column": 3 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 261, "end": 267, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 6 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 268, "end": 273, "loc": { "start": { "line": 14, "column": 7 }, "end": { "line": 14, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "defaultUserGeneratorConfig", "start": 274, "end": 300, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 39 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 301, "end": 302, "loc": { "start": { "line": 14, "column": 40 }, "end": { "line": 14, "column": 41 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 303, "end": 304, "loc": { "start": { "line": 14, "column": 42 }, "end": { "line": 14, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "seedersFolder", "start": 307, "end": 320, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 15, "column": 15 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 320, "end": 321, "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 15, "column": 16 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./seeders", "start": 322, "end": 333, "loc": { "start": { "line": 15, "column": 17 }, "end": { "line": 15, "column": 28 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 333, "end": 334, "loc": { "start": { "line": 15, "column": 28 }, "end": { "line": 15, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 335, "end": 336, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 1 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 336, "end": 337, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 16, "column": 2 } } }, { "type": "CommentBlock", "value": "*\n * system seeder template path\n * @type {string}\n ", "start": 339, "end": 395, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 21, "column": 3 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 396, "end": 402, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 22, "column": 6 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 403, "end": 408, "loc": { "start": { "line": 22, "column": 7 }, "end": { "line": 22, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "systemSeederTemplate", "start": 409, "end": 429, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 33 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 430, "end": 431, "loc": { "start": { "line": 22, "column": 34 }, "end": { "line": 22, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "path", "start": 432, "end": 436, "loc": { "start": { "line": 22, "column": 36 }, "end": { "line": 22, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 436, "end": 437, "loc": { "start": { "line": 22, "column": 40 }, "end": { "line": 22, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "join", "start": 437, "end": 441, "loc": { "start": { "line": 22, "column": 41 }, "end": { "line": 22, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 441, "end": 442, "loc": { "start": { "line": 22, "column": 45 }, "end": { "line": 22, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "__dirname", "start": 445, "end": 454, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 23, "column": 11 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 454, "end": 455, "loc": { "start": { "line": 23, "column": 11 }, "end": { "line": 23, "column": 12 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../../templates/seeder.ejs", "start": 458, "end": 486, "loc": { "start": { "line": 24, "column": 2 }, "end": { "line": 24, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 487, "end": 488, "loc": { "start": { "line": 25, "column": 0 }, "end": { "line": 25, "column": 1 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 488, "end": 489, "loc": { "start": { "line": 25, "column": 1 }, "end": { "line": 25, "column": 2 } } }, { "type": "CommentBlock", "value": "*\n * system template for user-config path\n * @type {string}\n ", "start": 491, "end": 556, "loc": { "start": { "line": 27, "column": 0 }, "end": { "line": 30, "column": 3 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 557, "end": 563, "loc": { "start": { "line": 31, "column": 0 }, "end": { "line": 31, "column": 6 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 564, "end": 569, "loc": { "start": { "line": 31, "column": 7 }, "end": { "line": 31, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "systemConfigTemplate", "start": 570, "end": 590, "loc": { "start": { "line": 31, "column": 13 }, "end": { "line": 31, "column": 33 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 591, "end": 592, "loc": { "start": { "line": 31, "column": 34 }, "end": { "line": 31, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "path", "start": 593, "end": 597, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false,