Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name change? #105

Open
juliankrispel opened this issue Nov 7, 2020 · 16 comments
Open

Name change? #105

juliankrispel opened this issue Nov 7, 2020 · 16 comments
Labels

Comments

@juliankrispel
Copy link

Have you considered a name change? Search engines think that this project name is a typo, which isn't great for visibility, which in turn is a shame because this project is amazing 🙏

@cevek
Copy link
Owner

cevek commented Nov 30, 2020

yeah, it was bad idea to add just one letter to name :).
so, what name do you proposal?

@cevek cevek added the question label Nov 30, 2020
@Griffork
Copy link

Griffork commented Dec 1, 2020

Why not something simple like Typescript Transformer?

Other options:

  • Typescript Transform Factory/Handler/Wrapper.
  • tsconfig Transforms (although people searching for ttypescript or typescript transforms won't hit this).

@juliankrispel
Copy link
Author

juliankrispel commented Dec 4, 2020

@cevek that should be up to you imo. Maybe a poll?

Personally I like what @Griffork mentioned - "Typescript Transformer" - or "ts-transform" for short? Would match keywords quite well and also it would make for a great logo/graphic (which I'd love to design btw 😀)

image

@cevek
Copy link
Owner

cevek commented Dec 4, 2020

and also we need new name to commandline tsc

@Griffork
Copy link

Griffork commented Dec 4, 2020

ttsc (or tsct or tsc-tr) is fine for command line, as long as it's documented somewhere.

@cspotcode
Copy link

If #96 is implemented, then this project can be named pluggable-typescript or typescript-plugins. CLI name can be ptsc or tscp.

This project could accomplish TypeStrong/discussions#5

@nonara
Copy link
Contributor

nonara commented Feb 5, 2021

Instead of just a name change, what do you think about a mutual rewrite, effectively replacing this and ts-patch? I've been thinking about this for awhile now.

Here's my proposal and a discussion #113

@Griffork
Copy link

Griffork commented Feb 5, 2021

@cspotcode I suspect most people looking for this repo will be using typescript's official name for compiler plugins which is transforms, so I'd still recommend using that as the name.
That doesn't prevent ttypescript from doing what you suggest and putting an entry in the readme about it (which should show up when searching for typescript plugins).


Ninja'd by @nonara: I already have a local hack (replacing a few files) to add my own configuration file so I could support a configuration heirarchy (allowing me to ship the compiler with default transforms enabled) and a few other nice things. I'm planning on making more changes like hopefully figuring out how to add tsserver support. The creator of this repo is busy on other projects atm so this repo isn't a high priority for them. You may be able to get pull requests submitted but I don't think cevek is going to be adding any more code themselves.

@cspotcode
Copy link

cspotcode commented Feb 5, 2021 via email

@Griffork
Copy link

Griffork commented Feb 5, 2021

@cspotcode what do you mean about diagnostics? Do you mean custom syntax output or error reporting or something else?

@nonara
Copy link
Contributor

nonara commented Feb 5, 2021

@cspotcode Yeah, that's why I thought 'extensions' made more sense. Especially if we allow for additional patching and combining LS plugins with transformers into one package.

Can typescript transformers change diagnostics?

In order to get that to work, I had to add some additional hooking. There's API for it that gets fed to your entry point in ts-patch. That's one area that the two projects diverge

@cspotcode
Copy link

cspotcode commented Feb 5, 2021 via email

@nonara
Copy link
Contributor

nonara commented Feb 5, 2021

@cspotcode If noEmit is set, I believe transformers don't get run, so that's a good point. In that case, tsp would not allow modification. That's another reason I'd like to a see a redesigned system that wasn't centered around transformers alone.

@Griffork
Copy link

Griffork commented Feb 5, 2021

@cspotcode oooh. I've just been hacking transformers to act a bit like language service plugins (which has quite restricted what I've been able to do with them). Outputting to console.error with the correct format seems to get picked up by IDEs and is indistinguishable to a normal tsc error afaik so I just made a helper to do that.

When looking at Typescript's code I didn't really see any support for language service plugins the same way that there's support for transformers. So unless transformers can also be language service plugins I might be missing something.

@cspotcode
Copy link

cspotcode commented Feb 5, 2021 via email

@cspotcode
Copy link

cspotcode commented Feb 5, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants