Skip to content

Commit

Permalink
Merge pull request #207 from devsapp/gwh/dipper
Browse files Browse the repository at this point in the history
fix:build.yaml不兼容
  • Loading branch information
rsonghuster authored Nov 1, 2024
2 parents 1b6bcdb + 23fa3dd commit a3ca814
Show file tree
Hide file tree
Showing 36 changed files with 165 additions and 31 deletions.
2 changes: 1 addition & 1 deletion web-framework/go/beego/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Edition: 3.0.0
Type: Project
Name: start-beego-cap
Version: 0.0.4
Version: 0.0.5
Provider:
- 阿里云
Description: 本案例展示了如何将 Beego —— 一款高效的Go语言Web框架,无缝部署至云原生应用开发平台,实现快速构建云原生应用的实践。Beego以其对Go特性的深度整合、简洁的MVC设计模式以及高性能著称,广泛应用于各类Web开发场景中。
Expand Down
6 changes: 6 additions & 0 deletions web-framework/go/beego/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
start_beego:
default:
languages:
- go1.8
steps:
- run: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go
path: ./code
defaultBuilder:
languages:
- go1.8
Expand Down
2 changes: 1 addition & 1 deletion web-framework/go/gin/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: start-gin-cap
Provider:
- 阿里云
Version: 0.0.3
Version: 0.0.4
Description: 本案例展示了如何将 Gin,Go 语言社区中倍受追捧的轻量级 Web 框架,迅速构建并部署至云原生应用开发平台(CAP)。Gin 凭借其高效的处理能力、极简设计及高度灵活性,赢得了众多 Go 开发者的芳心,成为快速开发高质量 Web 应用和服务的首选武器。
HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/go/gin
Organization: 阿里云函数计算(FC)
Expand Down
6 changes: 6 additions & 0 deletions web-framework/go/gin/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
start_gin:
default:
languages:
- go1.8
steps:
- run: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o target/main
path: ./code
defaultBuilder:
languages:
- go1.8
Expand Down
2 changes: 1 addition & 1 deletion web-framework/java/springboot-database/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: start-springboot-database
Provider:
- 阿里云
Version: 0.0.3
Version: 0.0.4
Description: 本案例是Springboot-Database模板,帮助用户拉起Springboot Web的函数服务和MySQL数据库服务,快速搭建一个基于RDS和Springboot的Java Web脚手架应用,并基于此进行二次开发。
HomePage: https://github.com/devsapp/start-web-framework
Organization: 阿里云函数计算(FC)
Expand Down
13 changes: 13 additions & 0 deletions web-framework/java/springboot-database/src/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
start_springboot:
default:
languages:
- java8
steps:
- run: mvn package -DskipTests
path: ./code
defaultBuilder:
languages:
- java8
steps:
- run: mvn package -DskipTests
path: ./code
2 changes: 1 addition & 1 deletion web-framework/nodejs/egg/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: start-egg-cap
Provider:
- 阿里云
Version: 0.0.3
Version: 0.0.4
Description: 本案例展示了如何将 Egg.js,一款被开发者广泛使用的企业级 Node.js 框架,快速创建并部署到云原生应用开发平台 CAP。Egg.js其约定优于配置的设计哲学、高度扩展性和完善的文档。
HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/egg
Organization: 阿里云函数计算(FC)
Expand Down
8 changes: 7 additions & 1 deletion web-framework/nodejs/egg/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
start_egg:
default:
languages:
- nodejs20
steps:
- run: npm install --production
path: ./code
defaultBuilder:
languages:
- nodejs20
steps:
- run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production
- run: npm install --production
path: ./code
2 changes: 1 addition & 1 deletion web-framework/nodejs/excalidraw/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: website-excalidraw-cap
Provider:
- 阿里云
Version: 0.0.3
Version: 0.0.4
Description: 本案例展示了如何将 Excalidraw,一款功能强大、易于使用的绘图工具,快速创建并部署到云原生应用开发平台 CAP。Excalidraw 其简单直观的在线界面、手绘风格的图表和草图创作功能,广泛应用于在线会议、教育、软件设计等多种场景。
Organization: 阿里云函数计算(FC)
HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/excalidraw
Expand Down
9 changes: 9 additions & 0 deletions web-framework/nodejs/excalidraw/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
website_excalidraw:
default:
languages:
- nodejs20
steps:
# todo 之后改成不使用这个插件的形式
- plugin: website-plugin-v3
args:
port: 80
dist: /code/examples/excalidraw/with-script-in-browser/dist
defaultBuilder:
languages:
- nodejs20
Expand Down
2 changes: 1 addition & 1 deletion web-framework/nodejs/express/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Edition: 3.0.0
Type: Project
Name: start-express-cap
Version: 0.0.3
Version: 0.0.4
Provider:
- 阿里云
Description: 本案例展示了如何将 Express,一款基于 Node.js 平台的极简且灵活的 Web 应用开发框架,快速创建并部署到云原生应用开发平台 CAP。Express 框架其强大的特性、路由管理、中间件支持和模板引擎,广泛应用于 Web 和移动应用开发。
Expand Down
6 changes: 6 additions & 0 deletions web-framework/nodejs/express/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
start_express:
default:
languages:
- nodejs20
steps:
- run: npm install --production
path: ./code
defaultBuilder:
languages:
- nodejs20
Expand Down
2 changes: 1 addition & 1 deletion web-framework/nodejs/fastify/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Edition: 3.0.0
Type: Project
Name: start-fastify-cap
Version: 0.0.3
Version: 0.0.4
Provider:
- 阿里云
Description: 本案例展示了如何将 Fastify,一款基于 Node.js 平台的极简且灵活的 Web 应用开发框架,快速创建并部署到云原生应用开发平台 CAP。Fastify其高效的性能、最少的开销和强大的插件结构,是速度最快的 Web 框架之一。
Expand Down
8 changes: 7 additions & 1 deletion web-framework/nodejs/fastify/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
start_fastify:
default:
languages:
- nodejs20
steps:
- run: npm install --production
path: ./code
defaultBuilder:
languages:
- nodejs20
steps:
- run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production
- run: npm install --production
path: ./code
2 changes: 1 addition & 1 deletion web-framework/nodejs/hapi/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: start-hapi-cap
Provider:
- 阿里云
Version: 0.0.3
Version: 0.0.4
Description: 本案例展示了如何将 hapi.js,一款功能齐全的 Node.js 框架,快速创建并部署到云原生应用开发平台 CAP。hapi.js其内置的输入验证、缓存、身份验证、错误处理和强大的插件系统,广泛应用于构建可扩展和健壮的服务器端应用程序和服务。
HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/hapi
Organization: 阿里云函数计算(FC)
Expand Down
8 changes: 7 additions & 1 deletion web-framework/nodejs/hapi/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
start_hapi:
default:
languages:
- nodejs20
steps:
- run: npm install --production
path: ./code
defaultBuilder:
languages:
- nodejs20
steps:
- run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production
- run: npm install --production
path: ./code
2 changes: 1 addition & 1 deletion web-framework/nodejs/koa/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: start-koa-cap
Provider:
- 阿里云
Version: 0.0.3
Version: 0.0.4
Description: 本案例展示了如何将 Koa.js,一款现代化的 Node.js Web 框架,快速创建并部署到云原生应用开发平台 CAP。Koa.js 通过利用 async 函数,提供了一种更有效的方式来处理和响应 HTTP 请求,其精简的中间件层和流式执行模式使得代码编写更加高效和可维护。
HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/koa
Organization: 阿里云函数计算(FC)
Expand Down
8 changes: 7 additions & 1 deletion web-framework/nodejs/koa/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
start_koa:
default:
languages:
- nodejs20
steps:
- run: npm install --production
path: ./code
defaultBuilder:
languages:
- nodejs20
steps:
- run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production
- run: npm install --production
path: ./code
2 changes: 1 addition & 1 deletion web-framework/nodejs/nest/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Edition: 3.0.0
Type: Project
Name: start-nest-cap
Version: 0.0.3
Version: 0.0.4
Provider:
- 阿里云
Description: 本案例展示了如何将 Nest.js,一款灵活的 Node.js 框架,快速创建并部署到云原生应用开发平台 CAP。Nest.js 使用 TypeScript 作为主要语言,提供了严格的类型检查,采用模块化和面向切面编程的概念,使得代码组织结构清晰且易于测试。
Expand Down
12 changes: 10 additions & 2 deletions web-framework/nodejs/nest/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
start_nest:
default:
languages:
- nodejs20
steps:
- run: npm install
path: ./code
- run: npm run build
path: ./code
defaultBuilder:
languages:
- nodejs20
steps:
- run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install
- run: npm install
path: ./code
- run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm run build
- run: npm run build
path: ./code
2 changes: 1 addition & 1 deletion web-framework/nodejs/next/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: start-next-cap
Provider:
- 阿里云
Version: 0.0.3
Version: 0.0.4
Description: 本案例展示如何将 Next.js,一款功能强大的 React 框架,快速创建并部署到云原生应用开发平台 CAP。Next.js 专为开发高性能页面和应用而设计,提供流畅的浏览体验和高度优化的解决方案。
HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/next
Organization: 阿里云函数计算(FC)
Expand Down
16 changes: 14 additions & 2 deletions web-framework/nodejs/next/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
start_next:
default:
languages:
- nodejs20
steps:
- run: npm install
path: ./code
- run: npm run build
path: ./code
- run: cp -r public .next/standalone/public
path: ./code
- run: cp -r static standalone/.next/static
path: ./code/.next
defaultBuilder:
languages:
- nodejs20
steps:
- run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install
- run: npm install
path: ./code
- run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm run build
- run: npm run build
path: ./code
- run: cp -r public .next/standalone/public
path: ./code
Expand Down
2 changes: 1 addition & 1 deletion web-framework/nodejs/nuxt/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Edition: 3.0.0
Type: Project
Name: start-nuxt-cap
Version: 0.0.3
Version: 0.0.4
Provider:
- 阿里云
Description: 本案例展示了如何将 Nuxt.js,一款在前端开发者社区中非常流行的 Vue.js 框架,快速创建并部署到云原生应用开发平台 CAP。Nuxt.js 通过提供自动化的流程和强大的默认设置,使得构建快速和优化的 Web 应用程序变得简单。
Expand Down
12 changes: 10 additions & 2 deletions web-framework/nodejs/nuxt/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
start_nuxt:
default:
languages:
- nodejs20
steps:
- run: npm install --production
path: ./code
- run: npm run build
path: ./code
defaultBuilder:
languages:
- nodejs20
steps:
- run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production
- run: npm install --production
path: ./code
- run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm run build
- run: npm run build
path: ./code
2 changes: 1 addition & 1 deletion web-framework/nodejs/thinkjs/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: start-thinkjs-cap
Provider:
- 阿里云
Version: 0.0.3
Version: 0.0.4
Description: 本案例展示了如何将 ThinkJS,一款高效的 Node.js 框架,快速创建并部署到阿里云函数计算 FC。ThinkJS 采用了全新的 ES6/7 语法,提供了更优雅的异步代码编写方式,显著提高了开发效率。
HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/nodejs/thinkjs
Organization: 阿里云函数计算(FC)
Expand Down
8 changes: 7 additions & 1 deletion web-framework/nodejs/thinkjs/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
start_thinkjs:
default:
languages:
- nodejs20
steps:
- run: npm install --production
path: ./code
defaultBuilder:
languages:
- nodejs20
steps:
- run: PATH=/usr/local/versions/node/v20.8.1/bin:$PATH && npm install --production
- run: npm install --production
path: ./code
2 changes: 1 addition & 1 deletion web-framework/python/django/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: start-django-cap
Provider:
- 阿里云
Version: 0.0.3
Version: 0.0.4
Description: 本案例展示了如何将 Django,一款非常受欢迎的 Web 框架,快速创建并部署到云原生应用开发平台 CAP。Django 以其强大的功能、易用性、完善的生态系统和长期的社区支持,广泛应用于 Web 应用开发、API 以及后台管理系统等多种场景。
HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/python/django
Organization: 阿里云函数计算(FC)
Expand Down
8 changes: 8 additions & 0 deletions web-framework/python/django/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
start_django:
default:
languages:
- python3.10
steps:
- run: mkdir -p python
path: ./code
- run: pip install -r requirements.txt -t ./python
path: ./code
defaultBuilder:
languages:
- python3.10
Expand Down
2 changes: 1 addition & 1 deletion web-framework/python/fastapi/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: start-fastapi-cap
Provider:
- 阿里云
Version: 0.0.3
Version: 0.0.4
Description: 本案例展示了如何将 FastAPI,一款快速且高效的 Web 框架,快速创建并部署到云原生应用开发平台 CAP。FastAPI 以其出色性能、自动文档生成、数据验证和转换、类型注解支持等特点。
Organization: 阿里云函数计算(FC)
Effective: Public
Expand Down
8 changes: 8 additions & 0 deletions web-framework/python/fastapi/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
start_fastapi:
default:
languages:
- python3.10
steps:
- run: mkdir -p python
path: ./code
- run: pip install -r requirements.txt -t ./python
path: ./code
defaultBuilder:
languages:
- python3.10
Expand Down
2 changes: 1 addition & 1 deletion web-framework/python/flask/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: start-flask-cap
Provider:
- 阿里云
Version: 0.0.3
Version: 0.0.4
Description: 本案例展示了如何将 Flask,一款非常受欢迎的 Web 框架,快捷创建并部署到云原生应用开发平台 CAP。Flask 以其轻量级、简洁性和易用性著称,特别适用于小型、简单的 Web 应用或 API 开发。
HomePage: https://github.com/devsapp/start-web-framework/tree/dipper/web-framework/python/flask
Organization: 阿里云函数计算(FC)
Expand Down
8 changes: 8 additions & 0 deletions web-framework/python/flask/src/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
start_flask:
default:
languages:
- python3.10
steps:
- run: mkdir -p python
path: ./code
- run: pip install -r requirements.txt -t ./python
path: ./code
defaultBuilder:
languages:
- python3.10
Expand Down
Loading

0 comments on commit a3ca814

Please sign in to comment.