domma-cms 0.69.3 → 0.69.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/scripts/run-tests.mjs
CHANGED
|
@@ -77,7 +77,9 @@ try {
|
|
|
77
77
|
const given = process.argv.slice(2);
|
|
78
78
|
const files = given.filter(a => !a.startsWith('-'));
|
|
79
79
|
const args = ['--test', '--test-concurrency=1', ...given, ...(files.length ? [] : ['tests/**/*.test.js'])];
|
|
80
|
-
|
|
80
|
+
// DOMMA_REPO_ROOT: where the real checkout is, for the few tests that compare
|
|
81
|
+
// against a sibling repo (../dcms-marketplace) the temp copy has no neighbour for.
|
|
82
|
+
const child = spawn(process.execPath, args, {cwd: copy, stdio: 'inherit', env: {...process.env, DOMMA_REPO_ROOT: ROOT}});
|
|
81
83
|
|
|
82
84
|
// Ctrl+C, or a kill: stop the suite, then still delete the copy.
|
|
83
85
|
for (const sig of ['SIGINT', 'SIGTERM', 'SIGHUP']) {
|
|
@@ -41,12 +41,15 @@ export const ENGINE_TOP_LEVEL = new Set([
|
|
|
41
41
|
const SITE_ROOTS = ['content', 'config', 'plugins'];
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
44
|
+
* Every slug dcms-marketplace reserves (its reserved.json): plugins promoted
|
|
45
|
+
* into core (0.67.0), retired, or withdrawn. None is shipped by any upstream
|
|
46
|
+
* any more, so without this list a leftover folder - `shopping-cart` on
|
|
47
|
+
* cms.dommajs.org, withdrawn scaffolder output - reads as the site's own code
|
|
48
|
+
* and gets committed. A reserved name is never the site's: its folder is engine.
|
|
47
49
|
*/
|
|
48
50
|
export const RETIRED_PLUGINS = [
|
|
49
|
-
'analytics', 'contacts', 'notes', 'todo', 'demo-viewer', 'theme-switcher', 'site-search'
|
|
51
|
+
'analytics', 'contacts', 'notes', 'todo', 'demo-viewer', 'theme-switcher', 'site-search',
|
|
52
|
+
'seo-pro', 'shopping-cart', 'form-builder'
|
|
50
53
|
];
|
|
51
54
|
|
|
52
55
|
/**
|
|
@@ -78,7 +81,7 @@ export const ENGINE_SCHEMAS = [
|
|
|
78
81
|
*/
|
|
79
82
|
export const PRIVATE_DATA = [
|
|
80
83
|
'notifications', 'api-tokens', 'notes-notes', 'todo-items',
|
|
81
|
-
'contacts-contacts', 'contacts-groups', 'roles', 'user-profiles',
|
|
84
|
+
'contacts', 'contacts-contacts', 'contacts-groups', 'roles', 'user-profiles',
|
|
82
85
|
'user-messages', 'user-message-threads', 'analytics-events', 'enquiries',
|
|
83
86
|
'blog-comments', 'invoices', 'invoice-receivers', 'invoice-issuers',
|
|
84
87
|
'surveys-contacts', 'surveys-invites'
|