Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在编译 JS 文件后,我正在尝试将 Gulp 任务作为 Codekit Hook 运行。
我创建了一个新 Hook 并输入以下命令:
cd /path/to/my/web/project/ gulp default
每次 Codekit 编译我的 JS 文件时,我只想运行一个 gulp 任务。但什么也没有发生。我做错了什么?
如果我在终端中运行该任务,一切都很好。
谢谢你的帮助。
我的解决方案是制作一个 Shell 脚本并在 Codekit Hook 中直接链接到它:
例如:
./rungulptasks.sh
在“rungulptasks.sh”文件中,我放置了一个指向本地 gulp bin 的直接链接:
node_modules/.bin/gulp
现在它起作用了。解决了。
PS不要忘记使脚本可执行。