@ossph/idea-transformer
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

Idea Transform

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

Install

$ npm install @ossph/idea-transform

... or ...

$ yarn add @ossph/idea-transform

Usage

Create a bin file and paste this basic example.

#!/usr/bin/env node

const { Terminal } = require('@ossph/idea-transform');
new Terminal().run();

You can whitelabel idea 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('@ossph/idea-transform');
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('@ossph/idea-transform');
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/idea] for more info.

Readme

Keywords

none

Package Sidebar

Install

npm i @ossph/idea-transformer

Weekly Downloads

3

Version

0.1.5

License

MIT

Unpacked Size

18.1 kB

Total Files

11

Last publish

Collaborators

  • cblanquera
  • warengonzaga
  • cent1pede