├── .commitlintrc.json ├── .eslintrc.json ├── .github └── workflows │ └── node-ci.yml ├── .gitignore ├── .huskyrc ├── .lintstagedrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── babel.config.js ├── jest.config.js ├── package.json ├── plugin.js └── src ├── api-handler ├── generate-xml.js ├── generate-xml.test.js ├── index.js ├── index.test.js ├── map-routes.js └── map-routes.test.js ├── index.js └── plugin ├── __fixtures__ ├── standard │ ├── pages │ │ ├── _error.js │ │ ├── api │ │ │ ├── bar │ │ │ │ └── index.js │ │ │ └── foo.js │ │ ├── contact.js │ │ ├── index.js │ │ └── projects │ │ │ ├── [id].js │ │ │ └── index.js │ └── public │ │ └── robots.txt ├── with-missing-robots-placeholder │ ├── pages │ │ ├── contact.js │ │ └── index.js │ └── public │ │ └── robots.txt ├── with-no-robots │ └── pages │ │ ├── contact.js │ │ └── index.js ├── with-robots-already-replaced │ ├── pages │ │ ├── contact.js │ │ └── index.js │ └── public │ │ └── robots.txt └── with-src-pages │ └── src │ └── pages │ ├── contact.js │ └── index.js ├── index.js └── index.test.js /.commitlintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/.commitlintrc.json -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/node-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/.github/workflows/node-ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.* 3 | coverage/ 4 | lib/ 5 | es/ 6 | -------------------------------------------------------------------------------- /.huskyrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/.huskyrc -------------------------------------------------------------------------------- /.lintstagedrc: -------------------------------------------------------------------------------- 1 | { 2 | "*.js": "eslint", 3 | } 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/babel.config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/package.json -------------------------------------------------------------------------------- /plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/plugin.js -------------------------------------------------------------------------------- /src/api-handler/generate-xml.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/src/api-handler/generate-xml.js -------------------------------------------------------------------------------- /src/api-handler/generate-xml.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/src/api-handler/generate-xml.test.js -------------------------------------------------------------------------------- /src/api-handler/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/src/api-handler/index.js -------------------------------------------------------------------------------- /src/api-handler/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/src/api-handler/index.test.js -------------------------------------------------------------------------------- /src/api-handler/map-routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/src/api-handler/map-routes.js -------------------------------------------------------------------------------- /src/api-handler/map-routes.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/src/api-handler/map-routes.test.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './api-handler'; 2 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/standard/pages/_error.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/standard/pages/api/bar/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/standard/pages/api/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/standard/pages/contact.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/standard/pages/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/standard/pages/projects/[id].js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/standard/pages/projects/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/standard/public/robots.txt: -------------------------------------------------------------------------------- 1 | Sitemap: ${siteUrl} 2 | 3 | User-agent:* 4 | Disallow: 5 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/with-missing-robots-placeholder/pages/contact.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/with-missing-robots-placeholder/pages/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/with-missing-robots-placeholder/public/robots.txt: -------------------------------------------------------------------------------- 1 | Sitemap: http://foo.com 2 | 3 | User-agent:* 4 | Disallow: 5 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/with-no-robots/pages/contact.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/with-no-robots/pages/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/with-robots-already-replaced/pages/contact.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/with-robots-already-replaced/pages/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/with-robots-already-replaced/public/robots.txt: -------------------------------------------------------------------------------- 1 | Sitemap: http://my-site.com 2 | 3 | User-agent:* 4 | Disallow: 5 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/with-src-pages/src/pages/contact.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/__fixtures__/with-src-pages/src/pages/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugin/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/src/plugin/index.js -------------------------------------------------------------------------------- /src/plugin/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moxystudio/next-sitemaps/HEAD/src/plugin/index.test.js --------------------------------------------------------------------------------