Commit Graph

785 Commits

Author SHA1 Message Date
Xu Chang 4cf91b6c6d 4.0.19-pub 2024-12-23 17:23:40 +08:00
pqcqaq 8eef012062 Merge branch 'dev' of https://gitea.51mars.com/Oak-Team/oak-cli into dev 2024-12-10 20:37:28 +08:00
pqcqaq 975f2b4184 将webpackbar的依赖移动至dependencies 2024-12-10 20:37:18 +08:00
Xu Chang 5a3db3a8b0 4.0.19-dev 2024-12-10 19:23:52 +08:00
Xu Chang 75a2af1fcf 4.0.18-pub 2024-12-10 19:22:47 +08:00
wkj 71fbc88306 增加koa-logger 日志中间件 2024-12-10 12:09:56 +08:00
pqcqaq 4bfafa31d3 支持自定义的rules 2024-12-09 23:09:43 +08:00
Pan Qiancheng c347120c8b 模板中的一处错误 2024-12-09 21:20:05 +08:00
Pan Qiancheng 53c3ec35a3 一处笔误 2024-12-09 21:18:25 +08:00
Pan Qiancheng 919783a28a watch 功能提供了更加丰富的配置项和生命周期钩子 2024-12-09 20:56:05 +08:00
pqcqaq ac37c9d79e watch函数返回dispose方法,支持优雅停机 2024-12-09 20:14:08 +08:00
Pan Qiancheng 5434fe0429 支持传入watchOptions 2024-12-08 13:30:16 +08:00
Pan Qiancheng 7afe4f9583 支持module.rules 2024-12-08 13:21:58 +08:00
pqcqaq 165fba6628 plugins允许函数 2024-12-08 01:23:09 +08:00
pqcqaq dd03257367 config中添加插件类型支持 2024-12-08 01:19:18 +08:00
pqcqaq 6e211b447c CompilerConfiguration提供更加完善的类型信息 2024-12-08 01:10:27 +08:00
pqcqaq ffe98e1710 修改示例模板中的compiler.js 2024-12-08 00:22:45 +08:00
pqcqaq a5bd91754f 为项目中的compiler.js创建配置时提供类型支持 2024-12-08 00:20:56 +08:00
pqcqaq 9ea3535b12 取消默认自动打开浏览器,oak-cli添加--open参数,在服务启动后自动打开 2024-12-08 00:08:59 +08:00
pqcqaq d58dadbdd1 为webpack添加编译进度条 2024-12-08 00:08:21 +08:00
pqcqaq 702d72a54c 4.0.18-dev 2024-12-08 00:07:08 +08:00
Xu Chang 55cbc61f08 4.0.17-pub 2024-12-05 12:08:38 +08:00
Pan Qiancheng 3cf3ae4ee9 watch命令直接替换start 2024-12-05 11:57:52 +08:00
Pan Qiancheng 4a064afcc5 编译 2024-12-04 17:04:51 +08:00
Pan Qiancheng 6fc13e5a17 忽略xml 2024-12-04 16:50:24 +08:00
Pan Qiancheng 3f4c86783e 编译 2024-12-04 16:48:03 +08:00
Pan Qiancheng 712964f288 server watch移至cli中 2024-12-04 16:47:08 +08:00
Pan Qiancheng 84993373d7 添加lodash的类型依赖 2024-12-04 16:46:27 +08:00
Pan Qiancheng d74152ffa8 一处类型错误 2024-12-04 16:46:14 +08:00
Pan Qiancheng e77abce3f0 Merge branch 'dev' of https://gitea.51mars.com/Oak-Team/oak-cli into dev 2024-12-04 16:21:13 +08:00
Pan Qiancheng 9d33e3ce7b watchServer现在支持copyjson和xml等文件 2024-12-04 16:21:00 +08:00
Xu Chang 43f6003401 4.0.17-dev 2024-12-04 10:27:15 +08:00
Xu Chang 1d55517fd0 4.0.16-pub 2024-12-04 10:25:16 +08:00
Pan Qiancheng f58d22cb24 完善watch的逻辑,如果一个文件未被后端使用,现在只进行编译 2024-12-03 16:55:39 +08:00
Pan Qiancheng cceea8dd5e 优化了一下watchServer,在编译前先判断这个文件是否被appLoader使用,如果没有使用,则说明不被后端依赖,直接跳过 2024-12-01 13:44:52 +08:00
pqcqaq 7ebe0c3eea fixed 2024-11-30 10:38:10 +08:00
pqcqaq 6217b72652 热重载在编译前先检查语法错误,若存在语法错误,输出后直接返回 2024-11-29 23:58:01 +08:00
pqcqaq cf209f37c2 热重载需要在停机后清空lib以下目录的缓存,以便之后重新require导入 2024-11-29 23:30:48 +08:00
pqcqaq 9acec82bd6 build 2024-11-29 22:58:20 +08:00
pqcqaq f2f6c7e0e8 在watchServer中允许trace日志输出调用位置 2024-11-29 18:52:52 +08:00
pqcqaq a88cb606b7 测试,修复了几处问题 2024-11-29 13:46:47 +08:00
pqcqaq 17e074a06c 模板中添加server:start:watch和build:watch命令 2024-11-29 13:29:33 +08:00
pqcqaq e40639fad7 startup 函数在服务器模式可返回shutdown方法,用于编程式重启服务器,并在后端热重载的脚本中使用了新的shutdown方式 2024-11-29 13:19:33 +08:00
Pan Qiancheng 48bdd6631f cli的build支持了stackSize参数设置node最大栈大小 2024-11-28 14:24:23 +08:00
pqcqaq 0b2c18b363 修改了模板文件,将通用的内容直接放在模板中 2024-11-28 13:26:57 +08:00
pqcqaq f13e953692 对编译后的module alias提供支持 2024-11-28 12:04:26 +08:00
pqcqaq 88df72c589 watch时忽略必定是前端的目录 2024-11-27 21:34:33 +08:00
pqcqaq 8c82b16e79 Merge branch 'dev' of https://gitea.51mars.com/Oak-Team/oak-cli into dev 2024-11-27 21:28:32 +08:00
pqcqaq c748434354 在模板中新增前后端模式的watch相关功能 2024-11-27 21:28:25 +08:00
Xu Chang 83e05359e9 4.0.16-pub 2024-11-27 19:29:07 +08:00