UNPKG

@kubiklabs/wasmkit

Version:

Wasmkit is a development environment to compile, deploy, test, run cosmwasm contracts on different networks.

18 lines (17 loc) 973 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const playground_creation_1 = require("../internal/cli/playground-creation"); const config_env_1 = require("../internal/core/config/config-env"); const constants_1 = require("../lib/constants"); const task_names_1 = require("./task-names"); function default_1() { (0, config_env_1.task)(task_names_1.TASK_CREATE_PLAYGROUND, "Initialize the playground in the project directory") .addOptionalParam("templatePath", "Repository path of custom playground template", constants_1.TEMPLATES_GIT_REMOTE_PLAYGROUND) // add optional type of value here (example, string) for validation .setAction(playgroundTask); } exports.default = default_1; async function playgroundTask({ templatePath }, env) { const templateName = "playground"; const destination = process.cwd(); return await (0, playground_creation_1.createPlayground)(templatePath, templateName, destination, env); }