webgme-hfsm
Version:
WebGME Domain for creating Executable Heirarchical Finite State Machines (HFSMs). Contains metamodel, visualization, simulation, and code generation for Heirarchical Finite State Machines (HFSMs) following the UML State Machine specification.
37 lines (26 loc) • 1.26 kB
JavaScript
var config = require('./config.webgme'),
validateConfig = require('webgme/config/validator');
config.server.port = 8081;
config.storage.keyType = 'rand160Bits';
//config.seedProjects.defaultProject = 'FiniteStateMachine';
config.seedProjects.basePaths = [__dirname + '/../src/seeds'];
// requirejs config
config.requirejsPaths.hfsm = "./src/common";
config.requirejsPaths['webgme-to-json'] = "./node_modules/webgme-to-json";
config.requirejsPaths['bower'] = "./bower_components/";
config.requirejsPaths['cytoscape-edgehandles'] = "./bower_components/cytoscape-edgehandles/cytoscape-edgehandles";
config.requirejsPaths['cytoscape-context-menus'] = "./bower_components/cytoscape-context-menus/cytoscape-context-menus";
config.requirejsPaths['cytoscape-panzoom'] = "./bower_components/cytoscape-panzoom/cytoscape-panzoom";
// Merging config
config.storage.autoMerge.enable = true;
// authentication
config.authentication.enable = true;
config.authentication.allowGuests = true;
config.plugin.allowBrowserExecution = true;
config.plugin.allowServerExecution = true;
// svg paths
var path = require('path');
config.visualization.svgDirs.push(path.join(__dirname, '..', "/src/svgs"));
validateConfig(config);
module.exports = config;
;