0.0.30 • Published 28 days ago

@exma/generator v0.0.30

Weekly downloads
-
License
MIT
Repository
github
Last release
28 days ago

Exma Generator

A programmatical command line interface used by projects and that calls on external generators to make relevant code.

Install

$ npm install @exma/generator

... or ...

$ yarn add @exma/generator

Usage

Create a bin file and paste this basic example.

#!/usr/bin/env node

const { Terminal } = require('@exma/generator');
new Terminal().run();

You can whitelabel exma like the following. This will prefix all outputs with [MY LIB] and schema files now need to have the extension .mylib.

#!/usr/bin/env node

const { Terminal } = require('@exma/generator');
Terminal.brand = '[MY LIB]';
Terminal.extension = 'mylib';
new Terminal().run();

You can also manually trigger generators that were not included in the schema file like the following.

#!/usr/bin/env node

const { Terminal } = require('@exma/generator');
const terminal = new Terminal();
terminal.generate('/location/to/generator.js', { custom: 'config' });

Not calling run() wont trigger any of the generators in the schema file.

See https://github.com/OSSPhilippines/exma for more info.

0.0.30

28 days ago

0.0.29

1 month ago

0.0.27

2 months ago

0.0.14

10 months ago

0.0.12

10 months ago

0.0.11

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago