Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] TypeScript重构 #60

Closed
47 tasks done
Yesterday17 opened this issue Apr 7, 2019 · 0 comments
Closed
47 tasks done

[feature request] TypeScript重构 #60

Yesterday17 opened this issue Apr 7, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request solved-next-release 已完成,预定在下一个 release 版本中发布

Comments

@Yesterday17
Copy link
Member

Yesterday17 commented Apr 7, 2019

从原 #59 迁移。

重构

  • 将根目录下的文件 ts 化
  • 将 bin 目录下的文件 ts 化
  • 将 manager 目录下的文件 ts 化

主进程

  • config
  • i18n
  • utils
  • index
  • mod (现 resourcepack)
  • execute (现 extension)

窗口

  • ManagerWindow
  • GameWindow
  • AudioWindow
  • ToolWindow

ToolWindow 的沙箱

  • Buffer
  • __dirname
  • __appdata
  • globalPath
  • fs
  • path

渲染进程

  • InfoCard
  • Panel
  • Network
  • Ping
  • Update
  • ResourcePacks
  • Extensions
  • Tools
  • Setting
  • About
  • main

Common

  • Card
  • ButtonCard
  • CheckBoxCard
  • CardList

Extra

  • darkMode
  • springFestivalTheme

增强

  • 加入 json-schema
  • 使用更轻量的 koa.js 替代 express
  • 使用类似 koa.js 中间件的形式处理插件逻辑 直接将扩展代码注入至 code.js 前后
  • 加入类似 vscodeportable方案

修改

  • 统一构建工具为 electron-builder
  • 使用 electron-builder--publish 发布到 release (GITHUB_TOKEN 环境变量须修改为 GH_TOKEN)
  • 更改代码 lint 工具为 tslint
  • 移除 gulp

个人测试

  • Manjaro (based on ArchLinux) 下测试
  • 浏览器端测试
  • 局域网内其他浏览器端测试
@Yesterday17 Yesterday17 added the enhancement New feature or request label Apr 7, 2019
@Yesterday17 Yesterday17 self-assigned this Apr 7, 2019
@iamapig120 iamapig120 pinned this issue May 24, 2019
@Yesterday17 Yesterday17 added the solved-next-release 已完成,预定在下一个 release 版本中发布 label Jul 16, 2019
@iamapig120 iamapig120 unpinned this issue Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request solved-next-release 已完成,预定在下一个 release 版本中发布
Projects
None yet
Development

No branches or pull requests

1 participant