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

Error building two different files from same tree with broccoli-requirejs

I'm trying to compile two different JS files using broccoli-requirejs. A logical way to go about this seemed to be to run the requireJs filter on my scripts tree twice, with two different configurations. Doing so produces some really strange errors…
fredrikekelund
  • 2,007
  • 2
  • 21
  • 33
0
votes
1 answer

Ember-CLI: include app file in Brocfile.js

I have a config setting I'd like to include in Brocfile.js, so that I don't set it in the file directly. For example, in config/custom.js I would have something like: export default { path: 'http://abc.blah.com/' }; In my Brocfile, I'd like to do…
yuяi
  • 2,617
  • 1
  • 23
  • 46
0
votes
1 answer

How to write SCSS function to access file system?

I'm using Broccoli (which uses node-sass) to compile SCSS code for an Ember project, and I'd like to create a SCSS function that reads a named file from the file system, processes it, and returns the result. So far I haven't been able to find any…
exupero
  • 9,136
  • 8
  • 47
  • 63
0
votes
2 answers

Is there a way to make the broccoli less compiler respect the multiple outputPaths config for CSS files?

i'm using ember-cli 0.1.5, I'd like to build a css file for each 'skin-*.less' file in the app/styles folder. This works with plain CSS using the following config in my Brocfile.js: var app = new EmberApp({ outputPaths: { app: { …
0
votes
1 answer

Adding Library on the web app with broccoli

I am using a jquery library, here http://www.jqueryscript.net/menu/iPod-Style-jQuery-Sliding-Drill-Down-Menu-Plugin.html, and I'm trying to add it on my app. These are my import…
Noor
  • 19,638
  • 38
  • 136
  • 254
0
votes
1 answer

Broccoli.js and Ember-CLI : trying to get SCSS compiler to work

I'm trying to use Foundation with an Ember-CLI app and I want to compile all the SCSS with broccoli-scss. For the life of me I cant get it to work. I have Foundation in my bower components so heres what I've tried, modled off of the broccoli sample…
JDillon522
  • 19,046
  • 15
  • 47
  • 81
0
votes
1 answer

Ember server keeps complaining about a file not found

This is driving me nuts. I cloned my project on a new computer, ran npm install and bower install, but then running ember server keeps telling me that it can't find my moment.js file, but I have the correct path in my Brocfile. I had to change the…
redOctober13
  • 3,662
  • 6
  • 34
  • 61
0
votes
2 answers

Livereload with Ember-CLI; only reload changed assets

I'm used to building a asset compilation system with Grunt or Gulp. Using Gulp's livereload and the Chrome livereload plugin, I have a pretty sweet system where it watches for changes of certain file types and reloads only the file that were…
typeoneerror
  • 55,990
  • 32
  • 132
  • 223
0
votes
2 answers

Ember-cli creates/initializes app.js twice

I'm moving my project from Ember AppKit to Ember-Cli. I have an myapp/app/app.js, where the app is initialized and in myapp/app/index.html I have the following lines: var config = require('myapp/config/environment')['default']; …
vtm
  • 41
  • 3
0
votes
1 answer

Ember CLI - Exporting compiled Coffeescript (or transpiled Javascript) to the global namespace?

We're trying to migrate our legacy project to Ember CLI/Ember App Kit structures using ES6 modules, but we have some legacy Coffeescript files that need to be run outside the Ember App context. We're attempting to include the Coffeescript files in…
Eternal Rubyist
  • 3,445
  • 4
  • 34
  • 51
0
votes
2 answers

Access broccoli server from other device

I'm using broccoli to develop a simple app and I'm trying to access it from a mobile phone. However, even if I'm able to access the site from my computer at localhost:42000 I'm not able to do so when I point the browser of my phone at…
Sig
  • 5,476
  • 10
  • 49
  • 89
0
votes
1 answer

embercli bootstrap for ember and modal dialog

Anyone using bootstrap-for-ember with embercli ? I keep getting : 'BootStrap' is not defined. On a line that reads: return BootStrap.ModalManager.show('myModal'); Ive got the modal defined in the template and have bootstrap for ember installed…
Vida
  • 480
  • 7
  • 18
0
votes
0 answers

Ember-CLI: How to get EmberApp trees for further processing?

I'm using ember-cli v0.0.40 in a small project which I mainly use to learn how ember-cli works and differs from ember-app-kit - especially on my windows dev machine. Now, I came to the conclusion that I would need to tweak the Brocfile.js to fit my…
herom
  • 2,532
  • 29
  • 41
0
votes
1 answer

Get Ember/Broccoli-Sass to parse .sass files

I'm trying to set up my first Ember project with ember-cli und want to include SASS by using .sass files (not .scss files). Out of the box it only parses a app.scss. How can I achive to parse a app.sass?
jan
  • 650
  • 1
  • 6
  • 17
0
votes
1 answer

How to add a broccoli plugin to ember-cli app with live-reload?

When I run ember build, the broccoli plugin runs correctly, and outputs the sprite CSS file and sprite PNG file into the assets directory. When I run ember serve, the same thing happens initially too. However, when I save any file, causing Broccoli…
bguiz
  • 27,371
  • 47
  • 154
  • 243
1 2 3
11
12