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

Denoのstd/pathに置き換える #2365

Merged
merged 12 commits into from
Nov 19, 2024

Conversation

sevenc-nanashi
Copy link
Member

内容

Denoのstd/pathはブラウザでも動くのでそれを使うようにします。
これによりvite-plugin-note-polyfillsを消せます。

関連 Issue

(なし)

スクリーンショット・動画など

(なし)

その他

prefer-node-protocolをしたい気持ちがあります。

@sevenc-nanashi sevenc-nanashi requested a review from a team as a code owner November 18, 2024 11:25
@sevenc-nanashi sevenc-nanashi requested review from Hiroshiba and removed request for a team November 18, 2024 11:25
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

方針は良さそうな認識です!
まだ全然見れてないですがコメントまで。

prefer-node-protocolをしたい気持ちがあります。

flat/recommendedに含まれてるっぽい・・・感じですかね・・・?

.eslintrc.js Outdated Show resolved Hide resolved
@voicevox-preview-pages
Copy link

voicevox-preview-pages bot commented Nov 18, 2024

🚀 プレビュー用ページを作成しました 🚀

更新時点でのコミットハッシュ:8207e3c

@sevenc-nanashi
Copy link
Member Author

多分prefer-node-protocolだけもできると思います

@Hiroshiba
Copy link
Member

Hiroshiba commented Nov 18, 2024

1個1個導入するか考えるの大変なので、まとめてドサッと入れちゃいたい気持ちがあります・・・!

@Hiroshiba
Copy link
Member

あ、それでも入れたいという感じでしたらまたコメントください。
実際入れてみてどう変わるか作ってみるのもありかも(意外とダメだったりしたら議論の意味がないので)

@Hiroshiba
Copy link
Member

(ちなみにテストが落ちていそうです 🙏 )

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!!

とても良い感じのリファクタリングだと感じました!

import { isWindows } from "./platform";

// OSにあったパス操作関数をエクスポートする。
// NOTE: @std/pathのWindows判定は差し替えられないので、ここで判定する
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(ただのコメントです)

なんとなくですが、今のコードとdenoのpathは完全互換ではないけど、大多数のブラウザやelectron環境で正しく動きそうな気はちょっとしてます。
えいやで変えてしまっても良いのかも?
(あるいは実は動かない環境がすでにあったり…?だとしたらこのコードは必須そう!)

src/helpers/path.ts Show resolved Hide resolved
src/helpers/platform.ts Show resolved Hide resolved

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 7 out of 22 changed files in this pull request and generated no suggestions.

Files not reviewed (15)
  • package.json: Language not supported
  • src/components/Sing/ToolBar/EditTargetSwicher.vue: Evaluated as low risk
  • src/components/Talk/TalkEditor.vue: Evaluated as low risk
  • src/components/Talk/AudioDetail.vue: Evaluated as low risk
  • src/components/Dialog/SettingDialog/SettingDialog.vue: Evaluated as low risk
  • src/store/project.ts: Evaluated as low risk
  • src/backend/browser/fileImpl.ts: Evaluated as low risk
  • src/type/preload.ts: Evaluated as low risk
  • src/sing/viewHelper.ts: Evaluated as low risk
  • .eslintrc.js: Evaluated as low risk
  • src/store/singing.ts: Evaluated as low risk
  • src/backend/electron/main.ts: Evaluated as low risk
  • src/store/utility.ts: Evaluated as low risk
  • tests/unit/composable/useModifierKey.spec.ts: Evaluated as low risk
  • tests/unit/domain/project.spec.ts: Evaluated as low risk
@Hiroshiba
Copy link
Member

マージします!

@Hiroshiba Hiroshiba merged commit 8277e60 into VOICEVOX:main Nov 19, 2024
10 checks passed
tsukumijima added a commit to Aivis-Project/AivisSpeech that referenced this pull request Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants