Comments (7)
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.
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.
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.
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.
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.
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.
Coffeescript >= 1.6.1 supports source maps. So do you plan to port it ?
from coffeescript-php.
Related Issues (18)
- Line continuation throws an error while compiling HOT 1
- Fails functions.coffee, function_invocations.coffee for 1.3.1
- An option to disable the top self invoking function ? HOT 2
- Some errors with coffeescript 1.4.0 HOT 3
- Ignore vendor directory HOT 1
- Block comments within object declarations sometimes compile incorrectly HOT 2
- Project Status HOT 4
- Blank or comment only file
- How to use this ? HOT 1
- Version 1.8.0 support HOT 1
- Make a release with latest changes HOT 1
- Regression on master? HOT 3
- global variable $UTILITIES in classes/nodes.php
- Strict Errors with function declarations in nodes/base HOT 7
- Add a composer.json and use its autoload. HOT 6
- Compilation error. 500 Internal server HOT 2
- src/CoffeeScript/yy/ Block.php line 42
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 coffeescript-php.