forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: begin adding asset path functionality #4
Open
DSchau
wants to merge
44
commits into
master
Choose a base branch
from
gatsby/asset-prefix
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
7b39690
feat(gatsby): add an asset path registry that plugins can hook into
DSchau feed176
chore: add another test
DSchau 915e22f
chore: add assets to onPostBuild
DSchau 3a64086
refactor: use an array for assets
DSchau 23101c7
chore: begin integrating into CLI
DSchau 131d62f
Merge remote-tracking branch 'upstream/master' into gatsby/asset-prefix
DSchau 621c74a
chore: small tweaks
DSchau b91b84c
chore: get closer to getting it working
DSchau ac65879
chore: keep iterating
DSchau 11b800b
chore: add another
DSchau 43fb60d
Merge branch 'gatsby/asset-prefix' of github.com:DSchau/gatsby into g…
DSchau 5eeacf7
fix: use string joining (this is not for fs paths)
DSchau 617fefb
feat: expose normalize path util for parsing url parts
DSchau 5bc128b
fix: fix trailing slash
DSchau bef2b66
Merge remote-tracking branch 'upstream/master' into gatsby/asset-prefix
DSchau ee33c89
chore: remove prefix-assets option (think it makes sense to use
DSchau c5052c1
test: fix pathPrefix test (webpack requires trailing slash)
DSchau 925ffaf
test: fix failing node tests
DSchau bb3e19a
chore: update snapshots
DSchau ea1f93d
chore: add public folder (was gitignored!)
DSchau b03330f
chore: validate assetPrefix as a URI
DSchau 77a0f5d
Merge remote-tracking branch 'upstream/master' into gatsby/asset-prefix
DSchau 2b2eba2
fix: correctly make links (and probably other things) work
DSchau 3f89dc1
test: get tests passing again
DSchau 4258a34
refactor(gatsby-transformer-sharp): pass the Gatsby API args
DSchau 1547347
chore: use withAssetPrefix
DSchau def1cbb
chore: more tweaks
DSchau e35b507
chore: use withPathPrefix and fallback if not available
DSchau 8a00137
chore: make the necessary changes in packages to get fully working
DSchau 0e20b1b
Merge remote-tracking branch 'upstream/master' into gatsby/asset-prefix
DSchau 14ae1ca
chore: intentionally reset plugin changes
DSchau 9f54525
test: hopefully fix tests (fingers crossed emoji)
DSchau f97f91d
chore: remove test file
DSchau 97d727d
Merge remote-tracking branch 'upstream/master' into gatsby/asset-prefix
DSchau 5c75200
refactor: tweak path normalization for asset registry
DSchau 2348991
chore: remove todo comment
DSchau b8f35da
Merge remote-tracking branch 'upstream/master' into gatsby/asset-prefix
DSchau 31a2632
Merge remote-tracking branch 'upstream/master' into gatsby/asset-prefix
DSchau 847805f
Merge remote-tracking branch 'upstream/master' into gatsby/asset-prefix
DSchau 6336920
fix: (hopefully) fix tests and normalize path from getAssets
DSchau 2b39dac
chore: use file name (basename) to avoid snapshot failurse
DSchau f193377
test: fix unit tests
DSchau 5ba3760
Merge remote-tracking branch 'upstream/master' into gatsby/asset-prefix
DSchau e3f8daa
chore: remove eslint comment
DSchau 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 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 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 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
2 changes: 1 addition & 1 deletion
2
packages/gatsby-plugin-feed/src/__tests__/__snapshots__/gatsby-ssr.js.snap
This file contains 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 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 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 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 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 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 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 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 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 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 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
95 changes: 95 additions & 0 deletions
95
packages/gatsby/src/utils/__tests__/__snapshots__/asset-path-registry.js.snap
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`getAssets returns webpack assets 1`] = ` | ||
Array [ | ||
"webpack-runtime-f08922a061a7e09baa26.js", | ||
"webpack-runtime-f08922a061a7e09baa26.js.map", | ||
"app-4b433d29b46598f0ecd3.js", | ||
"app-4b433d29b46598f0ecd3.js.map", | ||
"component---node-modules-gatsby-plugin-offline-app-shell-js-b1a75793f38b5d3df59f.js", | ||
"component---node-modules-gatsby-plugin-offline-app-shell-js-b1a75793f38b5d3df59f.js.map", | ||
"0.2b5955a752ed0afe77ce.css", | ||
"0-fecec88f7d9d61b9013a.js", | ||
"0-fecec88f7d9d61b9013a.js.map", | ||
"1-b047c021df576f0acceb.js", | ||
"1-b047c021df576f0acceb.js.map", | ||
"2.fd4497ec960200ce8103.css", | ||
"2-5ce6e769c43c7185e581.js", | ||
"2-5ce6e769c43c7185e581.js.map", | ||
"3-acdb3c000e2ba39d41ef.js", | ||
"3-acdb3c000e2ba39d41ef.js.map", | ||
"component---src-templates-template-blog-list-js-e53084eb5bee3f6f7f3e.js", | ||
"component---src-templates-template-blog-list-js-e53084eb5bee3f6f7f3e.js.map", | ||
"40-cfb9271892b3c6f32cb7.js", | ||
"40-cfb9271892b3c6f32cb7.js.map", | ||
"component---src-templates-template-blog-post-js-7b76cbf47a3d2298e372.js", | ||
"component---src-templates-template-blog-post-js-7b76cbf47a3d2298e372.js.map", | ||
"component---src-templates-tags-js-596abb26f29b385da04f.js", | ||
"component---src-templates-tags-js-596abb26f29b385da04f.js.map", | ||
"component---src-templates-template-starter-page-js-3ffff961577834cf4023.js", | ||
"component---src-templates-template-starter-page-js-3ffff961577834cf4023.js.map", | ||
"component---src-templates-template-contributor-page-js-f9404cf60eca8d73fa02.js", | ||
"component---src-templates-template-contributor-page-js-f9404cf60eca8d73fa02.js.map", | ||
"component---src-templates-template-creator-details-js-88ef970e91e0b78c2f36.js", | ||
"component---src-templates-template-creator-details-js-88ef970e91e0b78c2f36.js.map", | ||
"43-53d7dbdaf8c4c4002036.js", | ||
"43-53d7dbdaf8c4c4002036.js.map", | ||
"component---src-templates-template-showcase-details-js-f5e8e7b262e87f30a837.js", | ||
"component---src-templates-template-showcase-details-js-f5e8e7b262e87f30a837.js.map", | ||
"component---src-templates-template-docs-markdown-js-beed50a1f7dd4d27b797.js", | ||
"component---src-templates-template-docs-markdown-js-beed50a1f7dd4d27b797.js.map", | ||
"4-a765cc45c3be4b896d6f.js", | ||
"4-a765cc45c3be4b896d6f.js.map", | ||
"6-877482b381b70a3e1930.js", | ||
"6-877482b381b70a3e1930.js.map", | ||
"component---src-templates-template-docs-local-packages-js.fd4497ec960200ce8103.css", | ||
"component---src-templates-template-docs-local-packages-js-c53e4baf78ad21580235.js", | ||
"component---src-templates-template-docs-local-packages-js-c53e4baf78ad21580235.js.map", | ||
"component---src-templates-template-docs-remote-packages-js.fd4497ec960200ce8103.css", | ||
"component---src-templates-template-docs-remote-packages-js-68b7685d85bd50607d49.js", | ||
"component---src-templates-template-docs-remote-packages-js-68b7685d85bd50607d49.js.map", | ||
"component---src-pages-404-js-c31dd87a2028cf26b810.js", | ||
"component---src-pages-404-js-c31dd87a2028cf26b810.js.map", | ||
"component---src-pages-blog-tags-js-46843cd191f6d9a81483.js", | ||
"component---src-pages-blog-tags-js-46843cd191f6d9a81483.js.map", | ||
"5-5f0403c3cf66cc31c4fb.js", | ||
"5-5f0403c3cf66cc31c4fb.js.map", | ||
"component---src-pages-community-agencies-js-442a248e84f48ec18e11.js", | ||
"component---src-pages-community-agencies-js-442a248e84f48ec18e11.js.map", | ||
"component---src-pages-community-companies-js-4a9bb59d522d16bc0cd5.js", | ||
"component---src-pages-community-companies-js-4a9bb59d522d16bc0cd5.js.map", | ||
"component---src-pages-community-index-js-3c9cc70d04f424db3ffa.js", | ||
"component---src-pages-community-index-js-3c9cc70d04f424db3ffa.js.map", | ||
"component---src-pages-community-people-js-26220872f1564524ef20.js", | ||
"component---src-pages-community-people-js-26220872f1564524ef20.js.map", | ||
"component---src-pages-docs-actions-js-af5b12753a00718765fd.js", | ||
"component---src-pages-docs-actions-js-af5b12753a00718765fd.js.map", | ||
"component---src-pages-docs-browser-apis-js-f9529c1875808d214471.js", | ||
"component---src-pages-docs-browser-apis-js-f9529c1875808d214471.js.map", | ||
"component---src-pages-docs-index-js-c7323417d5798f1bcd94.js", | ||
"component---src-pages-docs-index-js-c7323417d5798f1bcd94.js.map", | ||
"component---src-pages-docs-node-apis-js-18a7ea5c808fce0d9402.js", | ||
"component---src-pages-docs-node-apis-js-18a7ea5c808fce0d9402.js.map", | ||
"component---src-pages-docs-ssr-apis-js-c4b332ac75f8093bdf42.js", | ||
"component---src-pages-docs-ssr-apis-js-c4b332ac75f8093bdf42.js.map", | ||
"component---src-pages-features-js-4a4a3f05f2ed8a3afa03.js", | ||
"component---src-pages-features-js-4a4a3f05f2ed8a3afa03.js.map", | ||
"component---src-pages-newsletter-js-b823f6af0f63d49f5bef.js", | ||
"component---src-pages-newsletter-js-b823f6af0f63d49f5bef.js.map", | ||
"component---src-pages-plugins-js.fd4497ec960200ce8103.css", | ||
"component---src-pages-plugins-js-259ea07a4bf263d315c7.js", | ||
"component---src-pages-plugins-js-259ea07a4bf263d315c7.js.map", | ||
"42-d5c0588bf92953044654.js", | ||
"42-d5c0588bf92953044654.js.map", | ||
"component---src-pages-showcase-js-710ac9cbe8f04ccc5629.js", | ||
"component---src-pages-showcase-js-710ac9cbe8f04ccc5629.js.map", | ||
"39-72be356c49b30af6ec24.js", | ||
"39-72be356c49b30af6ec24.js.map", | ||
"component---src-pages-starters-js-5cea20767c8766bdcda4.js", | ||
"component---src-pages-starters-js-5cea20767c8766bdcda4.js.map", | ||
"component---src-pages-ecosystem-js-633f4f4caa8ef50afcbe.js", | ||
"component---src-pages-ecosystem-js-633f4f4caa8ef50afcbe.js.map", | ||
"component---src-pages-index-js-0a2a452fc816778a6329.js", | ||
"component---src-pages-index-js-0a2a452fc816778a6329.js.map", | ||
] | ||
`; |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we need this.