Coffee Rails Source Maps

screenshot of Coffee Rails Source Maps

DO NOT USE THIS!! I DO NOT MAINTAIN IT!

Overview

If you're working with CoffeeScript in a Rails application, the CoffeeScript Rails Source Maps gem can significantly enhance your development experience. By generating source maps, it allows you to debug your CoffeeScript code more effectively within the Chrome console, giving you a clear view of your code as you work.

This gem was introduced primarily for development purposes, creating a dedicated folder for source maps in your application's public directory. However, it's important to note that this tool is not actively maintained, so proceed with caution and ensure it fits within your workflow before integrating it into your projects.

Features

  • Easy Integration: Simply add a line to your Gemfile to install the gem, making it quick to set up in your Rails application.

  • Source Maps Generation: Automatically generates CoffeeScript source maps, facilitating better debugging in the browser.

  • Development Mode Only: Designed specifically to be used in development environments, ensuring you have the best tools for testing without affecting production.

  • Cache Management: Easily clear and manage your asset cache by removing tmp/cache/assets, which prompts a recompile of all CoffeeScripts.

  • Chrome Compatibility: Works seamlessly with Chrome's developer tools; just enable source maps in the settings to start debugging.

  • .gitignore Recommendation: The gem creates a source maps folder that should be added to your .gitignore file to avoid cluttering your repository.

  • Helpful Debugging Tips: Includes guidance for effective debugging, such as adding a debugger call in your CoffeeScript code to view it directly in Chrome's console.

  • Community Contributions: Open to contributions, with numerous contributors acknowledged for enhancing its functionality and robustness.