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.

167 questions
2
votes
1 answer

how to skip SASS compilation in Ember Broccoli build

I'm compiling an Ember.js app using broccoli and currently I'm working only on the JavaScript files. The SASS stylesheet files are not being changed at all, yet our Broccoli build is always building new CSS out of those stylesheets. How do I turn…
user9903
2
votes
0 answers

ember-cli: split application into separate directories

My ember application has a few distinct components. There is a lot of code, so I want the sources organized into separate directories. Let's say I have this directory structure: [app] - [controllers] - [models] - [routes] -…
dwickern
  • 3,519
  • 1
  • 14
  • 21
2
votes
3 answers

ember cli multiple index files

I have an ember-cli based app which needs to be integrated into an existing java/JSP app. For this to happen I need to generate a JSP file with js/css fingerprinted URLs which are generated by ember-cli/broccoli-asset-rev. This is working fine for a…
Matt
  • 41
  • 5
2
votes
0 answers

Broccoli/Ember-cli: if I'm importing a css file why do I need jquery?

I'm trying to import a css package and when I run Broccoli (using ember server) it's complaining I need jQuery: app.import('bower_components/materialize/dist/materialize.css'); Error message: Missing bower packages: Package: jquery * Specified:…
redconservatory
  • 21,438
  • 40
  • 120
  • 189
2
votes
0 answers

Ember-CLI copy resources from URL to public-folder (triggered by Ember)

My backend-server (Sails) generates a sitemap dynamically which is made available via http://127.0.0.1/sitemap.xml. I would like to copy this (and a few RSS-feeds with the same procedure) into the public-folder everytime I trigger it somehow from my…
Hedge
  • 16,142
  • 42
  • 141
  • 246
2
votes
1 answer

Ember-CLI error: file already exists

I am getting what looks to be a "classic" error when starting an Ember-CLI app: EEXIST, file already exists. I have consulted Starting ember server with ember cli And it seems like the issue in Broccoli has been fixed? I tried deleting the…
blisstdev
  • 633
  • 4
  • 13
2
votes
0 answers

How to tell what ember-cli / Broccoli is doing behing the scenes?

I have a Brocfile.js which tells Broccoli / ember-cli to get a bunch of files, do something with them, and produce and output (vendor.css, vendor.js, app.js, app.css, or something else) How can I turn-on debugging for ember-cli so that I know what…
blueFast
  • 41,341
  • 63
  • 198
  • 344
2
votes
0 answers

Optimum way to use RequireJS with Broccoli

We have an application using RequireJS AMD modules that we're trying to build using Broccoli. I thought it might be feasible to generate just one JavaScript file with sourcemaps and use that both for development and deployment (perhaps only not…
VoY
  • 5,479
  • 2
  • 37
  • 45
2
votes
1 answer

ember-cli watch file changes in subdirectories of the styles folder

I started using EmberJS and ember-cli for a new project. Therefore I created a new project with ember-cli and added broccoli-compass with sass support. When I execute "ember server" in the terminal, ember is just watching for file changes on…
fraherm
  • 671
  • 2
  • 11
  • 21
2
votes
3 answers

Ember CLI fails in production

I am deploying an Ember CLI app through jenkins and publishing it using nginx. Here is by jenkins build script: npm install bower install node_modules/ember-cli/bin/ember build --environment=production The nginx configuration simply directs…
aquavitae
  • 17,414
  • 11
  • 63
  • 106
2
votes
2 answers

Removing some files from a broccoli tree

I am using ember-cli and broccoli. A tree is generated containing all of the files from my application. This tree is passed to broccoli-manifest to generate a HTML5 application cache manifest file. However, I would like to exclude some of the files…
vitch
  • 3,215
  • 3
  • 25
  • 26
2
votes
1 answer

Use EmberScript in Ember-CLI app

How does one use emberscript in an Ember-cli app? I've installed the broccoli-ember-script node module but I can't figure out how to incorporate it into the default Ember-cli configuration of Brocfile.js.
niftygrifty
  • 3,452
  • 2
  • 28
  • 49
2
votes
1 answer

Broccoli-compass and ember-cli 0.39

I recently upgraded ember-cli to .39, and something changed to cause my broccoli-compass code to break. Here's the code: app.styles = function() { return compileCompass(this.appAndDependencies(), this.name + '/styles/app.scss', { …
Sam Selikoff
  • 12,366
  • 13
  • 58
  • 104
2
votes
1 answer

Replace broccoli-sass with broccoli-compass in broccoli-sample-app

I'm attempting to replace broccoli-sass with broccoli-compass, in the Broccoli Ember Sample. My app structure looks like: app public styles app.scss Brocfile: ... var compileSass = require('broccoli-compass') ... var appNamespace =…
RYFN
  • 2,939
  • 1
  • 29
  • 40
2
votes
0 answers

Broccoli.js and Ember-cli, Long compile times with Less

When compiling with Ember-cli, broccoli, broccoli-less-single, my compile times are extremely long. I am using a template with bootstrap3 and all the dependent less files. The number of less files is admittedly excessive, but the compile times are…
SuperNinja
  • 1,538
  • 6
  • 22
  • 45