# strangeluv-core

> Core wiring and hapi plugin for the strangeluv React boilerplate

Latest version **2.0.0** (published 2018-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install strangeluv-core
pnpm add strangeluv-core
yarn add strangeluv-core
bun add strangeluv-core
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-03-23 |
| First published | 2016-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Devin Ivy |
| Maintainers | devinivy, zemccart |
| Keywords | react, redux, boilerplate, wiring, plugin, hapi |

## Links

- npm: https://www.npmjs.com/package/strangeluv-core
- Repository: https://github.com/BigRoomStudios/strangeluv-core
- Homepage: https://github.com/BigRoomStudios/strangeluv-core#readme
- Issues: https://github.com/BigRoomStudios/strangeluv-core/issues
- npm.io page: https://npm.io/package/strangeluv-core

## Dependencies (3)

- [inert](https://npm.io/package/inert.md) 5.x.x
- [webpack-dev-middleware](https://npm.io/package/webpack-dev-middleware.md) 1.x.x
- [webpack-hot-middleware](https://npm.io/package/webpack-hot-middleware.md) 2.x.x

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2018-03-23
- 1.2.0 — 2017-04-10
- 1.1.0 — 2016-08-01
- 1.0.2 — 2016-07-21
- 1.0.1 — 2016-07-21
- 1.0.0 — 2016-06-30

## README

# strangeluv-core

Core wiring and hapi plugin for the [strangeluv](https://github.com/BigRoomStudios/strangeluv) React boilerplate

[![Build Status](https://travis-ci.org/BigRoomStudios/strangeluv-core.svg?branch=master)](https://travis-ci.org/BigRoomStudios/strangeluv-core)

## API
### `new Strangeluv(ctx)`
An instance of wires for a strangeluv application.  Currently provides wiring for reducers based-upon directory structure.  Receives a Webpack context of all `.js` files based at the app root.

#### `wires.ctx`
The Webpack context passed during construction.

#### `wires.files`
Normalized filenames for this Webpack context (no `./` or `.js`).

#### `wires.reducers()`
Returns reducer config from all reducers in `./reducers` relative to the Webpack context.  Returns an object whose keys are camelized filenames and whose values are the associated reducers.

#### `wires.flushReducers()`
Breaks the memoization/cache used with `wires.reducers()`.  Used with hot-reloading of reducers.

#### `wires.get(file)`
Returns a `require()`d file given normalized filename (from `wires.files`).

### hapi plugin (`strangeluv-core/lib/plugin`)
A hapi plugin providing Webpack HMR and development functionality alongside serving static files.  Fully-pluginized and prepared for multi-plugin deployments.  Takes options,
- `compiler` - when passed a Webpack compiler, HMR and development functionality will be enabled (see `assets`, `hot`, and `static` options) using this compiler.
- `assets` - options for [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) (applicable when `compiler` is specified).
- `hot` - options for [webpack-hot-middleware](https://github.com/glenjamin/webpack-hot-middleware) (applicable when `compiler` is specified).
- `static` - absolute path to static assets to serve (applicable when `compiler` is specified).
- `dist` - absolute path to static app distribution to serve (applicable when `compiler` is not specified).

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