如何将外部 git 回购的脚本集成到 grunt package.json

How to integrate a script of an external git repo into the grunt package.json

我刚刚偶然发现了 grunt,我想知道如何集成

  1. 本地 JS 脚本到 package.json 和
  2. 如何从 git
  3. 加载外部 JS 库(例如)

package.json 是正确的地方吗?我应该如何使用 grunt 在我的项目中包含外部 JS 库?

您可以使用 Grunt-Execute to execute the external JS for your project . From the comments the Appear 我觉得这不像是脚本。不确定它如何适应构建周期