0.2.0 • Published 10 years ago

falcor-electron v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 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

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago