# Using emberella with Brocfile.js in new ember-cli app

**URL:** <https://discuss.emberjs.com/t/using-emberella-with-brocfile-js-in-new-ember-cli-app/5510>\
**Category:** Uncategorized\
**Created:** [June 3, 2014, 12:21pm UTC](https://discuss.emberjs.com/t/using-emberella-with-brocfile-js-in-new-ember-cli-app/5510 "2014-06-03T12:21:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![millisami](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/millisami/32/15381_2.png) [@millisami](https://discuss.emberjs.com/u/millisami)\
**Post date:** [June 3, 2014, 12:21pm UTC](https://discuss.emberjs.com/t/using-emberella-with-brocfile-js-in-new-ember-cli-app/5510/1 "2014-06-03T12:21:49Z")

</div>

I am trying to use this library [https://github.com/realityendshere/emberella](https://github.com/realityendshere/emberella) in the ember-cli app i generated. Clone the repo at `vendor/emberella`

The files to compile is at `vendor/emberella/packages/emberella/lib` folder. The following is the structure.

```
├── lib
│   ├── controllers
│   ├── core.coffee
│   ├── helpers
│   ├── main.coffee
│   ├── mixins
│   ├── views
│   └── views.coffee

```

I want the compiled file to have `core.coffee`, `views.coffee`, `main.coffee` and all the files under dir `controllers`, `helpers`, `mixins` and `views` files to be concateneted in a single file at `/assets/emberella.js`

In the `Brocfile.js`, I’ve the following:

```
var filterCoffeeScript = require('broccoli-coffee')
var concat = require('broccoli-concat')
var sourceTree = filterCoffeeScript('vendor/emberella/packages/emberella/lib')
var sourceJs = concat(sourceTree, {
  inputFiles: ['core.coffee', 'views.coffee', '**/*.coffee'],
  outputFiles: '/assets/emberella.js'
})

```

When I run `broccoli serve`, I get the following error:

```
± broccoli serve 2.1.0
Serving on http://localhost:4200

Built with error:
Error: Path or pattern "core.coffee" did not match any files
  at Object.multiGlob (/Users/millisami/Personal/lgebs/node_modules/broccoli-concat/node_modules/broccoli-kitchen-sink-helpers/index.js:216:13)
  at /Users/millisami/Personal/lgebs/node_modules/broccoli-concat/index.js:41:30
  at invokeCallback (/Users/millisami/Personal/lgebs/node_modules/broccoli/node_modules/rsvp/dist/commonjs/rsvp/promise.js:228:21)
  at publish (/Users/millisami/Personal/lgebs/node_modules/broccoli/node_modules/rsvp/dist/commonjs/rsvp/promise.js:176:9)
  at publishFulfillment (/Users/millisami/Personal/lgebs/node_modules/broccoli/node_modules/rsvp/dist/commonjs/rsvp/promise.js:312:5)
  at flush (/Users/millisami/Personal/lgebs/node_modules/broccoli/node_modules/rsvp/dist/commonjs/rsvp/asap.js:41:9)
  at process._tickDomainCallback (node.js:463:13)

```

What should be the `Brocfile.js` code to get this working?

---

<div class="post-metadata">

**Author:** ![pixelhandler](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/pixelhandler/32/18649_2.png) [@pixelhandler](https://discuss.emberjs.com/u/pixelhandler)\
**Post date:** [June 3, 2014, 10:19pm UTC](https://discuss.emberjs.com/t/using-emberella-with-brocfile-js-in-new-ember-cli-app/5510/2 "2014-06-03T22:19:01Z")

</div>

@millisami you want to reach out directly to the author of [https://github.com/realityendshere/emberella](https://github.com/realityendshere/emberella) perhaps post an issue on that repo. I believe there are plans to move emberella into smaller components and use broccoli to build

---

<div class="post-metadata">

**Author:** ![millisami](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/millisami/32/15381_2.png) [@millisami](https://discuss.emberjs.com/u/millisami)\
**Post date:** [June 6, 2014, 10:56am UTC](https://discuss.emberjs.com/t/using-emberella-with-brocfile-js-in-new-ember-cli-app/5510/3 "2014-06-06T10:56:52Z")

</div>

@pixelhandler I’ve filled the issue over there.

And the component builder blueprint is here at [https://github.com/realityendshere/emberella-component-blueprint](https://github.com/realityendshere/emberella-component-blueprint)

---

<div class="post-metadata">

**Author:** ![pixelhandler](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/pixelhandler/32/18649_2.png) [@pixelhandler](https://discuss.emberjs.com/u/pixelhandler)\
**Post date:** [June 10, 2014, 1:14am UTC](https://discuss.emberjs.com/t/using-emberella-with-brocfile-js-in-new-ember-cli-app/5510/4 "2014-06-10T01:14:23Z")

</div>

@millisami I’ve used the component blueprint repo for a project here [https://github.com/pixelhandler/ember-bucket](https://github.com/pixelhandler/ember-bucket) it worked out very well.
