TypeORM CLI for ES6
When I use the CLI to generate migrations or entities it still generates as typescript.
file generation for es6 is not supported yet. Feel free to add its support - its easy to do. We can set extra flag in cli, something like typeorm entity:create --es6 and based on this it will generate es6 entity classes. Also we can add option to ormconfig.json like language: es6 and cli will read this format as a generation default.
@pleerock the typeorm tool told me there isnt an option like --es6
file generation for es6 is not supported yet. Feel free to add its support - its easy to do. We can set extra flag in cli, something like
typeorm entity:create --es6and based on this it will generate es6 entity classes. Also we can add option toormconfig.jsonlikelanguage: es6and cli will read this format as a generation default.
Are es6 supported now?
Is there any example for migration with javascript only?
@allandiego check this issue and this comment, typeorm cli does not support generating migrations files from and to plain javascript files. They should update their doc. Anyway, typeORM is typescript driven, so i understand that the new features are always being writen first to be "typescript" compatible, dont expect to make a full exploitation of typeORM if you want to use js or es6, at least by now.