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
17
votes
2 answers

How to debug slow Ember CLI/Broccoli builds

My Ember CLI project is currently taking 8-9 seconds to build, and I'd like to understand why. The project is not that large (~180 files under app/ including hbs and scss). Here's my brocfile:…
Sam Selikoff
  • 12,366
  • 13
  • 58
  • 104
17
votes
3 answers

How do I change the dist-folder path in ember-cli?

I would like to use ember-cli with Laravel and I need to know how I can change the path of the dist folder.
Constantin
  • 388
  • 3
  • 15
17
votes
2 answers

Ember CLI Code Coverage Reports

I am using Ember CLI and I am trying to integrate code coverage reports with the built in Qunit tests that are run with testem. I tried to use Istanbul, but I couldn't get it to find the files to instrument because it seems to be looking in the tmp…
rwwagner90
  • 360
  • 3
  • 16
16
votes
3 answers

How to import an amd module in ember-cli?

I am building an EmberJS application with the great help of ember-cli, which is great, but I have an error and I cannot find what I am doing wrong. Here is what I do in my broccoli file: app.import('vendor/underscore/underscore.js', { exports:…
Michael Chiche
  • 191
  • 1
  • 8
16
votes
2 answers

How to use a custom Express server with Ember CLI?

I'm using Ember CLI 0.0.36. When I run ember server in my project folder, my understanding is that a server buried in some Brocoli process gets started. However I would like to program a custom Express server and have my app point to that Node.js…
cwarny
  • 997
  • 1
  • 12
  • 27
15
votes
2 answers

Failed to find a valid digest in the 'integrity' attribute for resource on a deployed emberjs application

I have an emberjs application which has been deployed and in google chrome browser im getting the following errors for 2 of the .js files. Failed to find a valid digest in the 'integrity' attribute…
Kay
  • 17,906
  • 63
  • 162
  • 270
15
votes
2 answers

How to create a ember version specific project?

When i use, ember new projname project is getting created with 2.7.0 ember version. I want to create a older version ember project. What i should use? [i checked options that can be used with new command, but none helps for this.]
Praveen Kumar
  • 946
  • 3
  • 10
  • 29
15
votes
1 answer

How to debug Javascript-Code produced and served by ember-cli?

Used version: 0.0.28-master-e49f47e669 I just started playing around with ember-cli (Great project btw.). After starting the server with 'ember serve', I had a look at the source (foo.js) in the Chrome-Dev-Tools. It takes Chrome several seconds to…
Steven
  • 439
  • 4
  • 15
14
votes
2 answers

How to find npm module inside ember-cli addon component

I was using ember-browserify to find npm modules in my ember-cli apps, but for some reason it does not work for ember-cli addons. So my question is: Is there another way to import npm modules into an ember-cli addon? Edit: So I couldn't import the…
FutoRicky
  • 903
  • 2
  • 9
  • 22
14
votes
1 answer

ember-cli meta config/environment file

I'm using ember-cli to structure my app. It compiles all the files to the dist/ directory. However as I inspected the compiled index.html I noticed it was creating this meta tag.
user391986
  • 29,536
  • 39
  • 126
  • 205
14
votes
3 answers

Ember CLI and code coverage

Has anyone managed to get code coverage working with an Ember CLI project? I've tried using blanket.js and istanbul, as have others here, here and here, neither with any success. I've managed to get each to actually produce a coverage report but the…
Wungsow
  • 153
  • 1
  • 5
14
votes
5 answers

How do I access the Ember global 'App' variable in an Ember CLI application?

I am creating an Ember application using the Ember CLI. I have a view which invokes a component that I created. I am trying to access the global App variable to create my component and insert it into my layout. The error: Uncaught ReferenceError:…
JackH
  • 4,613
  • 4
  • 36
  • 61
14
votes
1 answer

How to use the new ember-cli http-mock for API calls

I have a simple (so far) ember-cli project, and right now just have one model with FIXTURE data. I would like to mock up API stuff, either with actual JSON files, or with http-mock, which is the ember-cli version 41 name of what used to be…
redOctober13
  • 3,662
  • 6
  • 34
  • 61
14
votes
3 answers

Where do I put the translations for Ember-I18n in Ember-CLI?

I am new to ember, and ember-cli and I'm still learning where everything goes. I'm trying to add multilingual support with the ember-i18n module. I have the dependencies installed with bower bower install cldr ember-i18n --save And I've got my…
Weston
  • 2,732
  • 1
  • 28
  • 34
13
votes
1 answer

How to run action in Ember Controller afterRender

I am new to ember framework. I just want to execute a function that is defined inside the actions hook after the rendering completes. var Controller = Ember.Controller.extend({ actions: { foo: function() { console.log("foo"); } …
Mohan Kumar
  • 621
  • 1
  • 8
  • 25