From 08cc320d34b68c279288eee82fb729b2157a0c04 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 21 May 2024 11:21:36 +0100 Subject: [PATCH] Add tests that the core plugins all have a valid stability field --- core/modules/commands/makelibrary.js | 27 +---------- core/modules/utils/repository.js | 48 ++++++++++++++++++++ editions/test/tiddlers/tests/test-plugins.js | 44 ++++++++++++++++++ plugins/tiddlywiki/tw5.com-docs/plugin.info | 2 +- plugins/tiddlywiki/tw5.com-docs/readme.tid | 7 +++ 5 files changed, 101 insertions(+), 27 deletions(-) create mode 100644 core/modules/utils/repository.js create mode 100644 editions/test/tiddlers/tests/test-plugins.js create mode 100644 plugins/tiddlywiki/tw5.com-docs/readme.tid diff --git a/core/modules/commands/makelibrary.js b/core/modules/commands/makelibrary.js index 36a1399a2..3af2e4943 100644 --- a/core/modules/commands/makelibrary.js +++ b/core/modules/commands/makelibrary.js @@ -27,33 +27,8 @@ var Command = function(params,commander,callback) { Command.prototype.execute = function() { var wiki = this.commander.wiki, - fs = require("fs"), - path = require("path"), upgradeLibraryTitle = this.params[0] || UPGRADE_LIBRARY_TITLE, - tiddlers = {}; - // Collect up the library plugins - var collectPlugins = function(folder) { - var pluginFolders = $tw.utils.getSubdirectories(folder) || []; - for(var p=0; p