npm.io
0.8.46 • Published 1 year ago

@wizzi/factory

Licence
—
Version
0.8.46
Deps
10
Size
2.8 MB
Vulns
0
Weekly
0

@wizzi/factory

The Wizzi Factory.

Work still in progress

Availability of features will be announced on Twitter and Facebook

Features

Exposes the main wizzi factory service components:

  • WizziFactory class
  • PluginsManager class
  • RunnerServer class

The WizziFactory class

Is the main access point to wizzi factory services. Can beused to

Instance creation
wizzi.createFactory(
userid,
role,
options,
callback
);
Methods
wizziFactoryInstance.generateModelDoms(
);
wizziFactoryInstance.generateMTree(
);
wizziFactoryInstance.generateWizziModel(
);
wizziFactoryInstance.generateArtifact(
);
wizziFactoryInstance.executeWizziJob(
);

The PluginsManager class

The RunnerServer class

Default factory (quick starter)

Loads a wizzi magical tree (mTree)
var wizzi = require('wizzi');
var ittfSourcePath = '...';
var context = {
...
};
var options = {
...
};
wizzi.mtree(
    ittfSourcePath,
    context,
    options,
    function(err, mTree) {
    ...
    });
Loads a wizzi model
var wizzi = require('wizzi');
var ittfSourcePath = '...';
var context = {
...
};
var options = {
...
};
wizzi.model(
    ittfSourcePath,
    context,
    options,
    function(err, wizziModel) {
    ...
    });
Generates an artifact
var wizzi = require('wizzi');
var ittfSourcePath = '...';
var artifactName = '...';
var modelContext = {
...
};
var artifactContext = {
...
};
var options = {
...
};
wizzi.model(
    ittfSourcePath,
    artifactName,
    context,
    options,
    function(err, artifactText) {
    ...
    });

Wizzi

One machinery, many productions.

Project page

Built With

License

This project is licensed under the MIT License - see the license.txt for details.