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
10
votes
3 answers

Using LoDash with EmberCLI

Does anyone have a working example of a (simple) ember-app project built using Ember-CLI that uses LoDash? (e.g.: I want to use lodash, _.someLodashFunc, in my Routes and Controllers). I haven't seen any thread / article on the web that gives clear,…
Cokorda Raka
  • 4,375
  • 6
  • 36
  • 54
10
votes
2 answers

Is it possible to filterBy multiple values in emberjs?

Is it possible to filterBy multiple values in emberjs? I am trying to filter items in a table with different filtering variables and I'm having trouble doing so with more than one of those variables. Can anyone help out? I'm ne to emberjs and eager…
FutoRicky
  • 903
  • 2
  • 9
  • 22
10
votes
3 answers

Generate components in sub-folders in ember/ember-cli

Based on recommendations for the preparation for Ember 2.0... • In general, replace views + controllers with components • Only use controllers at the route level... ...we're supposed to eschew Controllers and Views in favor of Components. I…
typeoneerror
  • 55,990
  • 32
  • 132
  • 223
10
votes
1 answer

Associating custom Adapters with specific models in Ember CLI

We recently made the switch from Ember to Ember CLI and I'm not able to find the proper convention for associating a model with a custom adapter. History We created an adapter for models that have a file upload as part of their Create route so that…
William Newby
  • 621
  • 5
  • 14
10
votes
2 answers

How do I deploy Ember.js app developed with ember-cli on github pages?

I have successfully created a small application using ember-cli. I tried pushing it to gh-pages branch of my github repo but it shows error in browser console Uncaught ReferenceError: require is not defined loading of vendor.js and vendor.js files…
kushdilip
  • 7,606
  • 3
  • 24
  • 30
10
votes
1 answer

ember-cli --proxy works for GET but fails on PUT and POST

I'm trying to move my application from Ember Appkit to ember-cli and I'm having trouble replicating the proxy functionality previously provided by the APIMethod and proxyURL methods. I'm starting the server to proxy to localhost:3000 ember serve…
Jeffrey Biles
  • 988
  • 7
  • 24
10
votes
2 answers

Including dependencies with ember-cli

I am trying out ember-cli to get an ember project going, however I have previously relied on rails and the asset pipeline to compile all my js and (s)css for previous projects. I admit a weak understanding of js build tools, so apologies if the…
paddleman
  • 255
  • 2
  • 11
9
votes
0 answers

How can I speed up development builds while developing a linked package? (Ember/Broccoli)

My Broccoli builds take up a LOT of time. ~30 seconds to build every time I change a line of js (I mean the incremental re-builds with dev server running, NOT a complete build). Here's my situation. I have project A which is an ember addon to…
pixelpax
  • 1,435
  • 13
  • 22
9
votes
4 answers

The Broccoli Plugin: [UglifyWriter] failed with

I've had this error for 2 weeks now while trying to build an ember app in production. Building it in dev environment works fine. I also realized that disabling minifyJs in ember-cli-build prevents the error but then, the app gets stuck at loading in…
larisoft
  • 191
  • 2
  • 5
9
votes
1 answer

emberjs 2 connect to an api flask - Encountered a resource object with an undefined type

I'm learning Ember and after some basic test, I tried to connect with my API to created a search component. API 'application/vnd.api+json' { "data": [ { "expediente": "1717801", "fecha_de_presentacion": "01/02/2016 12:00:00 AM", …
paridin
  • 429
  • 7
  • 14
9
votes
1 answer

EmberJS, How to import files using root path?

I have this a model in this path: /my-project/app/models/my-model.js And I want to import it from a route in this path: /my-project/app/routes/battles/battle/combats/new.js The import sentence looks like this: import MyModel from…
fguillen
  • 36,125
  • 23
  • 149
  • 210
9
votes
1 answer

EmberJS Service Injection for Unit Tests (Ember QUnit)

Specs: Ember version: 1.13.8 node: 0.10.33 npm: 2.13.4 I have import Alias from "../../../services/alias"; .... moduleFor("controller:test", "Controller: test", { integration: true, beforeEach: function() { …
Sam.E
  • 175
  • 2
  • 10
9
votes
2 answers

Watchman Error with ember-cli

I am trying to follow the examples in Ember 101. I have worked through this code once before without any issue. After reinstalling my ubuntu 14.04 for unrelated reasons I am getting an error [see bellow] when I run ember serve in my console. I tried…
user3330833
  • 2,179
  • 2
  • 12
  • 9
9
votes
2 answers

Can I use 'ember generate' to generate tests for existing 'objects'?

I have an Ember EAK project migrated to Ember CLI, with tests coded for mocha/chai test runner which don't run correctly in the migrated project, even though I've installed ember-cli-mocha. Can I use 'ember generate', with the mocha blueprints, to…
bobvan
  • 251
  • 3
  • 9
9
votes
2 answers

How to tell ember.js and ember-data version from ember-CLI?

Doing ember -v only shows ember cli version. How can you view ember.js version and ember data versions?
ahnbizcad
  • 10,491
  • 9
  • 59
  • 85