Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ember.js 我可以用Grunt运行npm模块吗?_Ember.js_Npm_Gruntjs - Fatal编程技术网

Ember.js 我可以用Grunt运行npm模块吗?

Ember.js 我可以用Grunt运行npm模块吗?,ember.js,npm,gruntjs,Ember.js,Npm,Gruntjs,我的问题很简单:我可以用gruntjs运行npm模块吗?我想逃离格伦特。或者是否有可能从gruntjs运行bash或python脚本?因为我没有看到这个模块的任何grunt插件,所以我不知道如何自动化模板编译(不仅仅是半自动化,通过编写一个带有特定参数的bash脚本来运行它)。我专门为此任务编写了一个grunt插件: 您可以深入了解我所做的工作的内部内容,也可以直接将其合并到您的grunt脚本中。如果您确实想使用bash路线,我在@sindresorhus's中获得了很好的成功 我不一定推荐这个

我的问题很简单:我可以用gruntjs运行npm模块吗?我想逃离格伦特。或者是否有可能从gruntjs运行bash或python脚本?因为我没有看到这个模块的任何grunt插件,所以我不知道如何自动化模板编译(不仅仅是半自动化,通过编写一个带有特定参数的bash脚本来运行它)。

我专门为此任务编写了一个grunt插件:


您可以深入了解我所做的工作的内部内容,也可以直接将其合并到您的grunt脚本中。

如果您确实想使用bash路线,我在@sindresorhus's中获得了很好的成功


我不一定推荐这个行动计划,因为它有点违背grunt的目的,但是,嘿,它是有效的。

谢谢,我使用了这个解决方案,因为它适合我的需要。