@alexa-skill-components/ask-component
v0.1.1
Published
Command Line Interfaces for alexa skill components
Downloads
9
Readme
The Alexa Skills Component Command Line Interface (ask-component) is used to install and configure reusable components in alexa skills.
Getting Started
1. Install CLI
$ npm install -g @alexa-skill-components/ask-component
2. Install a component
For the installation of components the skill should be a node package and must contain package.json file for adding dependency of the components in the skill.
The package.json file can be created using npm init
command before installing a component.
To install a component in a skill run the following command from the root directory of the skill:
$ ask-component install --name <component-name>
This will install the component into the skill and add it as an npm dependency. It will alo output the path of generated configuration file oof the component that can be edited to configure the required component with custom inputs.
3. Configure the installed components
After editing the default config files run this command to compile the configuration
$ ask-component compile
For the components to work in the skill some change should be made to the interactin model files which are mentioned here.
4. Compile the skill
After the compiling the components compile the skill using the following command from @alexa/acdl package:
$ acc compile
5. Deploy the skill After successful compilation of the skill deploy the skill:
$ ask deploy