GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TypeORM CLI for ES6 · Issue #3 · typeorm/javascript-example

This repository was archived by the owner on Apr 24, 2026. It is now read-only.
This repository was archived by the owner on Apr 24, 2026. It is now read-only.

TypeORM CLI for ES6 #3

Copy link
Copy link
Open
Open
TypeORM CLI for ES6#3
Copy link

Description

@sslgeorge
sslgeorge
opened on Jul 23, 2017
Issue body actions

When I use the CLI to generate migrations or entities it still generates as typescript.

Reacted by Josh, Abhay Shiravanthe, Luis Barragan and Cuong

Activity

  1. pleerock commented on Jul 24, 2017

    @pleerock
    pleerock
    on Jul 24, 2017
    Member
    More actions

    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.

    Reacted by Piotr
  2. yunfan commented on Apr 11, 2019

    @yunfan
    yunfan
    on Apr 11, 2019
    More actions

    @pleerock the typeorm tool told me there isnt an option like --es6

  3. mrtnzagustin commented on Feb 17, 2020

    @mrtnzagustin
    mrtnzagustin
    on Feb 17, 2020
    More actions

    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.

    Are es6 supported now?

  4. allandiego commented on Apr 15, 2020

    @allandiego
    allandiego
    on Apr 15, 2020
    More actions

    Is there any example for migration with javascript only?

  5. mrtnzagustin commented on Apr 15, 2020

    @mrtnzagustin
    mrtnzagustin
    on Apr 15, 2020
    More actions

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.