Comments (6)
Hi @matijagrcic
The Alexa hosted service does not support Typescript for now, so the compiled files (Javascript files) need to be included in the repo.
I have brought this request to the service team and tag this issue as a feature request. Thank you.
from ask-toolkit-for-vscode.
Thank you for your report.
It seems your skill is a self-hosted skill (non Alexa hosted skill). In the ASK Toolkit v.2.3.0, we start supporting self-hosted skills creation and deployment, but it's only for the skill pacakge. Lambda code can be manually retrieved and deployed, depending on how you source control your code.
In your case, I will suggest you to use ASK-CLI to deploy the skill code (see the document).
You have to build your Typescript code (ASK-CLI won't build it automatically), and then specify the entry point for your lambda code in the ask-resources.file
, it will be something like lambda/dist/index.js
.
Please let me know if there are any questions.Thanks
from ask-toolkit-for-vscode.
Hey @Chih-Ying thanks for responding.
The skill is a Alexa hosted skill which i have pulled down using the ASK Toolkit.
//ask-resources.json
"skillInfrastructure": {
"type": "@ask-cli/hosted-skill-deployer"
}
Given it's a Alexa hosted skill the source control is git so just a push or a ASK Toolkit Deployment work great as long as the index.js
is changed.
I know I need to build the TypeScript myself, and I've setup all that, but given the index.js needs to change and that's generated by TypeScript I don't want it included in the repo but providing the other location doesn't work, that is the ASK Toolkit doesn't seem to pick up the location it just does the git push.
//ask-resources.json
"code": {
"default": {
"src": "./lambda/build"
}
}
Is there any plans to support this thru ASK Toolkit and not jus the ASK-CLI?
from ask-toolkit-for-vscode.
Hi @matijagrcic
Thanks for the clarification.
ASK Toolkit handles Alexa hosted skills deployment in a different way. As you mentioned, ASK Toolkit uses git to do source control. In the deployment process, Ask Toolkit executes the git push
operation to push the whole skill project to Alexa CodeCommit repo, but does not do any files verification. That is the reason why specifying the lambda code source path in ask-resources.json
does not work for an Alexa hosted skill.
The Alexa service will build the skill code. Since ./lambda/index.js
is the required entry point for Alexa service, I think you can try to move all the Typescript build code under the lambda
folder, and make sure you have index.js
as the entry file.
Please let me know if there are any questions.Thanks!
from ask-toolkit-for-vscode.
Yeah, specifying the outDir
in tsconfig.json
to be lambda folder and the include to be index.ts
is working as expected as pointed before but then the compiled files are now part of the repo, which is what I'm trying to avoid.
Is there a way we can avoid this, maybe with Git hooks post-receive
or something?
from ask-toolkit-for-vscode.
Thanks @Chih-Ying, appreciate it, would be great if the TS support lands. Feel free to close this if needed.
from ask-toolkit-for-vscode.
Related Issues (20)
- CyberAlex HOT 2
- Unable to receive events for Reminders/Skill enable or disable for Alexa Hosted Skill HOT 2
- Consistent Undefined Response for Alexa Simulator HOT 5
- GitHub repository problem using alexa in visual studio code HOT 8
- Error while trying to register a device for skill testing in VS Code HOT 3
- How to do shared development of an open source Alexa Skill on GitHub? HOT 1
- Not able to hook local simulator or ask-cli simulator to the local debugger HOT 5
- Closed issue 277 is still an issue HOT 1
- Add full support for Arabic locale (ar-SA)
- Various operations result in a Git error "No skill repository found"
- "There is no interaction model for en-US. Select a different locale." HOT 5
- duture
- local debugging of skills using persistent storage not working HOT 3
- Ability to pull and edit widget artifacts
- Support for download and editing of APLA documents. HOT 1
- Ability to download all of a skill's APL documents
- Error occurred while trying to debug Alexa Skill using ASK Toolkit in Python environment on VSCode HOT 9
- n
- Skill clone failed. Reason: Git folder setup failed HOT 5
- Close as user error - please delete
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ask-toolkit-for-vscode.