Skip to content

Commit

Permalink
Merge pull request #34 from devsapp/new_version_v2
Browse files Browse the repository at this point in the history
New version v2
  • Loading branch information
anycodes authored Mar 30, 2022
2 parents 0dbd304 + 3843861 commit 1e76294
Show file tree
Hide file tree
Showing 201 changed files with 956 additions and 304 deletions.
18 changes: 15 additions & 3 deletions async-task/python3/hook/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,21 @@ async function preInit(inputObj) {
- FC : https://fc.console.aliyun.com/
Tips:
- Serverless Devs Version >= v2.0.103
- FC Component: https://www.serverless-devs.com/fc/readme
`)
- FC Component: https://www.serverless-devs.com/fc/readme`)

try {
var process = require('child_process')
const version = (await process.execSync('s -v')).toString()
const versionNumber = version.match(/s: 2\.0\.(.*?),/)[1]
if (Number(versionNumber) < 103) {
console.log('\x1B[31m%s\x1B[0m', ' * The application requires that the version of Serverless Devs is at least 2.0.103')
console.log('\x1B[31m%s\x1B[0m', ' * Plaese upgraded through [npm install -g @serverless-devs/s]\n\n')
}
} catch (e) {
console.log(e)
console.log(` - Serverless Devs Version >= v2.0.103
`)
}
}

async function postInit(inputObj) {
Expand Down
2 changes: 1 addition & 1 deletion async-task/python3/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Type: Application
Name: start-async-task-python3
Version: 0.1.3
Version: 0.1.4
Provider:
- 阿里云
Description: 快速部署一个 Python 3.6 的 async task 函数到阿里云函数计算。
Expand Down
2 changes: 1 addition & 1 deletion async-task/python3/src/s_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: hello-world-app
# access is the key information configuration required by the current application:
# Key configuration can refer to: https://www.serverless-devs.com/serverless-devs/command/config
# For the order of key usage, please refer to: https://www.serverless-devs.com/serverless-devs/tool#Key usage order and specification
access: "{{ access }}"
# access: "{{ access }}"

vars: # global variables
region: cn-hangzhou
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ async function preInit(inputObj) {

try {
var process = require('child_process')
const version = await process.execSync('s -v')
const versionNumber = version.stdout.match(/s: 2\.0\.(.*?),/)[1]
if (Number(version) < 103) {
console.log('\x1b[40m The application requires that the version of Serverless Devs is at least 2.0.103, you can be upgraded through [npm install -g @serverless-devs/s] \x1b[0m')
const version = (await process.execSync('s -v')).toString()
const versionNumber = version.match(/s: 2\.0\.(.*?),/)[1]
if (Number(versionNumber) < 103) {
console.log('\x1B[31m%s\x1B[0m', ' * The application requires that the version of Serverless Devs is at least 2.0.103')
console.log('\x1B[31m%s\x1B[0m', ' * Plaese upgraded through [npm install -g @serverless-devs/s]\n\n')
}
} catch (e) {
console.log(e)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Application
Name: start-fc-custom-container-event-cpp
Name: start-fc-custom-container-event-cpp1
Provider:
- 阿里云
Version: 1.3.4
Version: 1.3.11
Description: 快速部署一个基于 Custom Container Runtime 的 C++ Event 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: hello-world-app
# access is the key information configuration required by the current application:
# Key configuration can refer to: https://www.serverless-devs.com/serverless-devs/command/config
# For the order of key usage, please refer to: https://www.serverless-devs.com/serverless-devs/tool#Key usage order and specification
access: "{{ access }}"
# access: "{{ access }}"

vars: # global variables
region: cn-hangzhou
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ async function preInit(inputObj) {
- ACR: https://cr.console.aliyun.com/
Tips:
- Serverless Devs Version >= v2.0.103
- FC Component: https://www.serverless-devs.com/fc/readme
`)
- FC Component: https://www.serverless-devs.com/fc/readme`)

try {
var process = require('child_process')
const version = (await process.execSync('s -v')).toString()
const versionNumber = version.match(/s: 2\.0\.(.*?),/)[1]
if (Number(versionNumber) < 103) {
console.log('\x1B[31m%s\x1B[0m', ' * The application requires that the version of Serverless Devs is at least 2.0.103')
console.log('\x1B[31m%s\x1B[0m', ' * Plaese upgraded through [npm install -g @serverless-devs/s]\n\n')
}
} catch (e) {
console.log(e)
console.log(` - Serverless Devs Version >= v2.0.103
`)
}
}

async function postInit(inputObj) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-event-nodejs14
Provider:
- 阿里云
Version: 1.2.2
Version: 1.2.3
Description: 快速部署一个基于custom container runtime 的 nodejs14 Event 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: hello-world-app
# access is the key information configuration required by the current application:
# Key configuration can refer to: https://www.serverless-devs.com/serverless-devs/command/config
# For the order of key usage, please refer to: https://www.serverless-devs.com/serverless-devs/tool#Key usage order and specification
access: "{{ access }}"
# access: "{{ access }}"

vars: # global variables
region: cn-hangzhou
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ async function preInit(inputObj) {
- ACR: https://cr.console.aliyun.com/
Tips:
- Serverless Devs Version >= v2.0.103
- FC Component: https://www.serverless-devs.com/fc/readme
`)
- FC Component: https://www.serverless-devs.com/fc/readme`)

try {
var process = require('child_process')
const version = (await process.execSync('s -v')).toString()
const versionNumber = version.match(/s: 2\.0\.(.*?),/)[1]
if (Number(versionNumber) < 103) {
console.log('\x1B[31m%s\x1B[0m', ' * The application requires that the version of Serverless Devs is at least 2.0.103')
console.log('\x1B[31m%s\x1B[0m', ' * Plaese upgraded through [npm install -g @serverless-devs/s]\n\n')
}
} catch (e) {
console.log(e)
console.log(` - Serverless Devs Version >= v2.0.103
`)
}
}

async function postInit(inputObj) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-event-python3.9
Provider:
- 阿里云
Version: 1.2.2
Version: 1.2.3
Description: 快速部署一个基于custom container runtime 的 python3.9 Event 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: hello-world-app
# access is the key information configuration required by the current application:
# Key configuration can refer to: https://www.serverless-devs.com/serverless-devs/command/config
# For the order of key usage, please refer to: https://www.serverless-devs.com/serverless-devs/tool#Key usage order and specification
access: "{{ access }}"
# access: "{{ access }}"

vars: # global variables
region: cn-hangzhou
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ async function preInit(inputObj) {
- ACR: https://cr.console.aliyun.com/
Tips:
- Serverless Devs Version >= v2.0.103
- FC Component: https://www.serverless-devs.com/fc/readme
`)
- FC Component: https://www.serverless-devs.com/fc/readme`)

try {
var process = require('child_process')
const version = (await process.execSync('s -v')).toString()
const versionNumber = version.match(/s: 2\.0\.(.*?),/)[1]
if (Number(versionNumber) < 103) {
console.log('\x1B[31m%s\x1B[0m', ' * The application requires that the version of Serverless Devs is at least 2.0.103')
console.log('\x1B[31m%s\x1B[0m', ' * Plaese upgraded through [npm install -g @serverless-devs/s]\n\n')
}
} catch (e) {
console.log(e)
console.log(` - Serverless Devs Version >= v2.0.103
`)
}
}

async function postInit(inputObj) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-http-aspdotnetcore
Provider:
- 阿里云
Version: 1.2.2
Version: 1.2.3
Description: 快速部署一个基于custom container runtime 的 asp .netcore HTTP 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: hello-world-app
# access is the key information configuration required by the current application:
# Key configuration can refer to: https://www.serverless-devs.com/serverless-devs/command/config
# For the order of key usage, please refer to: https://www.serverless-devs.com/serverless-devs/tool#Key usage order and specification
access: "{{ access }}"
# access: "{{ access }}"

vars: # global variables
region: cn-hangzhou
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ async function preInit(inputObj) {
- ACR: https://cr.console.aliyun.com/
Tips:
- Serverless Devs Version >= v2.0.103
- FC Component: https://www.serverless-devs.com/fc/readme
`)
- FC Component: https://www.serverless-devs.com/fc/readme`)

try {
var process = require('child_process')
const version = (await process.execSync('s -v')).toString()
const versionNumber = version.match(/s: 2\.0\.(.*?),/)[1]
if (Number(versionNumber) < 103) {
console.log('\x1B[31m%s\x1B[0m', ' * The application requires that the version of Serverless Devs is at least 2.0.103')
console.log('\x1B[31m%s\x1B[0m', ' * Plaese upgraded through [npm install -g @serverless-devs/s]\n\n')
}
} catch (e) {
console.log(e)
console.log(` - Serverless Devs Version >= v2.0.103
`)
}
}

async function postInit(inputObj) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-http-cpp
Provider:
- 阿里云
Version: 1.2.2
Version: 1.2.3
Description: 快速部署一个基于custom container runtime 的 C++ HTTP 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: hello-world-app
# access is the key information configuration required by the current application:
# Key configuration can refer to: https://www.serverless-devs.com/serverless-devs/command/config
# For the order of key usage, please refer to: https://www.serverless-devs.com/serverless-devs/tool#Key usage order and specification
access: "{{ access }}"
# access: "{{ access }}"

vars: # global variables
region: cn-hangzhou
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ async function preInit(inputObj) {
- ACR: https://cr.console.aliyun.com/
Tips:
- Serverless Devs Version >= v2.0.103
- FC Component: https://www.serverless-devs.com/fc/readme
`)
- FC Component: https://www.serverless-devs.com/fc/readme`)

try {
var process = require('child_process')
const version = (await process.execSync('s -v')).toString()
const versionNumber = version.match(/s: 2\.0\.(.*?),/)[1]
if (Number(versionNumber) < 103) {
console.log('\x1B[31m%s\x1B[0m', ' * The application requires that the version of Serverless Devs is at least 2.0.103')
console.log('\x1B[31m%s\x1B[0m', ' * Plaese upgraded through [npm install -g @serverless-devs/s]\n\n')
}
} catch (e) {
console.log(e)
console.log(` - Serverless Devs Version >= v2.0.103
`)
}
}

async function postInit(inputObj) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-http-springboot
Provider:
- 阿里云
Version: 1.2.2
Version: 1.2.3
Description: 快速部署一个基于custom container runtime 的 springboot HTTP 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: hello-world-app
# access is the key information configuration required by the current application:
# Key configuration can refer to: https://www.serverless-devs.com/serverless-devs/command/config
# For the order of key usage, please refer to: https://www.serverless-devs.com/serverless-devs/tool#Key usage order and specification
access: "{{ access }}"
# access: "{{ access }}"

vars: # global variables
region: cn-hangzhou
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ async function preInit(inputObj) {
- ACR: https://cr.console.aliyun.com/
Tips:
- Serverless Devs Version >= v2.0.103
- FC Component: https://www.serverless-devs.com/fc/readme
`)
- FC Component: https://www.serverless-devs.com/fc/readme`)

try {
var process = require('child_process')
const version = (await process.execSync('s -v')).toString()
const versionNumber = version.match(/s: 2\.0\.(.*?),/)[1]
if (Number(versionNumber) < 103) {
console.log('\x1B[31m%s\x1B[0m', ' * The application requires that the version of Serverless Devs is at least 2.0.103')
console.log('\x1B[31m%s\x1B[0m', ' * Plaese upgraded through [npm install -g @serverless-devs/s]\n\n')
}
} catch (e) {
console.log(e)
console.log(` - Serverless Devs Version >= v2.0.103
`)
}
}

async function postInit(inputObj) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-websocket-golang
Provider:
- 阿里云
Version: 0.1.2
Version: 0.1.3
Description: 快速部署一个基于custom container runtime 的 Golang Wensocket 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: hello-world-app
# access is the key information configuration required by the current application:
# Key configuration can refer to: https://www.serverless-devs.com/serverless-devs/command/config
# For the order of key usage, please refer to: https://www.serverless-devs.com/serverless-devs/tool#Key usage order and specification
access: "{{ access }}"
# access: "{{ access }}"

vars: # global variables
region: cn-hangzhou
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ async function preInit(inputObj) {
- ACR: https://cr.console.aliyun.com/
Tips:
- Serverless Devs Version >= v2.0.103
- FC Component: https://www.serverless-devs.com/fc/readme
`)
- FC Component: https://www.serverless-devs.com/fc/readme`)

try {
var process = require('child_process')
const version = (await process.execSync('s -v')).toString()
const versionNumber = version.match(/s: 2\.0\.(.*?),/)[1]
if (Number(versionNumber) < 103) {
console.log('\x1B[31m%s\x1B[0m', ' * The application requires that the version of Serverless Devs is at least 2.0.103')
console.log('\x1B[31m%s\x1B[0m', ' * Plaese upgraded through [npm install -g @serverless-devs/s]\n\n')
}
} catch (e) {
console.log(e)
console.log(` - Serverless Devs Version >= v2.0.103
`)
}
}

async function postInit(inputObj) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-websocket-nodejs14
Provider:
- 阿里云
Version: 0.1.2
Version: 0.1.3
Description: 快速部署一个基于custom container runtime 的 nodejs14 WebSocket 类型的 Echo 函数到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: hello-world-app
# access is the key information configuration required by the current application:
# Key configuration can refer to: https://www.serverless-devs.com/serverless-devs/command/config
# For the order of key usage, please refer to: https://www.serverless-devs.com/serverless-devs/tool#Key usage order and specification
access: "{{ access }}"
# access: "{{ access }}"

vars: # global variables
region: cn-hangzhou
Expand Down
Loading

0 comments on commit 1e76294

Please sign in to comment.