From 1167671f1dd24e1529c688d90b4d58ed4cdbbd8b Mon Sep 17 00:00:00 2001 From: David Soulayrol Date: Tue, 24 May 2022 09:51:01 +0200 Subject: [PATCH] =?UTF-8?q?Nouvelle=20d=C3=A9pendance=20pour=20la=20g?= =?UTF-8?q?=C3=A9n=C3=A9ration=20des=20CR.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 62 ++++++++++++++++++++++++++++++++++++++++--- package.json | 7 ++--- scripts/metalsmith.js | 2 ++ 3 files changed, 64 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9993ad8..2010137 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ti-nuage.fr", - "version": "2022.03.29", + "version": "2022.05.24", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ti-nuage.fr", - "version": "2022.03.29", + "version": "2022.05.24", "devDependencies": { "@metalsmith/collections": "^1.2.1", "@metalsmith/excerpts": "^1.5.1", @@ -29,6 +29,7 @@ "metalsmith": "^2.4.0", "metalsmith-assets": "^0.1.0", "metalsmith-clean-css": "^6.1.3", + "metalsmith-groff": "^0.2.0", "metalsmith-markdownit": "^0.5.0", "metalsmith-rename": "^1.0.0", "metalsmith-sitemap": "^1.2.2", @@ -1851,7 +1852,6 @@ "dependencies": { "anymatch": "3.1.2", "braces": "3.0.2", - "fsevents": "2.3.2", "glob-parent": "5.1.2", "is-binary-path": "2.1.0", "is-glob": "4.0.1", @@ -5583,6 +5583,31 @@ "integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==", "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": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/metalsmith-markdownit/-/metalsmith-markdownit-0.5.0.tgz", @@ -5834,6 +5859,7 @@ "version": "2.29.1", "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==", + "dev": true, "engines": { "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": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/metalsmith-markdownit/-/metalsmith-markdownit-0.5.0.tgz", @@ -13360,7 +13413,8 @@ "moment": { "version": "2.29.1", "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": { "version": "2.0.0", diff --git a/package.json b/package.json index 24c1828..2911f1a 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,17 @@ { "name": "ti-nuage.fr", - "version": "2022.03.29", + "version": "2022.05.24", "private": true, "description": "Ti Nuage Website", "main": "", "scripts": { "build": "DEBUG=metalsmith* npm run clean && npm run build:metalsmith", "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", "dev": "npm run build && DEBUG=metalsmith* nodemon scripts/run.js serve", "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:js": "eslint scripts", "lint:css": "stylelint assets/**/*.css", @@ -41,6 +41,7 @@ "metalsmith": "^2.4.0", "metalsmith-assets": "^0.1.0", "metalsmith-clean-css": "^6.1.3", + "metalsmith-groff": "^0.2.0", "metalsmith-markdownit": "^0.5.0", "metalsmith-rename": "^1.0.0", "metalsmith-sitemap": "^1.2.2", diff --git a/scripts/metalsmith.js b/scripts/metalsmith.js index f3f997a..bb16c9c 100644 --- a/scripts/metalsmith.js +++ b/scripts/metalsmith.js @@ -4,6 +4,7 @@ const cleanCSS = require('metalsmith-clean-css') const config = require('./config.js') const collections = require('@metalsmith/collections') const excerpts = require('@metalsmith/excerpts') +const groff = require('metalsmith-groff') const layouts = require('@metalsmith/layouts') const Metalsmith = require('metalsmith') const markdown = require('metalsmith-markdownit') @@ -39,6 +40,7 @@ module.exports = new Metalsmith(config.paths.projectRoot) source: './assets/' + (process.env.NODE_ENV || 'dev'), destination: './' })) + .use(groff()) .use(markdown({ html: true, linkify: true,