0.0.30 • Published 1 year ago

@exma/generator v0.0.30

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.0.29

1 year ago

0.0.27

1 year ago

0.0.14

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago