Giter VIP home page Giter VIP logo

Comments (7)

vendethiel avatar vendethiel commented on June 3, 2024

I hardly see how that'd work. CoffeeScriptRedux has this feature because it's generating JS AST and not simple JS.
Another stab was done https://github.com/benbria/coffee-script and it's pretty dirty.

from coffeescript-php.

pYr0x avatar pYr0x commented on June 3, 2024

I can not follow you unfortunately..

what do you mean with "pretty dirty" in relation to https://github.com/benbria/coffee-script

what is your best practice to debug coffee script compiled by this php compiler?

from coffeescript-php.

vendethiel avatar vendethiel commented on June 3, 2024

I don't use this compiler anymore (as I don't write coffee anymore), but I'm meaning by "dirty" is that this just feels like a hack to me.

from coffeescript-php.

alxlit avatar alxlit commented on June 3, 2024

Hi pYr0x,

The original CoffeeScript compiler that this port is based on does not support source maps, and I definitely don't want to implement source maps myself. Porting from Redux isn't really feasible (as Nami says, it's pretty different).

I haven't used CoffeeScript in a while (or PHP for that matter), but I think what most people do when debugging w/o source maps is just read the compiled code.

from coffeescript-php.

pYr0x avatar pYr0x commented on June 3, 2024

i have now a solution for debugging CoffeeScript without SourceMaps.

I am using the javascript runtime compiler http://coffeescript.org/extras/coffee-script.js as long as my website is in debugging mode. after that i'll compile the coffee script with this php-compiler into javascript and cache that file.

from coffeescript-php.

vendethiel avatar vendethiel commented on June 3, 2024

I don't really understand how that's better than using this compiler and cache off+minify the file if needed but well - native version sure works better

from coffeescript-php.

tortuetorche avatar tortuetorche commented on June 3, 2024

Coffeescript >= 1.6.1 supports source maps. So do you plan to port it ?

from coffeescript-php.

Related Issues (18)

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.