From 3b57973dd8923d5df50dadb6bad2c80e5b9b2490 Mon Sep 17 00:00:00 2001 From: Emilio Munoz Date: Tue, 20 Aug 2019 11:12:53 -0700 Subject: [PATCH] Update ContributionGuide.md --- specs/ContributionGuide.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/specs/ContributionGuide.md b/specs/ContributionGuide.md index 8c977e1ad..75fd6f2b1 100644 --- a/specs/ContributionGuide.md +++ b/specs/ContributionGuide.md @@ -3,11 +3,12 @@ ## Steps to create a new plugin 1. Clone the repo by running 'git clone https://github.com/microsoft/botframework-cli.git' 2. Inside the project folder run 'npm run build' - 3. If you want to create a new plugin, inside the packages folder run 'npx oclif plugin ' - 4. Add @microsoft/bf-cli-command as a dependency + 3. If you want to create a new plugin, inside the packages folder(https://github.com/microsoft/botframework-cli/tree/master/packages) run 'npx oclif plugin ' + 4. Go to the folder created by the previous command and add @microsoft/bf-cli-command as a dependency in your package.json file + 5. At the root level(https://github.com/microsoft/botframework-cli) run npm run build to bootstrap the packages ## Steps to create a new command 1. To add a command, inside the plugin folder run 'npx oclif command '. If you want to add a subcommand just name it colon separated as 2. Replace the import 'import {Command, flags} from '@oclif/command' line inside the newly created command with 'import {Command, flags} from '@microsoft/bf-cli-command' 3. Add the type to the flags property like this: static flags: flags.Input = {} - 4. Implement the run method \ No newline at end of file + 4. Implement the run method