{"name":"gatsby-plugin-page-creator","version":"5.17.0-react19.0","keywords":["gatsby","gatsby-plugin"],"author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"license":"MIT","_id":"gatsby-plugin-page-creator@5.17.0-react19.0","maintainers":[{"name":"pieh","email":"misiek.piechowiak@gmail.com"},{"name":"kathmbeck","email":"katherine.beck@netlify.com"},{"name":"serhalp-netlify","email":"philippe.serhal@netlify.com"},{"name":"mlgualtieri-gatsby","email":"mike.gualtieri@netlify.com"},{"name":"fk","email":"sechskilo@gmail.com"},{"name":"tylerbarnes","email":"tyler@known.design"},{"name":"daniellewgatsby","email":"daniel.lew@gatsbyjs.com"}],"contributors":[{"url":"https://twitter.com/stevennatera","name":"Steven Natera","email":"tektekpush@gmail.com"}],"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-page-creator#readme","bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dist":{"shasum":"dc3b2402f0f3b6feb9ad253111ef27c9cfd0b92b","tarball":"http://registry-npm.ywwl.com/gatsby-plugin-page-creator/download/gatsby-plugin-page-creator-5.17.0-react19.0.tgz","fileCount":23,"integrity":"sha512-p/Pw0alo8wJqK3zSJnLHXd6fyFe+AaCcIk/urKyZunbYp+B3M4Mwijag2GCrqks+IPRQnDMCncgvc8LPkN6tnw==","signatures":[{"sig":"MEYCIQCitkJge1lC18E35ZnFmbsjvJ7gnODjW/X0V7+MGs9tVgIhAJLNk/5qV9HcUjBKX0KbllW2VMIxsen/iF4jVNDvD7eD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":117519,"size":23845,"noattachment":false,"key":"/gatsby-plugin-page-creator/-/gatsby-plugin-page-creator-5.17.0-react19.0.tgz"},"main":"index.js","engines":{"node":">=18.0.0"},"gitHead":"ad34f2199560f6c212ff45c2ebaf33273fc837f0","scripts":{"build":"babel src --out-dir . --ignore \"**/__tests__\" --extensions \".ts,.js\"","watch":"babel -w src --out-dir . --ignore \"**/__tests__\" --extensions \".ts,.js\"","prepare":"cross-env NODE_ENV=production npm run build"},"_npmUser":{"name":"serhalp-netlify","email":"philippe.serhal@netlify.com"},"deprecated":"This React 19 prerelease version may be selected unexpectedly by npm when resolving version ranges. Please use the latest stable version, or use @next to install React 19 compatible prerelease version.","repository":{"url":"git+https://github.com/gatsbyjs/gatsby.git","type":"git","directory":"packages/gatsby-plugin-page-creator"},"_npmVersion":"lerna/3.22.1/node@v22.19.0+arm64 (darwin)","description":"Gatsby plugin that automatically creates pages from React components in specified directories","directories":{},"_nodeVersion":"22.19.0","dependencies":{"globby":"^11.1.0","lodash":"^4.17.21","chokidar":"^3.6.0","fs-extra":"^11.2.0","@babel/runtime":"^7.20.13","@babel/traverse":"^7.20.13","fs-exists-cached":"^1.0.0","gatsby-core-utils":"^4.16.0-next.0","gatsby-page-utils":"^3.16.0-next.0","gatsby-plugin-utils":"^4.17.0-react19.0","@sindresorhus/slugify":"^1.1.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"cross-env":"^7.0.3","@babel/cli":"^7.20.7","@babel/core":"^7.20.12","babel-preset-gatsby-package":"^3.16.0-next.0"},"peerDependencies":{"gatsby":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gatsby-plugin-page-creator_5.17.0-react19.0_1764189968958_0.1037303872039268","host":"s3://npm-registry-packages-npm-production"},"readme":"# gatsby-plugin-page-creator\n\nGatsby plugin that automatically creates pages from React components in specified directories. Gatsby\nincludes this plugin automatically in all sites for creating pages from components in `src/pages`. You can also leverage the [File System Route API](https://www.gatsbyjs.com/docs/file-system-route-api/) to programmatically create pages from your data.\n\nYou may include another instance of this plugin if you'd like to create additional \"pages\" directories or want to override the default usage.\n\nWith this plugin, _any_ file that lives in the specified pages folder (e.g. the default `src/pages`) or subfolders will be expected to export a React Component to generate a Page. The following files are automatically excluded:\n\n- `template-*`\n- `__tests__/*`\n- `*.test.jsx?`\n- `*.spec.jsx?`\n- `*.d.tsx?`\n- `*.json`\n- `*.yaml`\n- `_*`\n- `.*`\n\nTo exclude custom patterns, see [Ignoring Specific Files](#ignoring-specific-files)\n\n## Install\n\n`npm install gatsby-plugin-page-creator`\n\n## How to use\n\nAdd the plugin to your `gatsby-config.js`:\n\n```javascript\n// gatsby-config.js\n\nmodule.exports = {\n  plugins: [\n    // You can have multiple instances of this plugin\n    // to create pages from React components in different directories.\n    //\n    // The following sets up the pattern of having multiple\n    // \"pages\" directories in your project\n    {\n      resolve: `gatsby-plugin-page-creator`,\n      options: {\n        path: `${__dirname}/src/account/pages`,\n      },\n    },\n    {\n      resolve: `gatsby-plugin-page-creator`,\n      options: {\n        path: `${__dirname}/src/settings/pages`,\n      },\n    },\n    // You can also overwrite the default behavior for src/pages\n    // This changes the page-creator instance used by Gatsby\n    {\n      resolve: `gatsby-plugin-page-creator`,\n      options: {\n        path: `${__dirname}/src/pages`,\n        ignore: [`foo-bar.js`],\n      },\n    },\n  ],\n}\n```\n\n## Options\n\nThe plugin supports options to ignore files and to pass options to the [`slugify`](https://github.com/sindresorhus/slugify) instance that is used in the File System Route API to create slugs.\n\n| Option  | Type                                                 | Description                                                                                                                                                  | Required |\n| ------- | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- |\n| path    | `string`                                             | Any file that lives inside this directory will be expected to export a React component to generate a page                                                    | true     |\n| ignore  | `IPathIgnoreOptions ∣ string ∣ Array<string> ∣ null` | Ignore certain files inside the directory specified with `path`                                                                                              | false    |\n| slugify | `ISlugifyOptions`                                    | Pass [options](https://github.com/sindresorhus/slugify#options) to the `slugify` instance that is used inside the File System Route API to generate the slug | false    |\n\n### Ignoring Specific Files\n\n#### Shorthand\n\nThe following example will disable the `/blog` index page:\n\n```javascript\n// gatsby-config.js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: `gatsby-plugin-page-creator`,\n      options: {\n        path: `${__dirname}/src/indexes/pages`,\n        ignore: [`blog.(js|ts)?(x)`],\n        // See pattern syntax recognized by micromatch\n        // https://www.npmjs.com/package/micromatch#matching-features\n      },\n    },\n  ],\n}\n```\n\n**NOTE**: The above code snippet will only stop the creation of the `/blog` page, which is defined as a React component.\nThis plugin does not affect programmatically generated pages from the [createPages](https://www.gatsbyjs.com/docs/node-apis#createPages) API.\n\n#### Ignore Options\n\nThe following example will ignore pages using case-insensitive matching:\n\n```javascript\n// gatsby-config.js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: `gatsby-plugin-page-creator`,\n      options: {\n        path: `${__dirname}/src/examples/pages`,\n        ignore: {\n          // Example: Ignore `file.example.js`, `dir/s/file.example.tsx`\n          patterns: [`**/*.example.(js|ts)?(x)`],\n          // Example: Match both `file.example.js` and `file.EXAMPLE.js`\n          options: { nocase: true },\n          // See all available micromatch options\n          // https://www.npmjs.com/package/micromatch#optionsnocase\n        },\n      },\n    },\n  ],\n}\n```\n","publish_time":1764189969144,"_cnpm_publish_time":1764189969144,"dist-tags":{"alpha-9689ff":"4.23.0-alpha-9689ff.25","alpha-a5-peer":"4.23.0-alpha-a5-peer.70","alpha-adapters":"5.10.0-alpha-adapters.165","alpha-heritage":"4.24.0-alpha-heritage.30","alpha-mdx-v2":"4.18.0-alpha-mdx-v2.68","alpha-qe-sm":"3.14.0-alpha-qe-sm.9","alpha-remote-fetch":"3.14.0-alpha-remote-fetch.79","alpha-remote-file":"3.10.0-alpha-remote-file.48","alpha-trailing-slash":"4.5.0-alpha-trailing-slash.76","alpha-transformer-json":"4.14.0-alpha-transformer-json.26","alpha-ts-jit":"4.6.0-alpha-ts-jit.26","alpha-v5":"5.0.0-alpha-v5.d20221012t101120.57","alt-image-cdn":"5.13.0-alpha-alt-image-cdn.44","berry-mdx":"2.1.39-berry-mdx.56","coreutils":"3.12.0-coreutils.29","dev-ssr-2":"2.3.24-dev-ssr-2.60","drupal-image-404":"4.17.0-alpha-drupal-image-404.12","drupal-next":"3.14.0-drupal-next.82","drupal-proxyurl":"5.0.0-alpha-drupal-proxyurl.14","drupal-self-reference":"4.18.0-alpha-drupal-self-reference.18","functions-next":"3.4.0-functions-next.18","image-cdn":"4.9.0-alpha-image-cdn.39","image-cdn-caching":"4.16.0-alpha-image-cdn-caching.9","image-cdn-configurable":"5.9.0-image-cdn-configurable.4","image-cdn-enc":"4.23.0-alpha-image-cdn-enc.40","image-cdn-jobs-resolve":"4.18.0-alpha-image-cdn-jobs-resolve.32","image-cdn-pathprefix":"4.25.0-alpha-image-cdn-pathprefix.48","image-cdn-telemetry":"4.13.0-alpha-image-cdn-telemetry.29","image-service":"4.8.0-alpha-image-service.35","incbuild-collections":"2.3.23-incbuild-collections.100","latest":"5.16.0","latest-v2":"2.10.2","latest-v3":"3.15.0","latest-v4":"4.25.0","luda":"4.11.0-alpha-luda.30","mdxv4-rc":"4.20.0-mdxv4-rc.65","next":"5.17.0-next.0","otp-test":"2.1.13-otp-test.31","preview-gh-api":"4.23.0-alpha-preview-gh-api.26","prompt-restart":"2.2.2-prompt-restart.146","react19":"5.17.0-react19.1","telemetry-test":"3.5.0-telemetry-test.296","telemetry-test2":"2.5.0-telemetry-test2.372","unifiedroutes":"2.3.33-unifiedroutes.24","unifiedroutes-blog":"2.2.3-unifiedroutes-blog.28","unifiedroutes-v2":"2.2.3-unifiedroutes-v2.151","v3rc":"3.0.0-v3rc.0","wordpress-image-err":"4.24.2-alpha-wordpress-image-err.17","wp-image-cdn-auth":"4.15.0-alpha-wp-image-cdn-auth.46"}}