@gluestack/glue-plugin-engine
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "@gluestack/glue-plugin-engine", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Create an Application using GlueStack framework", | ||
@@ -5,0 +5,0 @@ "repository": { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -63,3 +40,3 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
exports.writeEnv = exports.constructEnvFromJson = void 0; | ||
var fs = __importStar(require("fs")); | ||
var write_file_1 = require("./write-file"); | ||
function constructEnvFromJson(functionInstance) { | ||
@@ -97,3 +74,5 @@ return __awaiter(this, void 0, void 0, function () { | ||
}); | ||
fs.writeFileSync(path, env); | ||
return [4, (0, write_file_1.writeFile)(path, env)]; | ||
case 2: | ||
_a.sent(); | ||
return [2]; | ||
@@ -100,0 +79,0 @@ } |
@@ -46,2 +46,3 @@ "use strict"; | ||
var write_env_1 = require("./helpers/write-env"); | ||
var add_main_router_1 = require("./helpers/add-main-router"); | ||
var GlueStackPlugin = (function () { | ||
@@ -81,3 +82,3 @@ function GlueStackPlugin(app, gluePluginStore) { | ||
engineInstance = _a.sent(); | ||
if (!engineInstance) return [3, 4]; | ||
if (!engineInstance) return [3, 5]; | ||
return [4, (0, write_env_1.writeEnv)(engineInstance)]; | ||
@@ -89,4 +90,7 @@ case 2: | ||
_a.sent(); | ||
_a.label = 4; | ||
case 4: return [2]; | ||
return [4, (0, add_main_router_1.addMainRouter)(engineInstance)]; | ||
case 4: | ||
_a.sent(); | ||
_a.label = 5; | ||
case 5: return [2]; | ||
} | ||
@@ -93,0 +97,0 @@ }); |
{ | ||
"name": "@gluestack/glue-plugin-engine", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Create an Application using GlueStack framework", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -1,2 +0,2 @@ | ||
import * as fs from "fs"; | ||
import { writeFile } from "./write-file"; | ||
import { PluginInstance } from "../PluginInstance"; | ||
@@ -21,3 +21,3 @@ | ||
fs.writeFileSync(path, env); | ||
await writeFile(path, env); | ||
} |
@@ -11,2 +11,3 @@ //@ts-ignore | ||
import { writeEnv } from "./helpers/write-env"; | ||
import { addMainRouter } from "./helpers/add-main-router"; | ||
@@ -66,2 +67,3 @@ // Do not edit the name of this class | ||
await engineInstance.getContainerController().up(); | ||
await addMainRouter(engineInstance); | ||
} | ||
@@ -68,0 +70,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152219
83
2660
7