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

Create a for loop that will iterate a certain number of times in Ember-CLI

I am in a situation in which I would like to be able to have a component or helper that would allow me to iterate a number of times and output the enclosed block each time. Something like this: {{#incremented-for 2}} block to…
John
  • 171
  • 1
  • 2
  • 11
9
votes
3 answers

Ember.js: HtmlBars and the Handlebars.compile command

I get the following error when running my app: Uncaught Error: Cannot call `compile` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `compile`. It is related to this piece of code: var CarouselView =…
DelphiLynx
  • 911
  • 1
  • 16
  • 41
9
votes
1 answer

Advantages of ember-cli over grunt / yeoman

My curiousity for ember-cli has grown after learning about it at a recent emberjs meetup. As far as i know, ember-cli grown out of ember-starter-kit. From there, ember-starter-kit was deprecated in favor of ember-cli recently. I've used grunt/…
chrisjlee
  • 21,691
  • 27
  • 82
  • 112
9
votes
2 answers

Testing an ember-data model - can't find relationship

I am trying to test a model relationship in an ember-cli application but it keeps telling me: No model was found for 'rateType'. It appears that it can't find my models. Files ~app/models/account.js ~app/models/rate-type.js Account Model export…
jax
  • 37,735
  • 57
  • 182
  • 278
9
votes
1 answer

Defining custom Ember.Object in Ember-CLI

Question Revised: 04/30/2015 I would like to define a new Ember.Object.extend() somewhere in my Ember CLI project, so that I can make new object instances from it using a line like myObject.create() Is it correct to store these in a directory like…
Grapho
  • 1,654
  • 15
  • 33
9
votes
3 answers

Ember-CLI: Is there a way to copy a (vendor) directory to /public/assets?

In an Ember-CLI project, if I add a directory containing webfonts and their CSS stylesheets to the public/assets directory, I can use them with something like @import 'assets/font/regular/stylesheet.css. This works fine. Ideally though, I'd like to…
JeroenHoek
  • 1,448
  • 15
  • 24
8
votes
1 answer

Why does Ember installs everything as devDependencies instead of normal dependency

Ember CLI applications have a package.json that lists everything as a dev dependency. Even stuff that is needed in the app's production version. For instance packages like ember and ember-data are installed as devdependencies. As a reference, here's…
Ernesto
  • 3,837
  • 6
  • 35
  • 56
8
votes
1 answer

How to use SASS and SCSS in my Ember Project

We are migrating our existing legacy project to Ember and Our project has both SASS and SCSS files. I am using ember-cli-sass to process SASS files by including an option "extension: 'sass'". It is working absolutely fine.But How can I configure…
Mega Mydear
  • 81
  • 1
  • 2
8
votes
2 answers

Reference rootURL / any absolute path in hbs

The ember-cli-generated index.html file includes this line and rootURL is replaced with respective the value from environment.js (just '/' in develompent). Now I want to include an icon in a…
8
votes
1 answer

How to upgrade ember cli version

I upgraded ember-cli to version 2.4.3 npm install -g ember-cli I can see -- ember-cli@2.4.3 , in the listed dependencies, but when I check : (master *)$ ember -v version: 2.4.2 node: 5.6.0 os: darwin x64 ember cli version is still 2.4.2 what's…
user762579
8
votes
1 answer

Serving ember app from IIS resulting in UnrecognizedURLError

I am trying to serve an ember app from IIS. I created a new app using ember new my-app and then ran ember build --environment production. This generated the files in the dist directory as expected. On the IIS side, I added a new website on the…
reggaemahn
  • 6,272
  • 6
  • 34
  • 59
8
votes
1 answer

Is it possible to pass environment variables to Ember cli sass during build?

I am using ember-cli-sass I want to define some sass variables depending on env variable. my theme1.scss file @if 'theme1' == process.env.THEME { $color-secondary: #eee; $color-primary: #ff0; } How can i send my env to the broccoli build…
David Chan
  • 7,347
  • 1
  • 28
  • 49
8
votes
1 answer

Ember CLI with Multiple Proxies

The Problem: I have an Ember CLI Application that will consume multiple APIs, which I need to proxy to in development mode. Background: I have a legacy api which exposes services at /api running on my local development machine at localhost:3000 I…
DVG
  • 17,392
  • 7
  • 61
  • 88
8
votes
1 answer

ember-cli@0.2.0 component templates in an addon

I'm wondering what the convention to use is when creating a component inside an addon project... If I generate a component in my addon project using ember-cli@0.2.0, the blueprint will create a js file in addon/components, a template in…
8
votes
1 answer

Ember CLI ES6 Modules: import path to app root

I find the import path in ES6 modules very confusing when using it in Ember CLI. For example, if I want to import a model deep in my application, I end up doing something like this: import User from '../../../../../models/user'; This is an…
Johnny Oshika
  • 54,741
  • 40
  • 181
  • 275