-
4.0.21 【支持了free endpoint等】 Stable
released this
2025-04-18 18:48:31 +08:00 | 78 commits to dev since this release- 支持了free endpoint
- socket订阅url, 支持返回不同的url
- 调整了template中的部分内容
Downloads
-
released this
2025-02-05 15:01:44 +08:00 | 96 commits to dev since this release- 增加了oakGetPackageJsonVersion的注入插件
- 环境变量增加 SUB_DIR_NAME,判断启动哪个项目
- alias由编译生成,移除genernal的alias
- 对模板进行了一堆的适配和修改
- 适配exception的改动
- 新增后台热更新,以及后台的分析和最小化打包功能,见下面说明
后台热更新和打包:
1. 新项目增加了一个npm run server:ana命令,可以将依赖的文件生成打包到build_gen文件夹中,可以直接启动 2. 现在npm run server:start,会监听src文件夹下面ts文件的改动,并自动编译重启后台。但启动时项目必须是build完成状态Downloads
-
released this
2024-12-23 17:23:40 +08:00 | 117 commits to dev since this release- 将webpackbar的依赖移动至dependencies
Downloads
-
4,0,18【大幅增加了webpack编译配置】 Stable
released this
2024-12-10 19:22:47 +08:00 | 121 commits to dev since this release- 为webpack添加编译进度条
- 取消默认自动打开浏览器,oak-cli添加--open参数,在服务启动后自动打开
- 为项目中的compiler.js创建配置时提供类型支持
- 修改示例模板中的compiler.js
- CompilerConfiguration提供更加完善的类型信息
- config中添加插件类型支持
- plugins允许函数
- 支持module.rules
- 支持传入watchOptions
- watch函数返回dispose方法,支持优雅停机
- watch 功能提供了更加丰富的配置项和生命周期钩子
- 增加koa-logger 日志中间件
- 修正了一些小的bug
Downloads
-
released this
2024-12-05 12:08:38 +08:00 | 138 commits to dev since this release- 完善了watch能力,并替换到正常的server:start脚本中
对于旧项目,需要进行以下操作
1. 在package.json中修改脚本:"server:start": "cross-env ENABLE_TRACE=true cross-env NODE_ENV=development cross-env OAK_PLATFORM=server node --stack-size=65500 scripts/watchServer.js", 2. 在package.json中安装dev依赖:module-alias,并添加以下内容: "_moduleAliases": { "@project": "./lib", "@oak-general-business": "./node_modules/oak-general-business/lib", "@oak-frontend-base": "./node_modules/oak-frontend-base/lib", "@oak-app-domain": "./lib/oak-app-domain", "@oak-pay-business": "./node_modules/oak-pay-business/lib" } 3.新增srcipts/watchServer.js脚本,内容如下: require('module-alias/register'); const { watch } = require('@xuchangzju/oak-cli/lib/server/watch'); const pwd = process.cwd(); watch(pwd);Downloads
-
released this
2024-12-04 10:25:16 +08:00 | 149 commits to dev since this release- 增加了对前后端开发模式下,可以热加载更新的能力
Downloads
-
【4.0.15】 增加了endpoints 接收文件 Stable
released this
2024-11-27 19:24:39 +08:00 | 167 commits to dev since this release- 移除了模板中html文件上echarts和wangeditor5的cdn
- oak-cli 创建模板项目 node版本需不小于16
- 增加了endpoints 接收文件
Downloads
-
【4.0.14】增加了socket的namespace Stable
released this
2024-11-19 09:10:53 +08:00 | 172 commits to dev since this release- 修正了部分BUG
- 增加了socket的namespace
- 适配了pnpm/yarn等其它包管理工具
Downloads
-
released this
2024-11-05 09:06:14 +08:00 | 255 commits to master since this release- cors头的规范化,和connector挂钩
- webpack中增加了部分和css相关的插件
Downloads