Ember-cli excludes directory under "tests" from viewing "ember serve"

Is there a way to exclude a subdirectory of "tests" from monitoring ember?

ex. I have a deer under the “trials” called “selenium”.

If "ember serve" works, and I do "echo xyz> bam" in the selenium folder,

the ember serve console displays "file modified by selenium / bam" and rebuilds the application.

I would like to understand if there is a way to exclude all selenium dir without pushing it out of the test folder (although now I am moving the directory)

+1
source share
1 answer

or:

You can use broccoli-unwatched-tree .

var seleniumTree = new UnwatchedTree('tests/selenium'); Brocfile.js, module.exports = app.toTree(seleniumTree);

, , - , , Broccoli:: Watcher .


:

, , read() cleanup(), , cleanup() , broccoli-bower.

// Almost the same as using a plain string for a tree; but unlike a plain
// string, Broccoli won't watch this
function UnwatchedTree (dir) { this.dir = dir }
UnwatchedTree.prototype.read = function (readTree) { return this.dir }
UnwatchedTree.prototype.cleanup = function () { }
+3

All Articles