forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/validate/warnonunknown
* master: (125 commits) chore(release): Publish next fix(gatsby): createNode return promise (gatsbyjs#34399) chore(release): Publish next fix(gatsby): Wrong route resolved by findPageByPath function (gatsbyjs#34070) fix(deps): update typescript to v5 (major) (gatsbyjs#33786) chore(docs): Update processing external images guide (gatsbyjs#34388) chore(deps): update dependency aws-sdk to ^2.1048.0 (gatsbyjs#34365) chore(deps): update dependency autoprefixer to ^10.4.1 for gatsby-plugin-sass (gatsbyjs#34357) chore(deps): update formatting & linting (gatsbyjs#34370) fix(deps): update minor and patch dependencies for gatsby-source-drupal (gatsbyjs#34375) fix(deps): update dependency eslint-plugin-react to ^7.28.0 (gatsbyjs#34372) fix(deps): update dependency resolve-url-loader to ^3.1.4 for gatsby-plugin-sass (gatsbyjs#34361) chore(deps): update dependency typescript to ^4.5.4 (gatsbyjs#34358) chore(docs): Fix links to shared layout component (gatsbyjs#34330) chore: Fix typo (gatsbyjs#34349) chore(examples): use mobx v6 in using-mobx example (gatsbyjs#34351) chore(deps): update dependency rewire to v6 for gatsby-plugin-offline (gatsbyjs#34376) chore(deps): update dependency msw to ^0.36.3 for gatsby-core-utils (gatsbyjs#34367) chore(deps): update dependency msw to ^0.36.3 for gatsby-plugin-gatsby-cloud (gatsbyjs#34368) fix(deps): update dependency graphql to ^15.8.0 for gatsby-codemods (gatsbyjs#34373) ...
- Loading branch information
Showing
589 changed files
with
10,836 additions
and
13,037 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,6 @@ | |
"lodash": "^4.17.15" | ||
}, | ||
"devDependencies": { | ||
"jest": "^25.1.0" | ||
"jest": "^27.2.1" | ||
} | ||
} |
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
process.env.GATSBY_RECIPES_NO_COLOR = "true" | ||
|
||
// Potrace has a dependency on giwrap which has a process.nextTick as a sideEffect which messes up with jest. | ||
jest.mock(`gifwrap`, () => jest.fn()) |
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
File renamed without changes.
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 |
---|---|---|
|
@@ -3,6 +3,14 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [1.3.0](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-recipes) (2021-12-01) | ||
|
||
[🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.3) | ||
|
||
#### Bug Fixes | ||
|
||
- Pin `remark-mdx` to `2.0.0-next.7` [#34064](https://github.com/gatsbyjs/gatsby/issues/34064) ([c41bb5e](https://github.com/gatsbyjs/gatsby/commit/c41bb5e7b0647bd96841df8400f76266ff55675e)) | ||
|
||
## [1.2.0](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-recipes) (2021-11-16) | ||
|
||
[🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.2) | ||
|
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
packages/gatsby-recipes/README.md → deprecated-packages/gatsby-recipes/README.md
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# Gatsby Recipes | ||
|
||
**Please Note: Gatsby Recipes has been removed from `gatsby` with v4.5.0. If you want to use it you can install `[email protected]` to use it.** | ||
|
||
Recipes is an “infrastructure as code” system that lets users automatically manage and provision the technology stack for their Gatsby site/app through code rather than manual processes. | ||
|
||
It’s powered by React & MDX and a useful analogy is “React Native for Infrastructure”. | ||
|
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,21 @@ | ||
module.exports = api => { | ||
const isTest = api.env(`test`) | ||
|
||
return { | ||
presets: [ | ||
[ | ||
`@babel/env`, | ||
{ | ||
// use ES modules for rollup and commonjs for jest | ||
modules: isTest ? `commonjs` : false, | ||
shippedProposals: true, | ||
targets: { | ||
node: `10.13.0`, | ||
}, | ||
}, | ||
], | ||
`@babel/preset-react`, | ||
], | ||
plugins: [`@babel/plugin-transform-runtime`], | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/gatsby-recipes/components.js → ...ted-packages/gatsby-recipes/components.js
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
const components = require(`./dist/web/components`) | ||
module.exports = components | ||
module.exports = components |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "gatsby-recipes", | ||
"description": "Core functionality for Gatsby Recipes", | ||
"version": "1.4.0-next.0", | ||
"version": "1.5.0-next.0", | ||
"author": "Kyle Mathews <[email protected]>", | ||
"bugs": { | ||
"url": "https://github.com/gatsbyjs/gatsby/issues" | ||
|
@@ -31,8 +31,8 @@ | |
"express": "^4.17.1", | ||
"express-graphql": "^0.12.0", | ||
"fs-extra": "^10.0.0", | ||
"gatsby-core-utils": "^3.4.0-next.0", | ||
"gatsby-telemetry": "^3.4.0-next.0", | ||
"gatsby-core-utils": "^3.5.0-next.0", | ||
"gatsby-telemetry": "^3.5.0-next.0", | ||
"glob": "^7.1.6", | ||
"graphql": "^15.4.0", | ||
"graphql-compose": "~7.25.0", | ||
|
@@ -41,14 +41,14 @@ | |
"hicat": "^0.8.0", | ||
"is-binary-path": "^2.1.0", | ||
"is-url": "^1.2.4", | ||
"jest-diff": "^25.5.0", | ||
"jest-diff": "^27.2.0", | ||
"lock": "^1.0.0", | ||
"lodash": "^4.17.21", | ||
"mitt": "^1.2.0", | ||
"mkdirp": "^0.5.1", | ||
"node-fetch": "^2.5.0", | ||
"pkg-dir": "^4.2.0", | ||
"prettier": "^2.4.1", | ||
"prettier": "^2.5.1", | ||
"prop-types": "^15.6.1", | ||
"remark-mdx": "2.0.0-next.7", | ||
"remark-mdxjs": "^2.0.0-next.4", | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...y-recipes/src/providers/utils/get-diff.js → ...y-recipes/src/providers/utils/get-diff.js
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: Infrastructure as Code | ||
disableTableOfContents: true | ||
--- | ||
|
||
Learn what <q>Infrastructure as Code</q> means, and how you can use code to standardize and automate things. | ||
|
||
## What is <q>Infrastructure as Code?</q> | ||
|
||
_Infrastructure as Code_, or IaC, is the practice of managing your development, testing, and production environments using configuration files or scripts. Provisioning and configuring environments individually can introduce errors or inconsistencies. You may, for example, find yourself running different versions of Node.js on your laptop and your production servers. Infrastructure as Code minimizes this kind of drift and lets you automate the process of provisioning environments. | ||
|
||
Your configuration file describes what resources your project requires. If you're building an API, for example, you might create a configuration file that says, "Please install Node.js 12.16.2, npm 6.14.4, Express 4.17.1, and PostgreSQL 12.2 for Ubuntu Linux." For a Gatsby project, your configuration file may add plugins and themes. | ||
|
||
Configuration files, like other code files, are text. That means you can use version control software to store them and track changes to the environment. In short, IaC: | ||
|
||
- Creates consistent environments. | ||
- Saves time that would otherwise be spent setting up environments. | ||
- Reduces the risk of errors caused by mismatched environments. | ||
- Lays the groundwork for automation. | ||
|
||
## Automating Gatsby site development with Gatsby Recipes | ||
|
||
[Gatsby Recipes](/blog/2020-04-15-announcing-gatsby-recipes/) applies the infrastructure as code concept to front-end development. With Gatsby Recipes, you can automate common site building tasks, such as adding a plugin or test suite. | ||
|
||
We've discontinued this experiment and you can use Gatsby versions up to `4.4.0` to still use it. The old code still lives [on GitHub](https://github.com/gatsbyjs/gatsby/tree/master/deprecated-packages/gatsby-recipes). |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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
Oops, something went wrong.