Skip to content

Commit 840f00d

Browse files
ascorbicgillkyleLauriegatsbybotwardpeet
authoredOct 15, 2020
New Gatsby image plugin (#26924)
* Add static image plugin * Parse static image files * Fix package.json * Better static analysis * Use jsx utils package * Fix typings * Typecheck fix * Fix repo fields * Helpful warning * Re-enable duotone * Update readme * Improve typings * wip fixed image fields for tracedSVG and webP * handle fluid images as well * Use require rather than JSON import * Watch files for changes, and use relative paths * Improve types * Add type * Update yarn.lock * Add lots of comments and remove unused stuff * Create and watch our own nodes * Update readme * Update deps * Only watch in develop * Rename to gatsby-plugin-image * Rearrange, ready for merger * Import @wardpeet 's gatsby-image-netxtgen * Update typings and further merge packages * Build babel plugin * More merging * Add server/browser static image variants * include webpack changes * change error message to use gatsby-plugin-image * Fix compat compilation * Fix SSR * Merge readmes * Build browser bundle * Export correctly from browser entry point * Remove hook import * Apply suggestions from code review Co-authored-by: LB <laurie@gatsbyjs.com> * Changes from review * add path prefix, static image do e2e test * Add prepare script * Apply README suggestions from code review Co-authored-by: LB <laurie@gatsbyjs.com> * Fix image component in e2e test * Better error messages * Prefer svg over base64. Warn for unsupported art direction * Fix type * Use "layout" instead of fixed/fluid * add static images to production runtime site * add path prefix tests * Reorg types. Change private prop name * initial gatsby static image tests * add test suite to circle ci * add test suite to circle ci * add test suite to circle ci * remove unused imports, use valid fluid setting * Use new fluid props syntax * Better var name * update tests * remove tests that no longer match the expected DOM * More compat-fixes * Change classname to match old version * Compat improvements * Update tests to match new classname * v0.0.1 * Add readme caveat * Update version in packages * Remove forcewrapper * Changes from review * Apply suggestions from code review Co-authored-by: Ward Peeters <ward@coding-tech.com> * fix windows require * fix intrinsic & responsive layout * update e2e-test * move babel-plugin-remove-graphql-queries to dep Co-authored-by: Kyle Gill <kylerobertgill@gmail.com> Co-authored-by: Laurie <laurie@gatsbyjs.com> Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com> Co-authored-by: Ward Peeters <ward@coding-tech.com>
1 parent e6162dd commit 840f00d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+3959
-13
lines changed
 

‎.circleci/config.yml

+9
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,13 @@ jobs:
368368
test_path: e2e-tests/mdx
369369
test_command: yarn test
370370

371+
e2e_tests_gatsby-static-image:
372+
<<: *e2e-executor
373+
steps:
374+
- e2e-test:
375+
test_path: e2e-tests/gatsby-static-image
376+
test_command: yarn test
377+
371378
starters_validate:
372379
executor: node
373380
steps:
@@ -573,6 +580,8 @@ workflows:
573580
<<: *e2e-test-workflow
574581
- e2e_tests_gatsby-image:
575582
<<: *e2e-test-workflow
583+
- e2e_tests_gatsby-static-image:
584+
<<: *e2e-test-workflow
576585
- e2e_tests_development_runtime:
577586
<<: *e2e-test-workflow
578587
- e2e_tests_production_runtime:

‎e2e-tests/development-runtime/gatsby-config.js

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ module.exports = {
4848
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
4949
},
5050
},
51+
`gatsby-plugin-image`,
5152
// this (optional) plugin enables Progressive Web App + Offline functionality
5253
// To learn more, visit: https://gatsby.dev/offline
5354
// 'gatsby-plugin-offline',

0 commit comments

Comments
 (0)
Please sign in to comment.