Coder Social home page Coder Social logo

Comments (2)

aponxi avatar aponxi commented on July 2, 2024

Thank you for your kind words!

Simple really, just need to change the compiler to typescript compiler. This plugin compiles the js using coffee executable providing various arguments like -c for compile -d (i think) for displaying output and such, and ports it to sublime to display its output or run the whatever task I've added as a feature.

You just need to find the lines that do those things for compiling, for displaying the compiled output and other features I've implemented which use coffee compiler exe; and change them to typescript compiler and args. Then the rest should come automatically in a very magical way !

Note that: Let's say (this actually doesn't exist but for example let's just say) I used an argument like --minify for coffeescript compiler and that argument doesn't exist for typescript compiler, then you would have to either remove that function from the plugin OR find the equivalent (for example let's say it is --compress for typescript) and replace it with that. Again those are just for examples, they aren't from the actual code.

I was actually planning on extending this plugin for sass, less, stylus etc. But unfortunately I haven't gotten to it yet due to other projects. If you need any help I would be glad to assist to the best of my ability.

Also, we could just add it to this plugin too- since I do checks against if this file you are editing is coffee or not We could just add the compiler for typescript where this plugin runs it, and we would be able to migrate these two together without interfering with each other, just by doing a check against is this a type script file you are editing?. I haven't used typescript before but I'm guessing they are similar?

Anyway, let me know if I can answer any more questions for you.

Regards.

from sublime-better-coffeescript.

gabrielflorit avatar gabrielflorit commented on July 2, 2024

Thanks for the detailed reply - much appreciated! I think I have everything I need for now. I'll try to get the most basic functionality working (compile) to begin with, and move on from there.

Regarding merging the two together, it makes a lot of sense, although there are a couple of unique CoffeeScript features, such as snippets, that wouldn't be applicable.

from sublime-better-coffeescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.