thinreports / thinreports-section-editor

A template editor for Thinreports to edit Section Format templates
https://github.com/thinreports/thinreports
MIT License
4 stars 1 forks source link

vue/cli を剥がす #19

Open hidakatsuya opened 2 years ago

hidakatsuya commented 2 years ago

Status Vue CLI is now in maintenance mode. For new Vue 3 projects, please use create-vue to scaffold Vite-based projects.

加えて、https://github.com/thinreports/thinreports-section-editor/issues/14#issuecomment-1048867358 の通り、vue/cli の依存によって Security Update の対応ができない。複雑な依存によって eslint や webpack の loader のアップデートも難しくしている。

vue/cli を剥がす。

hidakatsuya commented 2 years ago

https://github.com/thinreports/thinreports-section-editor/commit/b4b04bcef923d5914e6da1c795a2968da84e8c12

Unable to resolve dependency on eslint-plugin-vue, removed vue/eslint-config-standard and use eslint-config-standard directly

の通り、@vue/eslint-config-standard は削除し、eslint-config-standard を直接使うようにしてある。

hidakatsuya commented 2 years ago

vue-cli-plugin-electron-builder は、basic-editor 同様、electron のビルドを https://github.com/electron/electron-packager に移行するのが良さそう。snap パッケージの作成などは https://github.com/electron-userland あたりを使えばできると思う。

hidakatsuya commented 2 years ago

@vue/cli-plugin-jest が jest v2.7 に依存しているので jest を上げることができない。electron は electron-packager へ移行し、vite に移行して cli を剥がすのが良さそう。vite の electron plugin もいくつかあるようだけど、できるなら依存しないようにしたい。