1.0.0 • Published 10 months ago

@startselect/eloquent-js v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Eloquent-JS

Automatic generation of getters and setters

  • Generate a .ts file in the root of your project.

Example contents (GetterSetterCommand.ts):

import {User} from "./src/__tests_data__/Support/UserEntity";
import {GetterAndSetterCommand} from "./src/Command/Generator/GetterAndSetterCommand";
import {GetterAndSetterBag} from "./src/Command/Generator/GetterAndSetterBag";

const getterAndSetterBag = new GetterAndSetterBag();
getterAndSetterBag.push(User, __dirname + '/src/__tests_data__/Support/UserEntity.ts');
const getSetCommand: GetterAndSetterCommand = new GetterAndSetterCommand(getterAndSetterBag);
getSetCommand.handle("\n");
  • Execute the following command from the root of your project:
./node_modules/ts-node/dist/bin.js ./GetterSetterCommand.ts