Updated Dependances.

This commit is contained in:
David Soulayrol 2023-03-26 12:45:43 +02:00
parent 74e54a79b4
commit 05d39cc8b5
3 changed files with 2108 additions and 3282 deletions

5366
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -19,12 +19,12 @@
"author": "David Soulayrol <david@soulayrol.name>",
"devDependencies": {
"@metalsmith/layouts": "2.4.0",
"@metalsmith/markdown": "1.9.1",
"@metalsmith/permalinks": "^2.4.0",
"browser-sync": "^2.27.5",
"bs-fullscreen-message": "^1.1.0",
"clean-css": "^5.1.5",
"cli-table2": "^0.2.0",
"debug": "^4.3.2",
"debug": "^4.3.4",
"eslint": "^8.18.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
@ -37,9 +37,7 @@
"jstransformer-nunjucks": "^1.0.0",
"metalsmith": "^2.4.0",
"metalsmith-assets": "^0.1.0",
"metalsmith-clean-css": "^6.1.3",
"metalsmith-groff": "^0.3.0",
"metalsmith-markdownit": "^0.5.0",
"metalsmith-rename": "^1.0.0",
"metalsmith-sitemap": "^1.2.2",
"moment": "^2.29.1",

View file

@ -1,11 +1,10 @@
/* This is the actual metalsmith configuration script. */
const assets = require('metalsmith-assets')
const cleanCSS = require('metalsmith-clean-css')
const config = require('./config.js')
const groff = require('metalsmith-groff')
const layouts = require('@metalsmith/layouts')
const Metalsmith = require('metalsmith')
const markdown = require('metalsmith-markdownit')
const markdown = require('@metalsmith/markdown')
const moment = require('moment')
const rename = require('metalsmith-rename')
const permalinks = require('@metalsmith/permalinks')
@ -26,7 +25,6 @@ module.exports = new Metalsmith(config.paths.projectRoot)
})
.source(config.paths.webSource)
.destination(config.paths.webDestination)
.use(cleanCSS({}))
.use(assets({
source: './assets/' + (process.env.NODE_ENV || 'dev'),
destination: config.paths.webDestination
@ -36,18 +34,14 @@ module.exports = new Metalsmith(config.paths.projectRoot)
source: true
}))
.use(markdown({
html: true,
typographer: true,
quotes: ['«\xA0', '\xA0»', '\xA0', '\xA0'],
plugin: {
pattern: '**/*.md',
// fields: ['contents', 'excerpt']
extension: 'njk'
}
gfm: false,
headerIds: false,
smartypants: true,
xhtml: true
}))
.use(layouts({
default: 'default.njk',
pattern: '**/*.njk',
pattern: '**/*.html',
engineOptions: {
filters: {
setAttribute: (dictionary, key, value) => {