Ember-cli将文件移动到外部文件夹 [英] Ember-cli moving files to an external folder
问题描述
的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屋!