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 AttributeUtils_1 = __importDefault(require("./AttributeUtils"));
|
||||||
const ChildService_1 = __importDefault(require("./service/ChildService"));
|
const ChildService_1 = __importDefault(require("./service/ChildService"));
|
||||||
const const_1 = require("./const");
|
const const_1 = require("./const");
|
||||||
const taskCompleted_1 = __importDefault(require("./apl/taskCompleted"));
|
const TaskCompletedDerective_1 = __importDefault(require("./apl/TaskCompletedDerective"));
|
||||||
const LaunchRequestHandler = {
|
const LaunchRequestHandler = {
|
||||||
canHandle(handlerInput) {
|
canHandle(handlerInput) {
|
||||||
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'LaunchRequest';
|
return Alexa.getRequestType(handlerInput.requestEnvelope) === 'LaunchRequest';
|
||||||
|
@ -122,8 +122,8 @@ const KidShiftTaskCompleteIntentHandler = {
|
||||||
.getResponse();
|
.getResponse();
|
||||||
}
|
}
|
||||||
return TaskService_1.default.completeTask(task.id, child.id).then(() => {
|
return TaskService_1.default.completeTask(task.id, child.id).then(() => {
|
||||||
const dataSources = taskCompleted_1.default.createDataSources(task.name, " + " + task.reward + " 円");
|
const dataSources = TaskCompletedDerective_1.default.createDataSources(task.name, " + " + task.reward + " 円");
|
||||||
const directivePayload = taskCompleted_1.default.createDirectivePayload(dataSources);
|
const directivePayload = TaskCompletedDerective_1.default.createDirectivePayload(dataSources);
|
||||||
return handlerInput.responseBuilder
|
return handlerInput.responseBuilder
|
||||||
.speak(const_1.MESSAGES.TASK_COMPLETED)
|
.speak(const_1.MESSAGES.TASK_COMPLETED)
|
||||||
.addDirective(directivePayload)
|
.addDirective(directivePayload)
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,18 +1,25 @@
|
||||||
{
|
{
|
||||||
"name": "@amzn/hello-world",
|
"name": "kidshift-skills",
|
||||||
"version": "1.2.0",
|
"version": "0.0.1",
|
||||||
"description": "alexa utility for quickly building skills",
|
"description": "alexa utility for quickly building skills",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"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",
|
"license": "Apache License",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@types/node": "^20.14.10",
|
||||||
"ask-sdk-core": "^2.7.0",
|
"ask-sdk-core": "^2.7.0",
|
||||||
|
"ask-sdk-dynamodb-persistence-adapter": "^2.14.0",
|
||||||
"ask-sdk-model": "^1.19.0",
|
"ask-sdk-model": "^1.19.0",
|
||||||
"aws-sdk": "^2.326.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