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
205
votes
1 answer

ember-cli-code-coverage mocha showing 0% coverage when there are tests

I'm using ember-cli-code-coverage with ember-cli-mocha. When I run COVERAGE=true ember test I'm getting 0% coverage for statements, functions, and lines. Yet, I have tests that are covering those sections. Any I missing something in my setup? unit…
wwwuser
  • 6,282
  • 8
  • 52
  • 64
95
votes
15 answers

Iframe in Chrome error: Failed to read 'localStorage' from 'Window': Access denied for this document

I have a web app which uses localStorage. Now we want to embed this web app on other (third-party) sites via iframe. We want to provide an iframe embed similar to youtube so that other websites can embed our web app in an iframe. Functionally it is…
80
votes
9 answers

Recommended way to include bootstrap library in Ember.JS ember-cli App

I am trying to install properly Twitter Bootstrap in my current ember-cli project. I did install bootstrap with bower : bower install --save bootstrap Now the library is downloded in /vendor/bootstrap/dist/(css|js|fonts) I tried what is mentioned…
Guidouil
  • 1,694
  • 2
  • 18
  • 18
60
votes
2 answers

Violating Content Security Policy directive after ember-cli 0.0.47 upgrade

I upgraded my ember-cli app to 0.0.47 and am now getting a bunch of errors in my browser console related to the content security policy. How do I fix this issue? Refused to load the script 'http://use.typekit.net/abcdef.js' because it violates the…
Peter Brown
  • 50,956
  • 18
  • 113
  • 146
56
votes
1 answer

Getting "Uncaught Error: Assertion Failed: Ember Views require jQuery between 1.7 and 2.1" with app created through ember-cli

I'm starting with ember. I followed the Getting Started guide at emberjs.com and managed to create a new ember application by running the following commands: npm install -g ember-cli ember new sample-app Everything went successful and I can see the…
Daniel B. Lopez
  • 663
  • 5
  • 5
54
votes
1 answer

Ember CLI testing complicated model relationships

As far as I can see, when testing ember-data models in ember CLI, all relationships have to be listed in needs. This is fine if the structure is simple, but in many cases there will be multiple layers. For example, if models are set up with the…
aquavitae
  • 17,414
  • 11
  • 63
  • 106
43
votes
4 answers

Uncaught Error: Assertion Failed: calling set on destroyed object

working in ember-cli testing. After all tests passed it returns extra two test with errors. Uncaught Error: Assertion Failed: calling set on destroyed object Source : '../dist/assets/vendor.js:13269' this is one unit test configuration import…
Nininea
  • 2,671
  • 6
  • 31
  • 57
33
votes
5 answers

How to use third party npm packages with ember cli app

EDIT: this is actually about any npm package which is not designed to play along with ember. In my case, I tried to make crypto-js work, but it seems to be always the same trouble with any npm package not specially designed for ember cli. I want to…
Preexo
  • 2,102
  • 5
  • 29
  • 37
32
votes
2 answers

{{content-for 'head'}} Ember-cli

I've been using Yeoman ember generator for the past 1 month and now, I'd like to give ember-cli a try. I run the generator and launch the app, everything works fine. ember new my-new-app ember server but I'd like to know how does {{content-for…
Sukhito
  • 407
  • 1
  • 4
  • 9
31
votes
3 answers

How to mock an Ember-CLI service in an acceptance test?

Quick summary/tldr: It seems that Ember's container lookup process + Ember-CLI's module resolver doesn't allow manually un-registering a service and then registering a replacement if the original service can be resolved using the resolver (I want…
CraigTeegarden
  • 8,173
  • 8
  • 38
  • 43
30
votes
10 answers

Running an angular 2 application built locally on Chrome using angular-cli without a node server

I will make my Angular 2 question very precise. 1. I am using: Angular 2, angular-cli: 1.0.0-beta.15, ( webpack building ) node: 6.4.0, os: linux x64 2. What I want to achieve: I want to build my project in a way that after the build ( ng…
BartB
  • 413
  • 1
  • 5
  • 9
30
votes
1 answer

ember-cli where to put images

In the ember-cli folder structure where should I put images? /app /bower_components /config /dist /node_modules /public /tests /vendor I am using ember-cli version 1.13.1.
Undefined
  • 11,234
  • 5
  • 37
  • 62
29
votes
6 answers

Import jquery with ember-cli

Since ember-cli 0.0.34 jquery is removed from the .jshint file as predefined. So jquery needs to be imported, but I get the following error when doing it: import $ from 'jquery'; The error I get is: ENOENT, no such file or directory…
Willem de Wit
  • 8,604
  • 9
  • 57
  • 90
27
votes
3 answers

Disable / turn off LiveReload server in Emberjs / Ember-cli

I use Cloud9 IDE, which only exposes port 80 and prevents LiveReload from connecting. I get this error: GET https://myapp.c9.io:35729/livereload.js?snipver=1 net::ERR_CONNECTION_REFUSED Unless someone knows of a fix, I'd like to simply turn this…
James Gentes
  • 7,528
  • 7
  • 44
  • 64
26
votes
4 answers

How to pass API keys in environment variables to Ember CLI using process.env?

How do I pass environment variables from bashrc to Ember CLI. I imagine a situation where you need stripe api keys or pusher api-keys and you have them in your environment variables in bashrc. How do you pass the api-keys to Ember CLI. I tried…
brg
  • 3,915
  • 8
  • 37
  • 66
1
2 3
99 100