Comparing version 0.0.1 to 0.0.2
@@ -39,34 +39,24 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var spawn = require('child_process').spawn; | ||
module.exports = { | ||
name: 'dev', | ||
run: function (toolbox) { return __awaiter(void 0, void 0, void 0, function () { | ||
var generate, info; | ||
var currentDir, child; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
generate = toolbox.template.generate, info = toolbox.print.info; | ||
return [4 /*yield*/, generate({ | ||
template: 'init/config.json', | ||
target: "./.supabase/config.json" | ||
})]; | ||
case 1: | ||
_a.sent(); | ||
return [4 /*yield*/, generate({ | ||
template: 'init/emulator.yml', | ||
target: "./.supabase/emulator.yml" | ||
})]; | ||
case 2: | ||
_a.sent(); | ||
return [4 /*yield*/, generate({ | ||
template: 'init/README.txt', | ||
target: "./.supabase/README.txt" | ||
})]; | ||
case 3: | ||
_a.sent(); | ||
info("Project initialised."); | ||
return [2 /*return*/]; | ||
currentDir = toolbox.filesystem.path(); | ||
try { | ||
child = spawn('docker-compose', [ | ||
'-f', | ||
currentDir + "/.supabase/emulator.yml", | ||
"up" | ||
]); | ||
child.stdout.pipe(process.stdout); | ||
} | ||
catch (error) { | ||
console.log('error', error); | ||
} | ||
return [2 /*return*/]; | ||
}); | ||
}); } | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGV2LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbW1hbmRzL2Rldi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVBLE1BQU0sQ0FBQyxPQUFPLEdBQUc7SUFDZixJQUFJLEVBQUUsS0FBSztJQUNYLEdBQUcsRUFBRSxVQUFPLE9BQXVCOzs7OztvQkFHbkIsUUFBUSxHQUVsQixPQUFP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UFLLENBQUMsZ0JBQWdCLEVBQUU7b0JBQ2xDLElBQUk7b0JBQ0QsVUFBVSw0QkFBeUI7b0JBQ3RDLElBQUk7aUJBQ0wsQ0FBQyxDQUFBO2dCQUNGLEtBQUssQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQTthQUNsQztZQUFDLE9BQU8sS0FBSyxFQUFFO2dCQUNkLE9BQU8sQ0FBQyxHQUFHLENBQUMsT0FBTyxFQUFFLEtBQUssQ0FBQyxDQUFBO2FBQzVCOzs7U0FDRjtDQUNGLENBQUEifQ== |
@@ -48,2 +48,3 @@ "use strict"; | ||
generate = toolbox.template.generate, info = toolbox.print.info; | ||
toolbox.filesystem.append('.gitignore', '\n\n.supabase'); | ||
return [4 /*yield*/, generate({ | ||
@@ -73,2 +74,2 @@ template: 'init/config.json', | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5pdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21tYW5kcy9pbml0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRUEsTUFBTSxDQUFDLE9BQU8sR0FBRztJQUNmLElBQUksRUFBRSxNQUFNO0lBQ1osS0FBSyxFQUFFLENBQUMsR0FBRyxDQUFDO0lBQ1osR0FBRyxFQUFFLFVBQU8sT0FBdUI7Ozs7O29CQUduQixRQUFRLEdBRWxCLE9BQU8sa0JBRlcsRUFDWCxJQUFJLEdBQ1gsT0FBTyxXQURJLENBQ0o7b0JBRVgscUJBQU0sUUFBUSxDQUFDOzRCQUNiLFFBQVEsRUFBRSxrQkFBa0I7NEJBQzVCLE1BQU0sRUFBRSx5QkFBeUI7eUJBQ2xDLENBQUMsRUFBQTs7b0JB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0YscUJBQU0sUUFBUSxDQUFDOzRCQUNiLFFBQVEsRUFBRSxtQkFBbUI7NEJBQzdCLE1BQU0sRUFBRSwwQkFBMEI7eUJBQ25DLENBQUMsRUFBQTs7b0JBSEYsU0FHRSxDQUFBO29CQUNGLHFCQUFNLFFBQVEsQ0FBQzs0QkFDYixRQUFRLEVBQUUsaUJBQWlCOzRCQUMzQixNQUFNLEVBQUUsd0JBQXdCO3lCQUNqQyxDQUFDLEVBQUE7O29CQUhGLFNBR0UsQ0FBQTtvQkFFRixJQUFJLENBQUMsc0JBQXNCLENBQUMsQ0FBQTs7OztTQUM3QjtDQUNGLENBQUEifQ== |
{ | ||
"name": "supabase", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Supabase CLI", | ||
@@ -5,0 +5,0 @@ "private": false, |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
27179
23
374
2