0.1.6 • Published 1 year ago

@ossph/idea-transformer v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Idea Transformer

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

Install

$ npm install @ossph/idea-transformer

... or ...

$ yarn add @ossph/idea-transformer

Custom Terminal

Create a bin file and paste this basic example.

#!/usr/bin/env node

const { Terminal } = require('@ossph/idea-transformer');
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-transformer');
Terminal.brand = '[MY LIB]';
Terminal.extension = 'mylib';
new Terminal().run();

Programmatically Transform

You can also call the transformer manually like the following example.

const { Loader, Transformer } = require('@ossph/idea-transformer');

const cwd = __dirname;
const idea = Loader.absolute('./my.idea', cwd);

const transformer = new Transformer(idea, cwd);
//read raw schema data
const schema = transformer.schema;
//transform schema
transformer.transform();

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

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago