Questions tagged [ember-cli]

Node.js module which provides a command line interface (CLI) for developing Ember.js applications

A command line utility for creating applications.

Applications created with this tool benefit by being structured according to an ideal project template for Ember.js. It is also "batteries included", with support for generators/blueprints, dependency management, asset compilation, testing, and ECMAScript 6 modules.

For more information see the project documentation and the GitHub project page.

3109 questions
24
votes
2 answers

Multiple "apps" with ember-cli

I'm trying to migrate to ember-cli from some old homegrown build tools. Our app is quite large and is actually split into several ember.js single page apps (e.g. index, admin, reports, etc) that share a common set of utils and components. I'm trying…
Wesley Workman
  • 917
  • 9
  • 22
24
votes
7 answers

Why is my ember-cli build time so slow on windows?

Ember-cli is building very slowly with ember server on windows. Build successful - 13126ms. Slowest Trees | Total -------------------------------+---------------- TreeMerger (vendor) | 3154ms TreeMerger (stylesAndVendor)…
Weston
  • 2,732
  • 1
  • 28
  • 34
23
votes
1 answer

Handling errors with the (now default) Ember Data JSON-API adapter

I am using Ember 1.13.7 and Ember Data 1.13.8, which by default use the JSON-API standard to format the payloads sent to and received from the API. I would like to use Ember Data's built-in error handling in order to display red "error" form fields…
danr1979
  • 461
  • 1
  • 3
  • 10
23
votes
2 answers

How to make a production ready build using Ember CLI?

I've been building a web app in Ember, and am ready to put it on a server for public use. I just want to make the /dist/ folder, which i will then manually upload to a server via FTP. How do I build a dist for this in Ember? I can't figure out how…
Drew Baker
  • 14,154
  • 15
  • 58
  • 97
23
votes
4 answers

How to debug ember-cli tests running in phantomjs

Context: I have an acceptance test for my ember-cli application, and the test passes just fine in Chrome. However, in phantomjs, my test fails -- the UI doesn't get created the same way, and I'm trying to work out why. (I think the test is broken…
Dan Mitchell
  • 715
  • 1
  • 7
  • 13
23
votes
3 answers

Ember CLI: where to reopen framework classes

I'd like to reopen Ember or Ember Data framework classes. Using Ember CLI, where is the right place to put these so that they get initialized property? Here's an example of something I'd like to do: import DS from 'ember-data'; DS.Model.reopen({ …
Johnny Oshika
  • 54,741
  • 40
  • 181
  • 275
21
votes
3 answers

"[Report Only] Refused to load the font..." error message on console

More specifically: [Report Only] Refused to load the font 'data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABBQAAoAAAAAG…H8zVsjnmMx0GcZ2HGViNOySWEa9fvEQtW43Nm+EOO0ZIpdLbMXoVzPJkcfHT6U+gLEpz/MAAAA' because it violates the following…
18
votes
1 answer

In Ember 1.13 and later what key should I use with each when iterating over an array of strings?

In Ember 1.13 the following code generates a warning: {{#each widgetNames as |widgetName|}} {{component widgetName removeWidget="removeWidget"}} {{/each}} Where widgetNames is an array of strings in a parent controller. widgetNames: [] In Ember…
Adam Knights
  • 2,141
  • 1
  • 25
  • 48
18
votes
1 answer

Meaning of ember init 'Yndh'

What does Yndh mean when you run ember init? I get this: installing [?] Overwrite .editorconfig? (Yndh) Yn is yes and no. Anyone know what dh means?
Nelu
  • 16,644
  • 10
  • 80
  • 88
18
votes
3 answers

Save Port number for ember-cli in a config file

I'm sure I remember seeing some documentation somewhere that had a way to save the port number ember-cli uses in a config file, but it doesn't seem to say anything in the documentation. I have to use ember server --port 9999 but i would love to…
real_ate
  • 10,861
  • 3
  • 27
  • 48
17
votes
1 answer

Using Instance Initializers with Ember 1.12.0 and the Ember CLI

After updating my app to Ember 1.12.0, I notice lots of warnings like this: lookup was called on a Registry. The initializer API no longer receives a container, and you should use an instanceInitializer to look up objects from the container. See…
Alex LaFroscia
  • 961
  • 1
  • 8
  • 24
17
votes
3 answers

Correct way to access current application configuration

I added some configurations to myapp/config/environment: if (environment === 'development') { ENV.APP.AuthURL = 'http://localhost:5000/'; } Now, to access this configuration should I use some method or directly accessing window.Myapp?
Mateus Vahl
  • 979
  • 2
  • 12
  • 29
17
votes
2 answers

Acceptance test for file uploading in ember cli

I'd like to create a basic acceptance test in ember that uploads a file. I can mock the server with Pretender, but I need to know how to fill the input type="file" field with a file from my filesystem. So the questions are basically: How to fill…
Ungue
  • 442
  • 5
  • 14
17
votes
3 answers

How do you serve ember-cli from https://localhost:4200 in development

For our authentication to work with our ember app we need to serve the app from a secure url. We have a self signed ssl cert. How do I setup the ember-cli to serve the index.html form a https domain. Cheers
kiwiupover
  • 1,782
  • 12
  • 26
17
votes
2 answers

How to properly generate resources and routes with Ember CLI

I'm trying to define a resource and route like this with Ember CLI. this.resource('events', function() { this.route('view', { path: "/:id"}) }); If I try this: ember g resource events/view I get this: this.resource('events/view', {…
williamt
  • 413
  • 2
  • 4
  • 15