/xflow-js

Primary LanguageJavaScriptMIT LicenseMIT

XFlow JS

Build Status Code Climate Test Coverage Known Vulnerabilities License

Test

npm run test
npm run coverage

Build

npm run build

Browser,

webpack --module-bind "js=babel-loader" lib/xflow-target-browser.js xfb.js

Documentation

yuidoc -C -t ~/src/yuidoc-theme-blue lib

Codegen

var escodegen = require('escodegen');
var parse     = require("esprima").parse;
var fs        = require("fs");

var src = fs.readFileSync(
  "test.js",
  "utf-8"
);

var ast = parse(src);

TODO

  • General

    • Rename state -> scope
    • Fix build copying assets (schema, parser)
  • Codegen

    • Now only sync, generate async code / Promises
    • Call cross-xflow