-
Notifications
You must be signed in to change notification settings - Fork 26
Add RewriteAmpUrls transformer #119
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
Merged
Merged
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
4c446c9
Add typing to FallbackRemoteRewquest
schlessera 129d804
Add appendRuntimeVersion() to RuntimeVersion object for convenient ac…
schlessera 7e89798
Allow for the config.json file to be synced for test spec suite
schlessera 27eeb15
Add RewriteAmpUrls transformer and configuration
schlessera 73470d8
Use static runtime version append method in RuntimeCss transformer
schlessera 70f131d
Add exceptions and errors
schlessera ec42883
Add transformer to default list of transformers
schlessera 470b289
Adapt SpecTest setup
schlessera 157ad94
Sync test suite to add suite-wide config files
schlessera ce5a657
Adapt type-hints to use extended Element
schlessera f0d6901
Add missing types to configuration property declarations
schlessera 37c984e
Use modulepreload instead of preload
schlessera 5e31b23
Use final config option variant
schlessera fcf0da4
Copy attributes over
schlessera 6b28aa3
Fix remaining test failures
schlessera 81b5a3a
Add RewriteAmpUrls transformer to README file
schlessera 728fa5c
Add test for Document::createElementWithAttributes()
schlessera 34031d3
Add tests for exceptions
schlessera 2ceda32
Add missing element append to test
schlessera 0329bdb
Add test for mutually exclusive flags
schlessera d22e4c9
Use RewriteAmpUrls as very last transformer
schlessera 3a6d459
Change reference node to use
schlessera fac02dc
Use constants for attribute names
schlessera 6672ac9
Remove left-over since tag
schlessera 7b30254
Use setAttribute() for adding an attribute
schlessera e378c9b
Deduplicate scripts by src as opposed to custom-element/custom-templa…
westonruter b29a21f
Update tests
westonruter 3305726
Add ReorderHeadTransformer/supports_esm test files
westonruter f46ecf0
Remove stray duplicated semicolon
westonruter a3a99fd
Add modulepreload link to ampResourceHints
westonruter 4bad718
Account for .mjs scripts in isRuntimeScript
westonruter cda4bd8
Account for multiple runtime scripts in reordering
westonruter 6f3e006
Implement script deduplication scheme which keeps module/nomodule scr…
westonruter 6a0532a
Restore extension sorting
westonruter 5ac47b9
Update test with modulepreload link
westonruter c158850
Ensure nomodule scripts come after module ones
westonruter 7b23a67
Fix running phpcs when installed as composer package
westonruter 7c08d4e
Fix phpcs issues
westonruter 5824c99
Add exclude-pattern for non-vendor dependency
westonruter bd76b1a
Account for non-Element nodes in the head when ordering
westonruter 63244cc
Add performance TODO
schlessera b62d924
Revert change to PHPCS config
schlessera 9f4b14f
Fix whitespace issues
schlessera f8a8c47
Merge pull request #130 from ampproject/fix/reorder-head-deduplication
schlessera 439419d
Use ReorderHead transformer as the very last transformer again
schlessera c8a83e5
Move up non-AMP resource hints per https://github.com/ampproject/amp-…
westonruter 3bd853f
Add internal state for Url abstraction
schlessera 8c1b41b
Update ordering in ReorderHeadTest
westonruter 54b7080
Add tests for URL parsing and re-assembly
schlessera 4d01f4f
Merge branch 'add/20-rewrite-amp-urls-transformer' of https://github.…
schlessera 1652c72
Add read-only property access to Url
schlessera 5022fdf
Fix query property test
schlessera 94540b1
Fix logic for adding runtime-host meta tag
schlessera e0dd638
Use substr_compare() in usesAmpCacheUrl()
westonruter ff5995e
Add filter to required extensions
westonruter f27de56
Move viewport after meta charset
westonruter 1a0f1dd
Update spec test files
schlessera 02ccd66
Adapt tests
schlessera b96aadf
Add phpdoc blocks for errors
schlessera 9b66f33
Annotate exception that is thrown on URL parse failure.
schlessera 3581e1c
Revert "Use substr_compare() in usesAmpCacheUrl()"
westonruter b2a8478
Merge branch 'main' of https://github.com/ampproject/amp-toolbox-php …
westonruter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.