end()

in templates/typescript/generator-bot-virtualassistant/generators/skill/index.js [305:361]


  end() {
    if (this.props.finalConfirmation === true) {
      if (isAlreadyCreated) {
        this.log(
          chalk.red.bold(
            `-------------------------------------------------------------------------------------------- `
          )
        );
        this.log(
          chalk.red.bold(
            ` ERROR: It's seems like you already have an skill with the same name in the destination path. `
          )
        );
        this.log(
          chalk.red.bold(
            ` Try again changing the name or the destination path or deleting the previous bot. `
          )
        );
        this.log(
          chalk.red.bold(
            `-------------------------------------------------------------------------------------------- `
          )
        );
      } else {
        this.spawnCommandSync("npm run build", []);
        if (containsSpecialCharacter) {
          this.log(
            chalk.yellow(
              `\nYour skill name (${this.props.skillName}) had special characters, it was changed to '${finalSkillName}'`
            )
          );
        }

        this.log(chalk.green(`------------------------ `));
        this.log(chalk.green(` Your new skill is ready!  `));
        this.log(chalk.green(`------------------------ `));
        this.log(
          `Open the ` +
            chalk.green.bold(`README.md`) +
            ` to learn how to run your skill. `
        );
        this.log(
          chalk.blue(
            `\nNext step - being in the root of your generated skill, to deploy it execute the following command:`
          )
        );
        this.log(chalk.blue(`pwsh -File deployment\\scripts\\deploy.ps1`));
      }
    } else {
      this.log(chalk.red.bold(`-------------------------------- `));
      this.log(chalk.red.bold(` New skill creation was canceled. `));
      this.log(chalk.red.bold(`-------------------------------- `));
    }

    this.log(`\nThank you for using the Microsoft Bot Framework. `);
    this.log(`\n${tinyBot} The Bot Framework Team`);
  }