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
0
votes
1 answer

Importing Bourbon with broccoli-sass

I have installed Bourbon with Bower, but cannot get broccoli-sass to import Bourbon. Broccoli-sass is compiling my app.scss file to app.css. I have tried @import '_bourbon'; and @import 'bourbon'; at the top of my app.scss file but get the…
Paul Byrne
  • 1,563
  • 18
  • 24
0
votes
1 answer

Peeking behind ember-cli (EmberApp): vendor.js and app.js

With the excellent broccoli-stew I can take a look at the exported application tree: /* global require, module */ var EmberApp = require('ember-cli/lib/broccoli/ember-app'); var log = require('broccoli-stew').log; var debug =…
blueFast
  • 41,341
  • 63
  • 198
  • 344
0
votes
1 answer

broccoli-caching-writer fails with "Cannot read property 'images/.DS_Store' of undefined"

I am fairly new to broccoli and have been trying to write a simple plugin to use with ember.js. I used broccoli-caching-writer in my index.js as described on the github page for broccoli-caching-writer: var CachingWriter =…
MojoJojo
  • 3,897
  • 4
  • 28
  • 54
0
votes
1 answer

How to not always compile all assets on autoload in ember.js

I've started my first ember.js project with ember-cli including ember-cli-broccoli-compass to compile my stylesheets with compass. Now that I've done my first styling, my stylesheets need 5 seconds to compile. When I now work on my javascripts and…
jan
  • 650
  • 1
  • 6
  • 17
0
votes
1 answer

ember-cli scss lint addon not performing task

I am trying to make a SCSS lint addon for ember-cli (I know one exists already ember-cli-scsslint but I want one more customisable). I was wondering whether anyone has had experience using broccoli-scss-lint because I am having trouble feeding in my…
tomasbasham
  • 1,695
  • 2
  • 18
  • 37
0
votes
1 answer

Ember cli Managing dependencies for custom folders

I have an ember app, and a folder with a file playGame/game.js. This file includes game logic, and I want to import it for asset compilation. If this file is under app/playGame/game.js and my Brocfile is like…
eguneys
  • 6,028
  • 7
  • 31
  • 63
0
votes
2 answers

How to code Router path dynamic segment so Model attribute is not 'undefined'?

In a CLI-based Ember app, using cli-api-stub to serve static test JSON, I have a Route search action which gets and sets hotel reservation JSON data on controller.model. A View loops the items with {{#each item in model…
bobvan
  • 251
  • 3
  • 9
0
votes
1 answer

Using broccoliJS with a currently modular backbone app that uses requireJS, and I want to drop requireJS altogether

I have been scouring the internet to figure this out, and i'm here as a last resort. I have a backbone application that was started using requireJS, as many do. However, I have recently been introduced to broccoliJS to wrap up all my backbone…
SweetCoco
  • 91
  • 1
  • 7
0
votes
1 answer

How do I have Broccoli compiler comment which file CSS came from?

I'm new to broccoli, but I have experience with Ruby on Rails' asset pipeline. I'm currently working on an Ember CLI app. In broccoli, in development mode, I would love it if the compiler would write out the name of the file where the CSS came from…
JT.
  • 7,966
  • 1
  • 15
  • 10
0
votes
1 answer

Is there any way to join stylus partials without actually compiling them?

Is there any way to join stylus partials without actually compiling them? I guess this would be the same as .SCSS files - so then it's a question of build tools. In codekit - you can join javascript files in this way / but that is because it's not a…
sheriffderek
  • 8,848
  • 6
  • 43
  • 70
0
votes
1 answer

How can I specify with broccolijs the destination folder of the main bower files?

Hi I am trying to setup broccoli but if I want my file in bower_components to go on a specific folder let's say public/vendor how do i do it ? I get the main bower files and then merge with the rest of my files var findBowerTrees =…
davidear
  • 129
  • 1
  • 1
  • 9
0
votes
1 answer

Ember-cli destDir doesn't work with app.import

When using ember cli I try do this but the file is not copied to dist: app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot', { destDir: 'fonts' }); So when running the ember server I get: version: 0.1.15 Could not…
SuperUberDuper
  • 9,242
  • 9
  • 39
  • 72
0
votes
0 answers

Why is broccoli-asset-rev fingerprinting my files differently on different servers?

I am getting different hashes running the same build process with the same package.json using the same git hash on different machines. My build process that builds my dist is ember build --environment production. When run locally, I get a…
Josh Smith
  • 14,674
  • 18
  • 72
  • 118
0
votes
2 answers

Error installing node-sass on io.js 1.4.1 on Yosemite

I have a fresh install of io.js 1.4.1 on Yosemite via NVM. When I try to install node-sass, I get this error: $ npm install node-sass / > node-sass@2.0.1 install /Users/Chris/code//node_modules/node-sass > node scripts/install.js Can…
Chris
  • 824
  • 1
  • 7
  • 26
0
votes
1 answer

Include a self-contained asset bundle with Broccoli / ember-cli

I am using jquery-ui, self-compiled: not via bower, but directly generated and downloaded from the jquery-ui website. I have put it into myapp/vendor/bundles/jquery-ui-1.11.2.custom In my Brocfile I am loading the CSS and JS…
blueFast
  • 41,341
  • 63
  • 198
  • 344