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

Fix source maps #614

Merged
merged 5 commits into from Mar 8, 2016
Merged

Fix source maps #614

merged 5 commits into from Mar 8, 2016

Conversation

marcoscaceres
Copy link
Member

@halindrome, this gets source maps working correctly. I still think we need to try this out a bit before we commit to it. According the RequireJS documentation, source maps are still "experimental".

@marcoscaceres
Copy link
Member Author

Ok, this gives us the first steps towards using source maps in testing. However, browser support is spotty.

@halindrome, r?

I had incorrectly assumed that the source map filename would be
the built filename + `.map`. It's actually auto-generated, but not directly
returned, by the Requirejs optimizer. It now generates the correct file
which is profile-w3c-common.build.js.map.

Feat (test-build.js): use chai for testing instead

Feat (builder.js): Allow sourcemap to be versioned.

Fix (test-build.js): fix shebang so test can be run via mocha instead of node

Fix (test-build.js): moved to tests directory

Fix (respec-w3c-common.build.js.map): map is now named correctly

Fix (.jshintrc): conflict in files
@marcoscaceres
Copy link
Member Author

@halindrome, while I fix the other ones, I'd like to get this landed. If you have time, would really appreciate a review.

Other people watching this repo, can anyone else help with reviews?

@marcoscaceres
Copy link
Member Author

Ping

@halindrome
Copy link
Contributor

Looking.

@halindrome
Copy link
Contributor

Tests seem to pass - LGTM.

marcoscaceres pushed a commit that referenced this pull request Mar 8, 2016
@marcoscaceres marcoscaceres merged commit 2d9e7f8 into develop Mar 8, 2016
@marcoscaceres marcoscaceres deleted the fix_source_maps branch March 8, 2016 23:35
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this pull request Feb 19, 2018
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this pull request Feb 19, 2018
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.

None yet

2 participants