{"_id":"@alexandesigner/modernjs-sitemap","name":"@alexandesigner/modernjs-sitemap","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.2":{"name":"@alexandesigner/modernjs-sitemap","version":"0.1.2","types":"./dist/types/index.d.ts","main":"./dist/lib/index.js","module":"./dist/es/index.js","keywords":["sitemap","modern.js","ssr","ssg"],"repository":{"type":"git","url":"git+https://github.com/alexandesigner/modernjs-sitemap.git"},"author":{"name":"Allan Alexandre"},"license":"MIT","bugs":{"url":"https://github.com/alexandesigner/modernjs-sitemap/issues"},"scripts":{"prepare":"modern build && husky install","dev":"modern dev","build":"modern build","build:watch":"modern build -w","reset":"rimraf ./**/node_modules","lint":"modern lint","change":"modern change","bump":"modern bump","pre":"modern pre","change-status":"modern change-status","gen-release-note":"modern gen-release-note","release":"modern release","new":"modern new","upgrade":"modern upgrade"},"lint-staged":{"*.{js,jsx,ts,tsx,mjs,cjs}":["node --max_old_space_size=8192 ./node_modules/eslint/bin/eslint.js --fix --color --cache --quiet"]},"eslintIgnore":["node_modules/","dist/"],"devDependencies":{"@modern-js/core":"^2.58.3","@modern-js/eslint-config":"2.58.3","@modern-js/module-tools":"2.58.3","@types/node":"~16.11.7","husky":"~8.0.1","lint-staged":"~13.1.0","prettier":"~2.8.1","rimraf":"~6.0.1","typescript":"~5.0.4"},"sideEffects":[],"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@alexandesigner/modernjs-sitemap@0.1.2","gitHead":"32ccd836489634d6a588b0fd3d5941de9ebe1b50","description":"> A basic plugin to generate the file with the application routes for https://modernjs.dev/","homepage":"https://github.com/alexandesigner/modernjs-sitemap#readme","_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-9dGHk+VI7vPSiZwDfBCDB9gGMs2S57F8iT+pSMl0eQ7iuwUtoDtN/uyVr5BcHFoFr/X5rwCjBxTxqK+mD0rw1Q==","shasum":"b128b3c0996c80a5c665be15203f5d47c4dc0c36","tarball":"https://registry.npmjs.org/@alexandesigner/modernjs-sitemap/-/modernjs-sitemap-0.1.2.tgz","fileCount":13,"unpackedSize":31419,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiD9eSNe+hkVv2kjrMIWzU8DQrZY2fuS/75PKJ7WsopQIgSDF9tjE2LktbMENo+hkkuKZ0/A2gDNwTQgRrEVKv1F8="}]},"_npmUser":{"name":"alexandesigner","email":"alexandesigner@gmail.com"},"directories":{},"maintainers":[{"name":"alexandesigner","email":"alexandesigner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modernjs-sitemap_0.1.2_1725117353302_0.4593099553493589"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-31T15:15:53.212Z","0.1.2":"2024-08-31T15:15:53.506Z","modified":"2024-08-31T15:15:53.762Z"},"maintainers":[{"name":"alexandesigner","email":"alexandesigner@gmail.com"}],"description":"> A basic plugin to generate the file with the application routes for https://modernjs.dev/","homepage":"https://github.com/alexandesigner/modernjs-sitemap#readme","keywords":["sitemap","modern.js","ssr","ssg"],"repository":{"type":"git","url":"git+https://github.com/alexandesigner/modernjs-sitemap.git"},"author":{"name":"Allan Alexandre"},"bugs":{"url":"https://github.com/alexandesigner/modernjs-sitemap/issues"},"license":"MIT","readme":"# 🧭 Sitemap\n\n> A basic plugin to generate the file with the application routes for https://modernjs.dev/\n\n<p>\n <img alt=\"Static Badge\" src=\"https://img.shields.io/badge/alexandesigner%2Fmodernjs-sitemap?style=flat-square&color=00a8f0\">\n <img alt=\"NPM Downloads\" src=\"https://img.shields.io/npm/dm/modernjs-sitemap?style=flat-square&color=00a8f0\">\n <img src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&color=00a8f0\" alt=\"License\" />\n</p>\n\nWorks with CSR/SSR/SSG\n\n## Get started\n\n**Using pnpm**\n\n```sh\npnpm install --save modernjs-sitemap\n```\n\n**Usage**\n\n```sh\nimport { sitemapPlugin } from 'modernjs-sitemap'\n\nplugins: [..., sitemapPlugin({\n    basepath: 'https://example.com',\n    routes: [{ urlPath: '/', priority: '0.2' }] // Extend route config\n})],\n```\n\n**Props to extend configuration**\n\n| Props  | Type | Description\n| ------------- | ------------- | ------------- |\n| basepath  | string  | url to site\n| routes  | array | with fields urlPath, priority, changefreq\n| robots  | boolean or object | true or object with fields userAgent, disallow, allow\n\n-----\n\n## Development\n\n### Setup\n\nInstall the dependencies:\n\n```bash\npnpm run install\n```\n\n### Get Started\n\nRun and debug the module:\n\n```bash\npnpm run dev\n```\n\nBuild the module for production:\n\n```bash\npnpm run build\n```\n\nEnable optional features:\n\n```bash\npnpm run new\n```\n\nOther commands:\n\n```bash\npnpm run lint         # Lint and fix source files\npnpm run change       # Add a new changeset\npnpm run bump         # Update version and changelog via changeset\npnpm run release      # Release the package\n```\n\n## Bug?\n\nSubmit it in the [issues](https://github.com/alexandesigner/modernjs-sitemap/issues)\n\n## Get Involved\n\nWe'd love for you to help us. If you'd like to be a contributor, check out our <a href=\"https://github.com/alexandesigner/modernjs-sitemap/blob/master/.github/CONTRIBUTING.md\" target=\"_blank\">Contributing guide</a>\n\n<p>Designed with ❤️ by <a target=\"_blank\" href=\"https://github.com/alexandesigner\" title=\"Allan Alexandre\">Allan Alexandre</a>. Licensed under the <a target=\"_blank\" href=\"https://github.com/alexandesigner/modernjs-sitemap#license\" title=\"MIT License\">MIT License</a>.</p>\n","readmeFilename":"README.md"}