Nouvelle dépendance pour la génération des CR.

This commit is contained in:
David Soulayrol
2022-05-24 09:51:01 +02:00
parent 42086ba3e7
commit 1167671f1d
3 changed files with 64 additions and 7 deletions

62
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "ti-nuage.fr", "name": "ti-nuage.fr",
"version": "2022.03.29", "version": "2022.05.24",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "ti-nuage.fr", "name": "ti-nuage.fr",
"version": "2022.03.29", "version": "2022.05.24",
"devDependencies": { "devDependencies": {
"@metalsmith/collections": "^1.2.1", "@metalsmith/collections": "^1.2.1",
"@metalsmith/excerpts": "^1.5.1", "@metalsmith/excerpts": "^1.5.1",
@@ -29,6 +29,7 @@
"metalsmith": "^2.4.0", "metalsmith": "^2.4.0",
"metalsmith-assets": "^0.1.0", "metalsmith-assets": "^0.1.0",
"metalsmith-clean-css": "^6.1.3", "metalsmith-clean-css": "^6.1.3",
"metalsmith-groff": "^0.2.0",
"metalsmith-markdownit": "^0.5.0", "metalsmith-markdownit": "^0.5.0",
"metalsmith-rename": "^1.0.0", "metalsmith-rename": "^1.0.0",
"metalsmith-sitemap": "^1.2.2", "metalsmith-sitemap": "^1.2.2",
@@ -1851,7 +1852,6 @@
"dependencies": { "dependencies": {
"anymatch": "3.1.2", "anymatch": "3.1.2",
"braces": "3.0.2", "braces": "3.0.2",
"fsevents": "2.3.2",
"glob-parent": "5.1.2", "glob-parent": "5.1.2",
"is-binary-path": "2.1.0", "is-binary-path": "2.1.0",
"is-glob": "4.0.1", "is-glob": "4.0.1",
@@ -5583,6 +5583,31 @@
"integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==", "integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==",
"dev": true "dev": true
}, },
"node_modules/metalsmith-groff": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/metalsmith-groff/-/metalsmith-groff-0.2.0.tgz",
"integrity": "sha512-I7j2oyan1ojt8jSbnuxjZoTy5Ig5ZFYlzRt18j2L3yXXeC+LPST36rJAfDtz8Lsphd5iK92dRGfKzJNL+1tQWQ==",
"dev": true,
"dependencies": {
"debug": "~2.2.0",
"minimatch": "^3.0.3"
}
},
"node_modules/metalsmith-groff/node_modules/debug": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz",
"integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=",
"dev": true,
"dependencies": {
"ms": "0.7.1"
}
},
"node_modules/metalsmith-groff/node_modules/ms": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz",
"integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=",
"dev": true
},
"node_modules/metalsmith-markdownit": { "node_modules/metalsmith-markdownit": {
"version": "0.5.0", "version": "0.5.0",
"resolved": "https://registry.npmjs.org/metalsmith-markdownit/-/metalsmith-markdownit-0.5.0.tgz", "resolved": "https://registry.npmjs.org/metalsmith-markdownit/-/metalsmith-markdownit-0.5.0.tgz",
@@ -5834,6 +5859,7 @@
"version": "2.29.1", "version": "2.29.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz",
"integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==", "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==",
"dev": true,
"engines": { "engines": {
"node": "*" "node": "*"
} }
@@ -13215,6 +13241,33 @@
} }
} }
}, },
"metalsmith-groff": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/metalsmith-groff/-/metalsmith-groff-0.2.0.tgz",
"integrity": "sha512-I7j2oyan1ojt8jSbnuxjZoTy5Ig5ZFYlzRt18j2L3yXXeC+LPST36rJAfDtz8Lsphd5iK92dRGfKzJNL+1tQWQ==",
"dev": true,
"requires": {
"debug": "~2.2.0",
"minimatch": "^3.0.3"
},
"dependencies": {
"debug": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz",
"integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=",
"dev": true,
"requires": {
"ms": "0.7.1"
}
},
"ms": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz",
"integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=",
"dev": true
}
}
},
"metalsmith-markdownit": { "metalsmith-markdownit": {
"version": "0.5.0", "version": "0.5.0",
"resolved": "https://registry.npmjs.org/metalsmith-markdownit/-/metalsmith-markdownit-0.5.0.tgz", "resolved": "https://registry.npmjs.org/metalsmith-markdownit/-/metalsmith-markdownit-0.5.0.tgz",
@@ -13360,7 +13413,8 @@
"moment": { "moment": {
"version": "2.29.1", "version": "2.29.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz",
"integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==" "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==",
"dev": true
}, },
"ms": { "ms": {
"version": "2.0.0", "version": "2.0.0",

View File

@@ -1,17 +1,17 @@
{ {
"name": "ti-nuage.fr", "name": "ti-nuage.fr",
"version": "2022.03.29", "version": "2022.05.24",
"private": true, "private": true,
"description": "Ti Nuage Website", "description": "Ti Nuage Website",
"main": "", "main": "",
"scripts": { "scripts": {
"build": "DEBUG=metalsmith* npm run clean && npm run build:metalsmith", "build": "DEBUG=metalsmith* npm run clean && npm run build:metalsmith",
"build:prod": "NODE_ENV=production npm run build", "build:prod": "NODE_ENV=production npm run build",
"build:metalsmith": "nodejs scripts/run.js build", "build:metalsmith": "node scripts/run.js build",
"clean": "rimraf dist", "clean": "rimraf dist",
"dev": "npm run build && DEBUG=metalsmith* nodemon scripts/run.js serve", "dev": "npm run build && DEBUG=metalsmith* nodemon scripts/run.js serve",
"server": "npm run build && http-server dist", "server": "npm run build && http-server dist",
"deploy": "npm run build:prod && cd dist && rsync -v -rlptz --relative * $SERVER_PATH", "deploy": "npm run build:prod && cd dist && rsync -v -rlptz --relative -e \"ssh -p $SERVER_PORT\" * $SERVER_PATH",
"lint": "npm run lint:js && npm run lint:css", "lint": "npm run lint:js && npm run lint:css",
"lint:js": "eslint scripts", "lint:js": "eslint scripts",
"lint:css": "stylelint assets/**/*.css", "lint:css": "stylelint assets/**/*.css",
@@ -41,6 +41,7 @@
"metalsmith": "^2.4.0", "metalsmith": "^2.4.0",
"metalsmith-assets": "^0.1.0", "metalsmith-assets": "^0.1.0",
"metalsmith-clean-css": "^6.1.3", "metalsmith-clean-css": "^6.1.3",
"metalsmith-groff": "^0.2.0",
"metalsmith-markdownit": "^0.5.0", "metalsmith-markdownit": "^0.5.0",
"metalsmith-rename": "^1.0.0", "metalsmith-rename": "^1.0.0",
"metalsmith-sitemap": "^1.2.2", "metalsmith-sitemap": "^1.2.2",

View File

@@ -4,6 +4,7 @@ const cleanCSS = require('metalsmith-clean-css')
const config = require('./config.js') const config = require('./config.js')
const collections = require('@metalsmith/collections') const collections = require('@metalsmith/collections')
const excerpts = require('@metalsmith/excerpts') const excerpts = require('@metalsmith/excerpts')
const groff = require('metalsmith-groff')
const layouts = require('@metalsmith/layouts') const layouts = require('@metalsmith/layouts')
const Metalsmith = require('metalsmith') const Metalsmith = require('metalsmith')
const markdown = require('metalsmith-markdownit') const markdown = require('metalsmith-markdownit')
@@ -39,6 +40,7 @@ module.exports = new Metalsmith(config.paths.projectRoot)
source: './assets/' + (process.env.NODE_ENV || 'dev'), source: './assets/' + (process.env.NODE_ENV || 'dev'),
destination: './' destination: './'
})) }))
.use(groff())
.use(markdown({ .use(markdown({
html: true, html: true,
linkify: true, linkify: true,