We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
分享一个vscode+ahk的开发小技巧,可以快速迭代模块。 这个项目下载下来后,只要node就可以跑起来,(预先打开alist)进入 node-proxy 文件夹,运行 `npm i --omit=dev` `npm run serve`,马上就能跑起来。 我知道node,webpack有一种开发方式可以监听文件变化,保存后立即自动编译并热更新。不知道这个项目有没有,可能是 dev 指令,但没有下载完整依赖,运行不起来。 实际上可以用 vscode+ahk 加速,速度也很快。 原理:vscode 打开项目文件夹,编辑/修改后,点击某快捷键,之后由ahk接管,自动保存、自动重启serve进程。 以下代码: app.js 修改标题便于检测: ``` process.title = "Alist-Encrypt.js"; ``` ahk 绑定 f1 热键: ``` F1:: WinGetTitle,Title, A if(InStr(Title, "alist-encrypt")) { if(InStr(Title, "●")) { send, ^{s} } WinGet, WindowPID, PID, Alist-Encrypt.js if (WindowPID) { RunWait, TaskKill /PID %WindowPID% /F, , Hide } sleep, 100 WinGet, WindowPID, PID, Alist-Encrypt.js if (WindowPID) { RunWait, TaskKill /PID %WindowPID% /F, , Hide } Run, D:\software\alist-windows-amd64\start.bat ; start.bat 里面 cd 至 encrypt/node-proxy, 然后 npm serve. } return ```
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: