# fastboot-filter-initializers

> Simple broccoli utility function to filter ember initializers based upon build mode.

Latest version **0.0.2** (published 2016-04-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install fastboot-filter-initializers
pnpm add fastboot-filter-initializers
yarn add fastboot-filter-initializers
bun add fastboot-filter-initializers
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-04-28 |
| First published | 2016-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ron White |
| Maintainers | ronco |
| Keywords | broccoli, ember, ember-cli, fastboot |

## Links

- npm: https://www.npmjs.com/package/fastboot-filter-initializers
- Repository: https://github.com/ronco/fastboot-filter-initializers
- Homepage: https://github.com/ronco/fastboot-filter-initializers#readme
- Issues: https://github.com/ronco/fastboot-filter-initializers/issues
- npm.io page: https://npm.io/package/fastboot-filter-initializers

## Dependencies (1)

- [broccoli-funnel](https://npm.io/package/broccoli-funnel.md) ^1.0.1

## Recent versions

- 0.0.2 (latest) — 2016-04-28
- 0.0.1 — 2016-03-01

## README

# fastboot-filter-initializers
Simple broccoli utility function to filter ember initializers based upon build mode.

To use this, first add it as a dependency: 
```
npm i --save fastboot-filter-initializers
```
Then, add this to `index.js` of your addon like so:
```
/* jshint node: true */
'use strict';

var filterInitializers = require('fastboot-filter-initializers');

module.exports = {
  name: 'addon-name',

  preconcatTree: function(tree) {
    return filterInitializers(tree, this.app.name);
  }
};
```
And move your initializers and instance-initializers into a subdirectory depending on build mode they are used for, such as: `initializers/foo.js` -> `initializers/browser/foo.js` and fastboot only initializers will be moved to `initializers/fastboot/foo.js`

---
_Source: https://npm.io/package/fastboot-filter-initializers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
