Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First pass at 'spew' debug mode #228

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

afavaro
Copy link

@afavaro afavaro commented Mar 27, 2013

I took a shot at implementing a spew debug mode similar to what was mentioned in #168. I've added a spew_output attribute for top-level bundles that specifies the directory into which files should be saved after applying filters. Files are saved in this directory using the same directory structure relative to the environment directory. External assets (loaded from URLs) are saved in host.com/path/to/file.js in this directory. There's also an optional spew_ext attribute that lets you specify a new extension for generated files.

This is just a rough draft so I haven't tested anything extensively but if this looks like something you might want I can write some tests and documentation. A few remarks:

  • This implementation assumes that all input files paths are relative to the environment directory so it won't work with absolute file paths
  • Version placeholders are ignored but I don't think we need those for this mode
  • Because this doesn't do anything with versions it also doesn't touch the manifest. Again I don't think we need to for this mode

Let me know what you think. I'm happy to make changes if you'd rather do this differently. Would love to see this feature in webassets and possibly add support for source maps as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants