build4code
Version:
The repository supports the NPM build process based on UML models created and managed with the JSONEditor4Code. A JSON file defines the attributes and methods of a class and a JSON editor running in a browser allows the generation of Javascript code. In t
9 lines (7 loc) • 321 B
JavaScript
const pkg = require('./package.json')
// const b4c = require('build4code');
const b4c = require('./src/main.js');
let vConstructor = require('./src/codegen/index.js');
//let uml_filename = 'jscc/' + pkg.name + '_uml.json';
let uml_filename = 'jscc/codegen_uml.json';
b4c.js2uml("CodeGen",uml_filename,vConstructor,pkg);