Skip to content

Commit

Permalink
Merge pull request #209 from NobbZ/gql-types
Browse files Browse the repository at this point in the history
  • Loading branch information
NobbZ committed Jun 23, 2023
2 parents bb9475d + 02d7085 commit 6251772
Show file tree
Hide file tree
Showing 4 changed files with 2,642 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
public/
.cache/

# generated type files
src/gatsby-types.d.ts

# dependencies
node_modules/

Expand Down
4 changes: 3 additions & 1 deletion gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const config: GatsbyConfig = {
// More easily incorporate content into your pages through automatic TypeScript type generation and better GraphQL IntelliSense.
// If you use VSCode you can also use the GraphQL plugin
// Learn more at: https://gatsby.dev/graphql-typegen
graphqlTypegen: true,
graphqlTypegen: {
generateOnBuild: true,
},
plugins: [
"gatsby-plugin-image",
"gatsby-plugin-sharp",
Expand Down
2 changes: 2 additions & 0 deletions nix/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
pre-commit.check.enable = true;
pre-commit.settings.hooks.nixpkgs-fmt.enable = false;
pre-commit.settings.hooks.alejandra.enable = true;

pre-commit.settings.hooks.prettier.enable = true;
pre-commit.settings.settings.prettier.binPath = "${pkgs.yarn}/bin/yarn run prettier --ignore-path src/gatsby-types.d.ts";

pre-commit.settings.hooks.eslint.enable = true;
pre-commit.settings.hooks.eslint.pass_filenames = false;
Expand Down
Loading

0 comments on commit 6251772

Please sign in to comment.