mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-25 17:14:03 +00:00
deploy
This commit is contained in:
parent
f3d5642eea
commit
f2125c51b5
|
@ -35,7 +35,7 @@ const TaskService_1 = __importDefault(require("./service/TaskService"));
|
|||
const AttributeUtils_1 = __importDefault(require("./AttributeUtils"));
|
||||
const ChildService_1 = __importDefault(require("./service/ChildService"));
|
||||
const const_1 = require("./const");
|
||||
const taskCompleted_1 = __importDefault(require("./apl/taskCompleted"));
|
||||
const TaskCompletedDerective_1 = __importDefault(require("./apl/TaskCompletedDerective"));
|
||||
const LaunchRequestHandler = {
|
||||
canHandle(handlerInput) {
|
||||
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'LaunchRequest';
|
||||
|
@ -122,8 +122,8 @@ const KidShiftTaskCompleteIntentHandler = {
|
|||
.getResponse();
|
||||
}
|
||||
return TaskService_1.default.completeTask(task.id, child.id).then(() => {
|
||||
const dataSources = taskCompleted_1.default.createDataSources(task.name, " + " + task.reward + " 円");
|
||||
const directivePayload = taskCompleted_1.default.createDirectivePayload(dataSources);
|
||||
const dataSources = TaskCompletedDerective_1.default.createDataSources(task.name, " + " + task.reward + " 円");
|
||||
const directivePayload = TaskCompletedDerective_1.default.createDirectivePayload(dataSources);
|
||||
return handlerInput.responseBuilder
|
||||
.speak(const_1.MESSAGES.TASK_COMPLETED)
|
||||
.addDirective(directivePayload)
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,18 +1,25 @@
|
|||
{
|
||||
"name": "@amzn/hello-world",
|
||||
"version": "1.2.0",
|
||||
"name": "kidshift-skills",
|
||||
"version": "0.0.1",
|
||||
"description": "alexa utility for quickly building skills",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"build": "tsc",
|
||||
"clean": "rm -rf ./lambda/*",
|
||||
"deploy": "npm run build && cp ./package.json ./lambda/ && git checkout master && git pull && git commit -am 'deploy' && git push && git checkout dev && git merge master && git push && git checkout master && ask deploy"
|
||||
},
|
||||
"author": "Amazon Alexa",
|
||||
"author": "KidShift Team",
|
||||
"license": "Apache License",
|
||||
"dependencies": {
|
||||
"@types/node": "^20.14.10",
|
||||
"ask-sdk-core": "^2.7.0",
|
||||
"ask-sdk-dynamodb-persistence-adapter": "^2.14.0",
|
||||
"ask-sdk-model": "^1.19.0",
|
||||
"aws-sdk": "^2.326.0",
|
||||
"ask-sdk-dynamodb-persistence-adapter": "^2.14.0",
|
||||
"axios": "^1.7.2"
|
||||
"axios": "^1.7.2",
|
||||
"pjson": "^1.0.9",
|
||||
"ts-loader": "^9.5.1",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.5.3"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user