Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
JB AUBREE committed May 21, 2024
1 parent 3ec706d commit 593cfcf
Show file tree
Hide file tree
Showing 13 changed files with 4,224 additions and 3,614 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"eslint.experimental.useFlatConfig": true,
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": false
}
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
[![Licence](https://badgen.net/npm/license/sitemap-ts)](https://github.com/jbaubree/sitemap-ts/blob/main/LICENSE)
[![CI](https://github.com/jbaubree/sitemap-ts/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jbaubree/sitemap-ts/actions/workflows/ci.yml)


> Sitemap generator.
> This plugin scans your dist folder to generate sitemap.xml and robots.txt files.
Expand All @@ -26,6 +25,7 @@ Base URI.
- **Default:** `[]`

Array of strings with manual routes.

```js
const names = [
'John',
Expand All @@ -43,6 +43,7 @@ generateSitemap({ dynamicRoutes })
- **Default:** `[]`

Array of strings with excluded routes.

```js
generateSitemap({
exclude: ['/admin', '/private']
Expand All @@ -55,6 +56,7 @@ generateSitemap({
- **Default:** `[]`

Array of strings with other sitemaps paths or urls.

```js
generateSitemap({
externalSitemaps: ['sitemap_1', 'sitemap_2', 'subpath/sitemap_3', 'https://site.com/sitemap.xml']
Expand All @@ -67,6 +69,7 @@ generateSitemap({
- **Default:** ``

String with base path.

```js
generateSitemap({
basePath: '/path'
Expand Down Expand Up @@ -136,6 +139,7 @@ Enables robots.txt file generation
- **Default:** `[{ userAgent: '*', allow: '/' }]`

RobotOption:

- **userAgent**: `string`
- **allow**?: `string | string[]`
- **disallow**?: `string | string[]`
Expand Down
9 changes: 9 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @ts-check
import antfu from '@antfu/eslint-config'

export default antfu(
{
unocss: true,
formatters: true,
},
)
42 changes: 22 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "sitemap-ts",
"type": "module",
"version": "1.6.1",
"packageManager": "pnpm@8.9.2",
"packageManager": "pnpm@9.1.2",
"description": "Sitemap generator for TypeScript projects",
"author": "JB Aubrée <jb.aubree@protonmail.com>",
"license": "MIT",
Expand Down Expand Up @@ -56,29 +57,30 @@
"up": "taze major -r -I"
},
"dependencies": {
"@antfu/utils": "0.7.6",
"fast-glob": "3.3.1",
"@antfu/utils": "0.7.8",
"fast-glob": "3.3.2",
"sitemap": "7.1.1",
"xml-formatter": "3.5.0"
"xml-formatter": "3.6.2"
},
"devDependencies": {
"@antfu/eslint-config": "^0.43.1",
"@antfu/ni": "0.21.8",
"@babel/types": "7.23.0",
"@types/node": "20.8.7",
"@vitest/coverage-v8": "^0.34.6",
"bumpp": "9.2.0",
"eslint": "8.51.0",
"esno": "0.17.0",
"lint-staged": "15.0.2",
"pnpm": "8.9.2",
"rimraf": "5.0.5",
"simple-git-hooks": "2.9.0",
"taze": "^0.11.4",
"typescript": "5.2.2",
"@antfu/eslint-config": "^2.18.1",
"@antfu/ni": "0.21.12",
"@babel/types": "7.24.5",
"@types/node": "20.12.12",
"@vitest/coverage-v8": "^1.6.0",
"bumpp": "9.4.1",
"eslint": "9.3.0",
"eslint-plugin-format": "^0.1.1",
"esno": "4.7.0",
"lint-staged": "15.2.2",
"pnpm": "9.1.2",
"rimraf": "5.0.7",
"simple-git-hooks": "2.11.1",
"taze": "^0.13.8",
"typescript": "5.4.5",
"unbuild": "2.0.0",
"vite": "4.5.0",
"vitest": "0.34.6"
"vite": "5.2.11",
"vitest": "1.6.0"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
Expand Down
Loading

0 comments on commit 593cfcf

Please sign in to comment.