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
2 answers

Error - Cannot find module 'broccoli'

I'm getting this error and cannot find any way to fix it. It occurs upon trying to execute broccoli build. Error: Cannot find module 'broccoli' from '/Users/devel/Projects/broccoliTest' at Function.module.exports [as sync]…
Tudor Vintilescu
  • 1,450
  • 2
  • 16
  • 28
2
votes
2 answers

Broccoli serve does not livereload ember app

I am using ember-cli for my current ember project, I start the server using broccoli serve however livereload does not work and I need to refresh the page everytime I make changes. What is the correct way to use livereload with ember-cli and…
quaertym
  • 3,917
  • 2
  • 29
  • 41
1
vote
0 answers

Ember: Uncaught Error: Cannot find module "apollo-cache"

I have tried to run an older ember project. I have updated the project with yarn and after tried and run it with ember serve When I try and run the app on localhost:4200 I get the following error in the console and the screen in the view is…
1
vote
2 answers

Ember build issue: "Cannot use the decorators and decorators-legacy plugin together"

I have recently encountered an issue with building my ember project with bitbucket pipelines: + ember build --environment="production" Could not start watchman Visit https://ember-cli.com/user-guide/#watchman for more info. Building Environment:…
1
vote
0 answers

ember-cli on production Build Error (UglifyWriter) Cannot read property '_walk' of null

i have a compilation bug only happening in production build. i cannot find why this happens. other mystery is why the build (broccoli-uglify-sourcemap) is producing sourcemap of the files i did setup as excluded in minifyJS of the config file…
Ty Kayn
  • 719
  • 7
  • 24
1
vote
2 answers

Ember why do we have to use import for certain bower dependencies

In an Ember app, when using certain dependencies like moment installed via bower, we have to also import the same in the ember-cli-build.js file: app.import('bower_components/moment/moment.js'); My question is why is that needed, since I would…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
1
vote
1 answer

git commit SHA hash in environment variable in ember-cli

How to expose the latest git commit SHA hash in an environment variable in config/environment.js in ember-cli
Shiv Kumar Baghel
  • 2,464
  • 6
  • 18
  • 34
1
vote
1 answer

ember-cli-broccoli fails with EEXIST ... tmp/.DS_STORE

I've been running into this issue all day whenever I would save a file (*.hbs, *.js) locally while running ember serve and couldn't figure out what the deal was: The Broccoli Plugin: [broccoli-persistent-filter:Babel > [Babel: ember-inflector]:…
Lucas
  • 3,323
  • 4
  • 28
  • 34
1
vote
1 answer

Ember Cli - Added Polyfill Internet Explorer Error Object Expected

I have a problem and I don't see someone who has this kind of problem with this. Basically I made a helper to format a date, it has some syntax of EcmaScript like let, or expoorts. Its working in all the browsers except INTERNET EXPLORER, so I…
Merlyn007
  • 434
  • 1
  • 8
  • 21
1
vote
1 answer

Ember addon and processing files

I have successfully managed to render a React component inside of ember. You can see the relevant code here. The basics being adding an addon, that uses the preprocessTree hook, to use broccoli-react to parse the jsx files as per here. And a…
Andre Helberg
  • 552
  • 1
  • 6
  • 17
1
vote
1 answer

Ember.js - App doesn't load all params from enviroment.js

My App is not loading all the parameters from the enviroment.js file, only the ones that are by default. I install this package ember-g-recaptcha and then you need to put a param in the config file. The problem is that I create a demo app with…
Merlyn007
  • 434
  • 1
  • 8
  • 21
1
vote
1 answer

How to write files into the app tree in ember-cli preprocessTree hook

I have a broccoli plugin which does the following: Read json file from root folder based on the JSON generate some route template HBS files This works perfectly and can also be acceptance tested by triggering a broccoli build. Example result of…
Willem de Wit
  • 8,604
  • 9
  • 57
  • 90
1
vote
1 answer

How to customize ember-cli build to exclude source code concat

I have rather a large application, right now about 5mb for app.js and 1mb+ in vendor js. I assume it will cross 10mb, our target users are on slow internet and each user have different rights so most of the components are not available to a user. I…
Aamir Mahmood
  • 2,704
  • 3
  • 27
  • 47
1
vote
0 answers

Debugging minification process with uglify-broccoli-js

My web application doesn't get compressed nor mangled by uglify-broccoli-js. For some reason the .min.js files are not created. Is there any way to have an error log, a verbose mode, to see what's going wrong during the minification process?
Gianluca Ghettini
  • 11,129
  • 19
  • 93
  • 159
1
vote
0 answers

Setting up lesscss with angular 2, angular CLI and broccoli

I am trying to set up lesscss with angular 2 and the angular CLI and broccoli. I have opened a issue on angular CLI's github: https://github.com/angular/angular-cli/issues/873 If less is installed on my project, I systematically get the following…
balteo
  • 23,602
  • 63
  • 219
  • 412