@atex/ace-wimson
v1.0.0
Published
Tool to generate content import json for an ace-ui widget
Downloads
4
Readme
ace-wimson
Wimson - An Ace UI Widget Import Json Generation Tool
Generates import json for Ace UI widgets.
Install as cli
$ npm install @atex/ace-wimson -g
$ wimson --help
Developer setup
$ git clone ...
$ cd ace-wimson
$ npm install -g
$ npm link
Use as lib
const wimson = require ('@atex/ace-wimson');
const options = {
alias: '_widget/anAliasForTheWidget',
workingDir: 'theDirWhereTheGeneratedJsonIsSupposedToLive',
filesDir: 'rootDirForTheFileStructureToBeImported',
name: 'nameOfTheWidget'
};
const result = wimson (options);
console.log (JSON.stringify (result, null, ' '));
The module exports a function taking an options object that returns the result as an js object.