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
13
votes
5 answers

Add node module to ember CLI app

I would like to use this Node.js module https://www.npmjs.com/package/remarkable-regexp in my Ember-CLI application. How do I make it available to the Ember application? I tried it by adding this to the…
Hedge
  • 16,142
  • 42
  • 141
  • 246
13
votes
2 answers

Overwrite DS.Store ember-cli

I have some code that needs to run on store.init. I tried extending the default store in app/store.js, ember-cli seems to pick it up as a store, but the object in this.store is not a store My store definition: import DS from 'ember-data'; export…
Billybonks
  • 1,568
  • 3
  • 15
  • 32
13
votes
1 answer

Using ENV values in ember-cli app during build

I would like to set my RESTAdapter host based on the build environment. I assume the value can be stored in config/environment.js like this: if (environment === 'development') { ENV.API_ENDPOINT = 'http://localhost:8080'; } if (environment ===…
Weston
  • 2,732
  • 1
  • 28
  • 34
13
votes
1 answer

How to set rest adapter in ember cli generated model

I am trying to get my ember model to use a remote rails api. I've tried extending DS.RESTAdapter but I don't know how to tell the model to use those settings. My model never reaches out to localhost:3000. //app.js import Ember from…
MikeV
  • 657
  • 1
  • 8
  • 20
13
votes
1 answer

JSHint Error : This character may get silently deleted by one or more browsers

line 1, col 0, This character may get silently deleted by one or more browsers. I get this error 4 times, for every .js file I've added. For instance error text: 'scripts/models/company.js: line 1, col 0, This character may get silently deleted…
Nininea
  • 2,671
  • 6
  • 31
  • 57
13
votes
4 answers

How to set flags in ember-cli, other than environment?

This is currently possible: ember build --environment=production ... and I would like to do something like this instead: ember build --environment=production --baseurl=foo but config/environment.js only gets passed in the value of environment. Is…
bguiz
  • 27,371
  • 47
  • 154
  • 243
12
votes
1 answer

How to extend an ember-cli addon?

In my ember-cli app i have installed an addon called 'ember-cli-selectize'. Looking at the directory structure i can see that its files are located at /node_modules/ember-cli-selectize'. Now i want to create a custom component that extends this…
Saarang
  • 155
  • 2
  • 8
12
votes
1 answer

Ember CLI and ASP.NET

I've successfully used the EmberJS JavaScript framework with an ASP.NET web application, by referencing ember.js file. I'm under the impression that Ember-CLI is the way Ember will be heading in future versions. If this is correct, what's the…
David Gardiner
  • 16,892
  • 20
  • 80
  • 117
12
votes
2 answers

How to use a favicon with ember-cli?

I had a favicon working for a while on my index template, but not any any other template, and now even my index template won't show it. I'm just in development, so I'm using ember server. index.html Just throwing…
redOctober13
  • 3,662
  • 6
  • 34
  • 61
12
votes
2 answers

Environment-based host in Ember CLI app

I'm trying to configure the adapter in my Ember CLI app to use a different host based on the environment. In dev, I want it to be the default current host (letting me customize it via the --proxy option, but in production I know it will be…
Sam Selikoff
  • 12,366
  • 13
  • 58
  • 104
12
votes
3 answers

Ember-CLI rundown using it with Laravel or other backend frameworks

Using the ember-starter-kit all I had to do was throw the contents of it in the /my_laravel_app/public folder and everything was fine. Now I am trying to create a project with laravel and ember-cli I'm a little confused as to how I need to structure…
user1952811
  • 2,398
  • 6
  • 29
  • 49
11
votes
1 answer

Ember 2.0 without Ember cli?

Seems nowadays everything including loading modules is generated from embercli. Is it possible to create a emberjs 2.0 application without the use of ember-cli? What are some limitations of not using ember-cli?
chrisjlee
  • 21,691
  • 27
  • 82
  • 112
11
votes
4 answers

How is Sorting achieved in an Ember model without using Array Controller?

Every google result is about an ArrayController sorting. Need a sorting mechanism without using ArrayController. There is a model where there are sort params. Like say 'sortOrder' as one of the properties in the model (which will be from a back…
Abhilash L R
  • 805
  • 1
  • 9
  • 24
11
votes
1 answer

How do I depend on the store as a service in Ember unit tests using qunit?

According to the blog-post for ember-data version 1.0.0-beta.16 the store can now be used as a service: TweetComposerComponent = Ember.Component.extend({ store: Ember.inject.service() }); However, I can't figure out how to do qunit unit…
Kevin Bullaughey
  • 2,556
  • 25
  • 37
11
votes
3 answers

Why the ember-cli is so slow

I migrated my grunt project to ember-cli, I found the time from file modification to liveload completion was so long, about 10 minutes. After I installed ember-cli-windows, ember-cli-windows-addon, no obvious prompt was gained. The following is one…
kiford
  • 1,219
  • 1
  • 12
  • 23