Ember-cli将文件移动到外部文件夹 [英] Ember-cli moving files to an external folder

查看:148
本文介绍了Ember-cli将文件移动到外部文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个像c:/ foo / bar / ember
的ember CLI应用程序,并希望将最终生成的文件复制到c:/ foo / emberApp。



当我做了西兰花制作时,我将所有的内置文件放到c:/ foo / bar / ember / dist中。我想选择一些这些文件,并将它们移动到c:/ foo / emberApp。什么是最好的方法呢?我看到人们使用咕噜声,但这意味着我会失去西兰花速度的增长。我的brocfile只是基本的ember-cli一个,没有修改。如果有任何帮助,我将包括以下内容。



Brocfile.js

  var EmberApp = require('ember- CLI / LIB /花椰菜/余烬应用内'); 


var app = new EmberApp({
storeConfigInMeta:false
});


module.exports = app.toTree();


解决方案

您可以传递 -path 参数,以构建如此 ember build --output-path = / your / desired / path



更多信息可以在这个部分找到文档和来源


So I have an ember CLI app that's in something like 'c:/foo/bar/ember' and want to have the final generated files copy to 'c:/foo/emberApp'.

When I do the broccoli build i get all the built files into c:/foo/bar/ember/dist. I'd like to pick some of these files and move them to c:/foo/emberApp. What's the best way to go about this? I've seen people use grunt but this would mean I lose the broccoli speed increase. My brocfile is just the basic ember-cli one, no modifications. I'll include below in case it's of any help.

Brocfile.js

var EmberApp = require('ember-cli/lib/broccoli/ember-app');


var app = new EmberApp({
    storeConfigInMeta: false
});


module.exports = app.toTree(); 

解决方案

You can pass the output-path argument to build like so ember build --output-path=/your/desired/path.

More info can be found in this section of the docs and in the source.

这篇关于Ember-cli将文件移动到外部文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆