Open asarazan opened 3 years ago
Thank you for the feature request! We will look into adding this feature to the cli. We currently have some other tasks with higher priority, but this would be nice to have added to the run command if we can support it.
Sweet! Super happy to see y'all are open to this. Just FYI @CamdenFoucht, this PR is a hacky attempt to solve this that we're still using today: https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/pull/666
I'm submitting a...
I don't seem able to make local debugging work in non-standard environments. I should note that Volley's stack includes a combination of the Jovo framework for building, and a completely custom engine involving Typescript+Express at runtime.
This means that the location of the alexa metadata, including
ask-resources.json
is in/platforms/alexaSkill
, and the entry-point is insrc/index.ts
.It would be cool if I could execute
ask run
with a custom path to the folder containingask-resources.json
, and also a way to either invoke ts-node against a custom index.ts, or point directly to that source file and have ask determine to run the typescript toolchain.Alternately I could also point it at the
dist/
folder where the compiled javascript resides.Expected Behavior
I should be able to do something like
ask run --debug --root=platforms/alexaSkill --index=src/index.ts
ask run --debug --no-code && ts-node src/index.ts
Current Behavior
Certain parts of ask seem to be tightly coupled to the "standard" project layout, which locks custom tech out of local debugging. (I should note that we have been able to work around these problems over on the vscode/extension side)
Your Environment and Context