问题标签 [grunt-init]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
506 浏览

gruntjs - Grunt 正在抛出错误消息

我正在尝试在我的项目中运行 grunt,但我不断收到以下错误。我按照实际 Grunt 网站上的“入门”进行了操作,并且不断收到此信息。我还在我的 Gruntfile 中包含了代码

这是我下面的 gruntfile:

这些是我收到的错误消息:

未找到本地 Npm 模块“grunt-contrib-compass”。安装了吗?

未找到本地 Npm 模块“grunt-contrib-uglify”。安装了吗?

未找到本地 Npm 模块“grunt-newer”。安装了吗?

未找到本地 Npm 模块“grunt-contrib-watch”。安装了吗?

警告:找不到任务“更新:指南针”。使用 --force 继续。

0 投票
1 回答
48 浏览

templates - grunt-init 模板从 init.filesToCopy(props) 中排除文件

我刚刚开始使用 grunt-init。我有一切工作。而且我想知道是否有一种方法可以根据提示的答案从复制中排除文件。

重命名.js 文件

这个实现也没有帮助

0 投票
1 回答
13 浏览

angularjs - 如何根据 grunt-init 提示答案更新文件内容?

我使用 grunt-init 创建了一个自定义 angularjs 项目。并希望在创建项目时根据对提示的回答来编辑应用程序模块名称。但不知何故,当我使用 props 对象时,我不断得到空白字符串。

0 投票
1 回答
43 浏览

javascript - 如何使用 grunt / grunt-contrib-copy 多次复制文件夹结构

我有一个文件夹结构,我需要用自定义名称复制它来启动一个项目 - 我已经研究过使用自定义函数修改 grunt-contrib-copy :

但这只是使用我的数组中的名称生成文本文件,而不是多次复制文件夹及其内容。

谁能告诉我我哪里出了问题?