Skip to content

Commit

Permalink
Update Yo Office steps to include changing folders (#410)
Browse files Browse the repository at this point in the history
Update the text to make it clear about the steps once the project is created.
This includes changing directories, installing certificates, and other actions.
  • Loading branch information
TCourtneyOwen authored and akrantz committed Feb 4, 2019
1 parent 98ea988 commit b75d6af
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,19 @@ module.exports = yo.extend({
/* Next steps and npm commands */
this.log('----------------------------------------------------------------------------------------------------------\n');
this.log(` ${chalk.green('Congratulations!')} Your add-in has been created! Your next steps:\n`);
this.log(` 1. Launch your local web server via ${chalk.inverse(' npm start ')} (you may also need to`);
this.log(` trust the Self-Signed Certificate for the site if you haven't done that)`);
this.log(` 2. Sideload the add-in into your Office application.\n`);
this.log(` Please refer to resource.html in your project for more information.`);
this.log(` Or visit our repo at: https://github.com/officeDev/generator-office \n`);
this.log(` 1. Go the directory where your project was created:\n`);
this.log(` ${chalk.bold('cd ' + this._destinationRoot)}\n`);
this.log(` 2. Trust the Self-Signed Certificate for your local web server (if you haven't already done that).`);
this.log(` For more information, visit https://github.com/OfficeDev/generator-office/blob/master/src/docs/ssl.md.\n`);
this.log(` 3. Start the local web server:\n`);
this.log(` ${chalk.bold('npm start')}\n`);
this.log(` 4. Sideload the add-in into your Office application:\n`);
this.log(` ${chalk.bold('npm run sideload')}\n`);
this.log(` 5. Open the project in VS Code:\n`);
this.log(` ${chalk.bold('code .')}\n`);
this.log(` For more information, visit http://code.visualstudio.com.\n`);
this.log(` Please refer to resource.html in your project for additional information,`);
this.log(` or visit our repo at: https://github.com/officeDev/generator-office.\n`);
this.log('----------------------------------------------------------------------------------------------------------\n');
this._exitProcess();
},
Expand All @@ -345,13 +353,13 @@ module.exports = yo.extend({
{
this.log('----------------------------------------------------------------------------------\n');
this.log(` Creating manifest for ${chalk.bold.green(this.project.projectDisplayName)} at ${chalk.bold.magenta(this._destinationRoot)}\n`);
this.log('----------------------------------------------------------------------------------\n\n');
this.log('----------------------------------------------------------------------------------');
}
else
{
this.log('\n----------------------------------------------------------------------------------\n');
this.log(` Creating ${chalk.bold.green(this.project.projectDisplayName)} add-in for ${chalk.bold.magenta(_.capitalize(this.project.host))} using ${chalk.bold.yellow(this.project.scriptType)} and ${chalk.bold.green(_.capitalize(this.project.projectType))} at ${chalk.bold.magenta(this._destinationRoot)}\n`);
this.log('----------------------------------------------------------------------------------\n\n');
this.log('----------------------------------------------------------------------------------');
}
},

Expand Down

0 comments on commit b75d6af

Please sign in to comment.