Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

strangeluv-core

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strangeluv-core

Core wiring and hapi plugin for the strangeluv React boilerplate

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

strangeluv-core

Core wiring and hapi plugin for the strangeluv React boilerplate

Build Status

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 (applicable when compiler is specified).
  • hot - options for 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).

Keywords

FAQs

Package last updated on 23 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc