Upgrade dependencies

This commit is contained in:
Dennis Reimann
2023-03-09 07:13:53 +01:00
parent 0d6bb7a523
commit 235fd1680a
3 changed files with 372 additions and 313 deletions

669
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -40,11 +40,11 @@
},
"devDependencies": {
"autoprefixer": "10.4.13",
"browser-sync": "2.27.12",
"cross-env": "^7.0.3",
"csso-cli": "4.0.1",
"fast-xml-parser": "4.1.2",
"glob": "8.1.0",
"browser-sync": "2.28.3",
"cross-env": "7.0.3",
"csso-cli": "4.0.2",
"fast-xml-parser": "4.1.3",
"glob": "9.2.1",
"html-entities": "2.3.3",
"jstransformer-markdown-it": "3.0.0",
"markdown-it": "13.0.1",
@@ -60,6 +60,6 @@
"postcss-nesting": "11.2.1",
"pug": "3.0.2",
"sync-request": "6.1.0",
"xml-formatter": "3.3.0"
"xml-formatter": "3.3.2"
}
}

View File

@@ -1,12 +1,12 @@
const pug = require('pug')
const glob = require('glob')
const { globSync } = require('glob')
const { writeFileSync } = require('fs')
const { resolve } = require('path')
const { DEPLOY_PRIME_URL, URL } = process.env
const BASE = DEPLOY_PRIME_URL || URL || 'https://einundzwanzig.space'
const html = glob.sync(resolve(__dirname, '..', `dist/**/*.html`))
const html = globSync(resolve(__dirname, '..', `dist/**/*.html`))
const pages = html.map(file => file.replace(/.*\/dist/, BASE).replace(/index\.html$/, '')).filter(f => !f.endsWith('/kontakt/') && !f.endsWith('/datenschutz/'))
const now = (new Date()).toISOString()
const file = resolve(__dirname, '..', `src/sitemap.pug`)