contentful-userland / gatsby-contentful-starter

Gatsby starter for a Contentful project from the community.
https://contentful-userland.github.io/gatsby-contentful-starter/
MIT License
279 stars 123 forks source link

Update all dependencies #66

Closed skylerwshaw closed 4 years ago

skylerwshaw commented 4 years ago

The new Gatsby Cloud product uses "Distributed Builds", which requires gatsby@^2.19.5 and gatsby-plugin-sharp@^2.4.0 according to this post. image

In addition to the above dependencies, I've updated all others. Though there aren't tests against which we could validate, I've ensured this branch/PR can:

Console log of app creation with this branch

```bash $ gatsby new blog.skylershaw.com ./gatsby-contentful-starter info Creating new site from local starter: ./gatsby-contentful-starter Copying local starter to blog.skylershaw.com ... success Created starter directory layout info Installing packages... yarn install v1.21.1 [1/4] πŸ” Resolving packages... success Already up-to-date. $ node ./bin/hello.js Hey there! πŸ‘‹ Thanks for giving the gatsby-contentful-starter a try. πŸŽ‰ To get you going really quickly this project includes a setup step. yarn run setup automates the following steps for you: - creates a config file ./.contentful.json - imports a predefined content model When this is done run: yarn run dev to start a development environment at localhost:8000 or yarn run build to create a production ready static site in ./public For further information check the readme of the project (https://github.com/contentful-userland/gatsby-contentful-starter) ✨ Done in 1.32s. info Your new Gatsby site has been successfully bootstrapped. Start developing it by running: cd blog.skylershaw.com gatsby develop ``` ```bash $ cd blog.skylershaw.com && yarn run setup yarn run v1.21.1 $ node ./bin/setup.js To set up this project you need to provide your Space ID and the belonging API access tokens. You can find all the needed information in your Contentful space under: app.contentful.com -> Space Settings -> API keys The Content Management API Token will be used to import and write data to your space. The Content Delivery API Token will be used to ship published production-ready content in your Gatsby app. The Content Preview API Token will be used to show not published data in your development environment. Ready? Let's do it! πŸŽ‰ ? Your Space ID [REDACTED] ? Your Content Management API access token [REDACTED] ? Your Content Delivery API access token [REDACTED] Writing config file... Config file /Users/skylershaw/Developer/blog.skylershaw.com/.env.development written Config file /Users/skylershaw/Developer/blog.skylershaw.com/.env.production written β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ The following entities are going to be imported: β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ Content Types β”‚ 2 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ Editor Interfaces β”‚ 2 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ Entries β”‚ 4 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ Assets β”‚ 4 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ Locales β”‚ 1 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ Webhooks β”‚ 0 β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ βœ” Validating content-file βœ” Initialize client (1s) βœ” Checking if destination space already has any content and retrieving it (2s) βœ” Apply transformations to source data (1s) βœ” Push content to destination space βœ” Connecting to space (1s) βœ” Importing Locales (1s) βœ” Importing Content Types (4s) βœ” Publishing Content Types (4s) βœ” Importing Editor Interfaces (3s) βœ” Importing Assets (9s) βœ” Publishing Assets (2s) βœ” Archiving Assets (1s) βœ” Importing Content Entries (4s) βœ” Publishing Content Entries (2s) βœ” Archiving Entries (0s) βœ” Creating Web Hooks (1s) Finished importing all data β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Imported entities β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€ β”‚ Locales β”‚ 1 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€ β”‚ Content Types β”‚ 2 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€ β”‚ Editor Interfaces β”‚ 2 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€ β”‚ Assets β”‚ 4 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€ β”‚ Published Assets β”‚ 4 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€ β”‚ Archived Assets β”‚ 0 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€ β”‚ Entries β”‚ 4 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€ β”‚ Published Entries β”‚ 4 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€ β”‚ Archived Entries β”‚ 0 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€ β”‚ Webhooks β”‚ 0 β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”˜ The import took a few seconds (26s) No errors or warnings occurred The import was successful. All set! You can now run yarn run dev to see it in action. ✨ Done in 39.78s. ``` ```bash $ yarn run dev yarn run v1.21.1 $ npm run develop npm WARN lifecycle The node binary used for scripts is /var/folders/bv/sng806552j75qcjyz9db8mth0000gn/T/yarn--1582116573203-0.11074682276777303/node but npm is using /Users/skylershaw/.nvm/versions/node/v12.16.1/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with. > gatsby-contentful-starter@1.0.0 develop /Users/skylershaw/Developer/blog.skylershaw.com > gatsby develop success open and validate gatsby-configs - 0.027s success load plugins - 3.625s success onPreInit - 0.006s success initialize cache - 0.021s success copy gatsby files - 0.055s success onPreBootstrap - 0.015s success createSchemaCustomization - 0.007s Starting to fetch data from Contentful Fetching default locale default locale is : en-US contentTypes fetched 2 Updated entries 5 Deleted entries 0 Updated assets 6 Deleted assets 0 Fetch Contentful data: 1553.621ms success source and transform nodes - 1.676s success building schema - 0.355s success createPages - 0.033s success createPagesStatefully - 0.053s success onPreExtractQueries - 0.003s success update schema - 0.034s success extract queries from components - 0.351s success write out requires - 0.037s success write out redirect data - 0.002s success onPostBootstrap - 0.002s β € info bootstrap finished - 9.519 s β € success run queries - 2.226s - 7/7 3.14/s warn WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: β € You can now view gatsby-contentful-starter in the browser. β € http://localhost:8000/ β € View GraphiQL, an in-browser IDE, to explore your site's data and schema β € http://localhost:8000/___graphql β € Note that the development build is not optimized. To create a production build, use gatsby build β € success Building development bundle - 3.160s β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 7 pages Success gatsby-contentful-starter ```

skylerwshaw commented 4 years ago

@Putnam14 @cdtinney Able to take a look at this PR? πŸ™ πŸ˜„

skylerwshaw commented 4 years ago

Thanks @cdtinney, I don't have write access to the repo so am unable to merge myself.

Putnam14 commented 4 years ago

Approved and merged. Thanks @skylerwshaw!