We’re upgrading to EmberCLI and I just ran into a problem with the needs array. We have a controller in app/controllers/folders/commands.coffee
that we require in a number of other controllers. Currently, the needs array uses dots:
needs: ['folders.commands']
But, EmberCLI needs a slash to find the controller:
needs: ['folders/commands']
The solution I’ve come up with so far is to add the following sed command to our migration script:
sed --regexp-extended --in-place '/needs:/s/\./\//' $new_path
where $new_path
is the name of the file in the ember-cli repo.
This is the first “show stopper” where I’ve hit a real conflict between Ember and EmberCLI. For just about every other case, I’ve been able to find a syntax that works in both. Anyway, I was just interested to see how other people were dealing with needs.
Thanks!