@atex/ace-wimson

Tool to generate content import json for an ace-ui widget

Usage no npm install needed!

<script type="module">
  import atexAceWimson from 'https://cdn.skypack.dev/@atex/ace-wimson';
</script>

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.