Introducing: CoffeeScript Preview


#1

I really like using CoffeeScript for building packages for Atom. However, I am new to CoffeeScript and sometimes have to reference the Try CoffeeScript section of the website, http://coffeescript.org/, and try out some code snippets to see if they “compile” as I expect them to.
I have used Markdown preview and others and find them really helpful so I thought a CoffeeScript preview would come in handy. It has! Once I had a semi-functional version, I was using CoffeeScript Preview to help build CoffeeScript Preview!
I hope that this helps other CoffeeScript developers, both new and experienced.
Enjoy :smile:.

Atom Package: https://atom.io/packages/coffeescript-preview
GitHub: https://github.com/Glavin001/atom-coffeescript-preview


#2

Awesome! I’m definitely trying this out.
Live preview even? Can’t wait.


#3

I’ve been doing the exact same thing with the Try Coffeescript @Glavin001… thanks for this!


#4

@Glavin001 awesome work! This will really help me understand what is going on in my closures and help clear up the difference between do, and => for me.


#5

This is pretty handy. How much of the package is specific to CoffeeScript? I’d love to have side-by-side compilation for other pre-processing languages like LESS & SASS too.


#6

I’ve opened a little issue, about the syntax theme not being used for the preview window.

It’s very minor one of course, but would be nice to have fixed.


#7

LESS or SASS would be definitely doable :). Maybe I’ll look into it later tonight – unless someone else has already started.


#8

I will be resolving this soon, hopefully later tonight :).


#9

I have started atom-preview which will be the ultimate previewer of source code for Atom.
See LESS support here


#10

Looking forward to it!


#11

Here it is! https://atom.io/packages/preview
Let me know how you like it and feel free to create new issues for language support.


#12

Great, installed! It was at zero downloads so I guess I’m your first user :smile:

You should see if you can migrate over people who use coffee-script preview.


#13

@Glavin001 Could it be worthwhile changing the tab name to whatever the output file extension would be, and allow people to save it directly as that file (say via Ctrl-S)?

I find myself wishing I could quickly save the javascript version in the preview all the time.


#14

Absolutely! Could you make those issue(s) here? Thanks!


#15

I have deprecated Atom CoffeeScript Preview in favour of Atom Preview.
See discussion here: Preview: Your Ultimate Previewer of source code in Atom!

Thanks for your support!