Comments (2)
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.
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)
- How to pass in custom arguments to coffeescript binary
- Not working on Windows ? HOT 1
- Plugin Not Working HOT 1
- Cake task output
- Execute me, how to write a similar key binding for ES6 ${}
- Separate CSON from CoffeeScript
- Why is so slow the saving with SublimeText3 and Better-coffescript?
- This keeps popping when loading: rule scope:source.rust##anon_struct-tuple_0 has a scope name, but is unreachable HOT 1
- modules - import and export HOT 1
- Ability to use variable path for binDIR and envPATH HOT 2
- # -> #{} Code Snippet Not Limited to CoffeeScript Files
- Would it be possible to properly highlight regex literals?
- Please update for CS v2.0 HOT 3
- NEED NEW MAINTAINER - PLEASE POST HERE HOT 6
- [Feature request] Regular expressions highlights HOT 1
- if "class" appears in coffeescript code, e.g., class_name, subsequent lines are indented
- Nothing matching obj.method 'arg'
- Add support for Sublime Text 4 (build 4121) HOT 1
- Last character missing in auto-suggest in ST4 HOT 1
- Could "console.dir" be added so it is highlighted similar to "console.log"?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublime-better-coffeescript.