Skip to content

Commit

Permalink
Merge pull request #15 from reflash/feature/upgrade-sdk-func
Browse files Browse the repository at this point in the history
  • Loading branch information
reflash authored Dec 5, 2022
2 parents 62e73ee + 43416f5 commit 2ae26f3
Show file tree
Hide file tree
Showing 9 changed files with 92 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ generated/
.ionide
test-coverage/
yarn-error.log
function.json
tsconfig.tsbuildinfo
sample_data.md

Expand Down
1 change: 0 additions & 1 deletion functionApp/.funcignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ node_modules/prettier
node_modules/lint-staged
node_modules/azurite
node_modules/@types
node_modules/@babel
node_modules/**/*.map
node_modules/**/*.md
node_modules/**/*.ts
18 changes: 18 additions & 0 deletions functionApp/botWebhook/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"disabled": false,
"bindings": [
{
"type": "httpTrigger",
"direction": "in",
"name": "req",
"route": "botWebhook",
"authLevel": "anonymous"
},
{
"type": "http",
"direction": "out",
"name": "res"
}
],
"scriptFile": "../dist/endpoints/botWebhook.js"
}
12 changes: 12 additions & 0 deletions functionApp/morningJob/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"disabled": false,
"bindings": [
{
"type": "timerTrigger",
"direction": "in",
"name": "timer",
"schedule": "0 0 8 * * *"
}
],
"scriptFile": "../dist/endpoints/morningJob.js"
}
12 changes: 12 additions & 0 deletions functionApp/ping/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"disabled": false,
"bindings": [
{
"type": "timerTrigger",
"direction": "in",
"name": "timer",
"schedule": "0 */15 * * * *"
}
],
"scriptFile": "../dist/endpoints/ping.js"
}
18 changes: 18 additions & 0 deletions functionApp/setBotWebhook/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"disabled": false,
"bindings": [
{
"type": "httpTrigger",
"direction": "in",
"name": "req",
"route": "setBotWebhook",
"authLevel": "anonymous"
},
{
"type": "http",
"direction": "out",
"name": "res"
}
],
"scriptFile": "../dist/endpoints/setBotWebhook.js"
}
13 changes: 13 additions & 0 deletions functionApp/todoistQueue/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"disabled": false,
"bindings": [
{
"type": "queueTrigger",
"direction": "in",
"name": "itemAdded",
"queueName": "todoist",
"connection": "AzureWebJobsStorage"
}
],
"scriptFile": "../dist/endpoints/todoistQueue.js"
}
18 changes: 18 additions & 0 deletions functionApp/todoistWebhook/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"disabled": false,
"bindings": [
{
"type": "httpTrigger",
"direction": "in",
"name": "req",
"route": "todoistWebhook",
"authLevel": "anonymous"
},
{
"type": "http",
"direction": "out",
"name": "res"
}
],
"scriptFile": "../dist/endpoints/todoistWebhook.js"
}
1 change: 1 addition & 0 deletions scripts/deploy-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ updateAppSettings() {
publishFunctionApp() {
# create node_modules symlink
ln -s ../node_modules/ node_modules
ln -s ../dist/ dist

func azure functionapp publish $functionAppName
updateAppSettings
Expand Down

0 comments on commit 2ae26f3

Please sign in to comment.