0.2.0 • Published 9 years ago

falcor-electron v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

falcor-electron

Build Status

Falcor integration for electron using the ipc module.

Usage

Install from npm.

npm install --save falcor-electron

Install your Router as a data source in the main process.

import ipc from 'ipc';
import Router from 'falcor-router';
import { installIpcHandler } from 'falcor-electron';

installIpcHandler(ipc, () => {
  return new Router([
    // ... routes
  ]);
});

Configure your Model with an IpcDataSource in the renderer process.

import ipc from 'ipc';
import { Model } from 'falcor';
import { createIpcDataSource } from 'falcor-electron';

const model = new Model({
  source: createIpcDataSource(ipc)
});

Contributing

Feature requests and bugs/bug fixes are happily accepted and can be submitted either as issues or pull requests.

  • Source is compiled with babel
    • Presets:
      • es2015
      • stage-1
  • Source is linted with eslint
  • Tests are run with tape

For code contributions, please fork develop and submit a PR.

0.2.0

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago