I'm on Windows 7, ember-cli version 40. Every time I make code changes I have to quit the server and restart it as I get Broccoli "ENOENT" errors for the tmp directory every time I save some changes.
The modus operandi for the past few days has just been to Ctrl+c, then do ember server
again. Build times are over 100 seconds. So I'm wondering if I should be doing ember build
at some point, then ember server
or if anyone knows why Broccoli won't rebuild automatically like it's supposed to. This is a small project right now, only a couple dependencies, but I just deleted over 6GB from the tmp folder because new stuff kept getting copied there.
EDIT
I upgraded to ember-cli version 42, and times on Windows 7 are down to 22sec or so, which is a big improvement
My Brocfile.js:
/* global require, module */
var pickFiles = require('broccoli-static-compiler');
var mergeTrees = require('broccoli-merge-trees');
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var fontTree;
var app = new EmberApp();
fontTree = pickFiles('vendor/fontawesome/fonts', {
srcDir: '/',
files: ['*'],
destDir: '/assets/fonts'
});
// Use `app.import` to add additional libraries to the generated
// output files.
app.import('bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap.js');
app.import('bower_components/moment/moment.js');
//module.exports = mergeTrees([app.toTree(), fontTree]);
module.exports = app.toTree();
ember server
- thecodejack