V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
binggg
V2EX  ›  程序员

一体化部署工具 CloudBase Framework 开发简报(2020-08-05)

  •  
  •   binggg ·
    binggg · 2020-08-05 10:10:24 +08:00 · 1721 次点击
    这是一个创建于 1350 天前的主题,其中的信息可能已经有所发展或是发生改变。

    // 题图由NouploadPixabay上发布

    一体化部署工具介绍 https://www.v2ex.com/t/689723#reply19

    1. 新版本发布

    CloudBase Framework 0.7 版本已发布

    https://github.com/TencentCloudBase/cloudbase-framework/releases/tag/0.7

    更新日志:

    新功能

    • Website 插件支持注入自定义环境变量 (#50)
    • Website 插件自定义 pakcage 安装命令(#46)
    • Node 插件支持 Vercel 类型应用(#49)
    • Framework 内核支持自定义应用名
    • 支持自动检测 Koa 应用(#52 )
    • 配置文件模板变量支持从进程环境变量传入
    • 新增 Omi 应用模板

    Bug 修复

    • 修复 --verbose 参数输出 debug 日志失效的问题
    • 修复部分 node 版本和 os 版本无法创建插件仓库的问题

    升级新版 CLI 工具体验,在命令行执行

    npm install -g @cloudbase/cli@latest 
    

    升级新版本,体验 CloudBase Framework 新功能~

    特性预览 1: Koa 应用自动检测

    img

    特性预览 2: Website 插件支持自定义 package 安装命令

    可以使用 tnpm, cnpm, yarn 等工具加速安装过程

    特性预览 3: Website 插件支持注入自定义环境变量

    {
      "envId": "fx",
      "functionRoot": "cloudfunctions",
      "framework": {
        "name": "vue",
        "plugins": {
          "client": {
            "use": "@cloudbase/framework-plugin-website",
            "inputs": {
              "buildCommand": "npm run build",
              "outputPath": "dist",
              "cloudPath": "/vue",
              "envVariables": {
                "envId": "fx",
                "testEnv": "foo"
              }
            }
          },
        }
      }
    }
    

    2. 文档优化

    • 新增注入「环境变量」的语法说明 (网站 /云应用 /函数)

    https://github.com/TencentCloudBase/cloudbase-framework/blob/master/doc/env-variables.md

    • 新增 「应用模板」开发三要素文档(施工中)

    https://github.com/TencentCloudBase/cloudbase-framework/blob/master/doc/app.md

    3. 新功能预告

    • CLI 工具支持从命令行一键导入 Github 应用项目
    • 支持在线一键云端部署 GitHub 项目
    • 部署错误日志细化,支持更加明确的日志输出
    • 新增 Deno 插件
    • 新增 PHP 插件

    4. Contributors

    新增 2 位贡献者,目前已有 14 名 Contributors,欢迎成为贡献者 https://github.com/TencentCloudBase/cloudbase-framework#contributors-

    5. ⭐️ Github Star

    当前 Github Star 数 344,欢迎 +1 支持

    https://github.com/TencentCloudBase/cloudbase-framework

    img扫码打开 Github 页面

    6. CloudBase Framework 生态

    7. 小调查

    你希望下一步 CloudBase Framework 提供怎样的功能升级或者优化

    3 条回复    2020-08-07 11:34:00 +08:00
    chendeshen
        1
    chendeshen  
       2020-08-05 13:41:42 +08:00 via Android   ❤️ 1
    非常好的项目,已经在用。
    binggg
        2
    binggg  
    OP
       2020-08-05 15:26:23 +08:00
    @chendeshen 多谢支持~
    securityCoding
        3
    securityCoding  
       2020-08-07 11:34:00 +08:00
    支持 , 生产力工具我都支持
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4143 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:18 · PVG 18:18 · LAX 03:18 · JFK 06:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.