Questions tagged [broccolijs]

A JavaScript build tool that exposes a simple Javascript API to perform file-based transformations, allowing developers to easily build complex build pipelines, using a simple, functional API.

Browser compilation library – a build tool for applications that run in the browser.

A fast, reliable asset pipeline, supporting constant-time rebuilds and compact build definitions. Comparable to the Rails asset pipeline in scope, though it runs on Node and is backend-agnostic. For background and architecture, see the introductory blog post.

163 questions
30
votes
2 answers

How to generate image sprites in ember-cli using compass?

Update - 20140614: After not getting any answers to this question, or on github, I decided to come up with my own solution to the problem. I was using compass for a number of things, but its main utility was in its ability to generated image…
bguiz
  • 22,661
  • 40
  • 140
  • 226
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
  • 11,238
  • 9
  • 54
  • 94
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
  • 350
  • 2
  • 15
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,451
  • 4
  • 26
  • 50
10
votes
1 answer

Move Entire Folder using Broccoli JS in Ember CLI Project

I am developing an ember-cli project and I am working on a system that allows me to resolve templates that have not been loaded and may possibly live outside of the project structure. I would like to have a folder in my dist/assets directory called…
BillPull
  • 8,335
  • 15
  • 54
  • 93
10
votes
3 answers

Exclude folders from builds in Brocfile

Is there a way to exclude a folder from a build in a Brocfile (or any other place). The use case is packaging, where I have an app made of sub-apps within pods. eg. /app/modules/components /app/modules/app1 /app/modules/app2 /app/modules/app3 I'd…
WooDzu
  • 4,631
  • 6
  • 28
  • 58
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,190
  • 9
  • 21
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
  • 6,777
  • 1
  • 24
  • 47
8
votes
2 answers

How to configure Ember CLI to use uncss

I have a hard time to configure Ember CLI to use uncss. The setup: > ember new foobar > cd foobar > bower install --save-dev bootstrap > ember generate route index app/templates/index.hbs

Hello World!

Brocfile.js /* global require, module…
wintermeyer
  • 7,536
  • 8
  • 34
  • 69
7
votes
2 answers

ember-cli: how to place CSS in pods

I'm using ember-cli's pod structure to group JS and templates by resource, which is a huge improvement. The last vestige of resource-related logic is the CSS (SCSS) files, which are already broken down along pod-like lines, but still stuck over in…
user663031
6
votes
1 answer

How do I execute a post build hook in an ember-cli Brocfile.js?

I have a ember-cli project that builds to the dist/ directory. I've configured the app to handle assets in the dist/ directory and set the history to use a hash instead of pushState. This allows me to sym-link the index.html to the root. The…
Sukima
  • 9,627
  • 3
  • 42
  • 58
5
votes
1 answer

Ember CLI Crash on Rebuild after Clean install -- What am i doing wrong?

I have no idea what's wrong but when i change a file in my project, which triggers a rebuild, I get an EEXIST, file already exists error with a reference to a tmp file location. To illustrate please see the following: 1) I start from a clean slate…
SharkLaser
  • 653
  • 1
  • 8
  • 17
5
votes
1 answer

How to compile project's CSS files into one file

By default ember-cli seems to be set up not to compile css files into one (as it does with the JS files). What is the best way to configure ember-cli to merge all files in app/styles (and subdirectories) into one app.css file (and then fingerprint…
chopper
  • 6,179
  • 6
  • 31
  • 53
5
votes
3 answers

Ember Cli not compiling with broccoli-emblem-compiler

I am trying to set up this repository locally https://github.com/lrdiv/ember-soundcloud and i have come across to this issue with broccoli-emblem-compiler. See the image in attached From my understanding the broccoli-emblem-compiler is not able to…
Koala7
  • 1,501
  • 6
  • 37
  • 69
5
votes
2 answers

Referencing asset in javascript

The Ember CLI guide describes how assets can be referenced in the templates and the CSS - but what is the proper way of referencing an asset (say an image) from my javascript code? Specifically I am concerned about the asset path getting…
chopper
  • 6,179
  • 6
  • 31
  • 53
1
2 3
10 11