@fontoxml/fontoxml-development-tools 3.9.0 → 3.10.0-beta.1
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/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/src/modules/editor/dev-cms/connectors-cms-standard/configureDevelopmentCmsMiddleware.js +5 -0
- package/src/modules/editor/src/getPatternsForSpecialFileType.js +1 -1
- package/src/modules/editor/src/webpackLoaders/generatedLoader.cjs +5 -3
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fontoxml/fontoxml-development-tools",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0-beta.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@fontoxml/fontoxml-development-tools",
|
|
9
|
-
"version": "3.
|
|
9
|
+
"version": "3.10.0-beta.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@babel/core": "7.14.6",
|
package/package.json
CHANGED
package/src/modules/editor/dev-cms/connectors-cms-standard/configureDevelopmentCmsMiddleware.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import correlationIdRepository from './correlationIdRepository.js';
|
|
1
2
|
import DevelopmentCms from './stores/DevelopmentCms.js';
|
|
2
3
|
|
|
3
4
|
export default function (config) {
|
|
@@ -6,6 +7,10 @@ export default function (config) {
|
|
|
6
7
|
return (req, _res, next) => {
|
|
7
8
|
req.cms = cms;
|
|
8
9
|
|
|
10
|
+
req.repositories = {
|
|
11
|
+
correlationId: correlationIdRepository,
|
|
12
|
+
};
|
|
13
|
+
|
|
9
14
|
next();
|
|
10
15
|
};
|
|
11
16
|
}
|
|
@@ -16,7 +16,7 @@ export default function getPatternsForSpecialFileType(type) {
|
|
|
16
16
|
return ['src/*.@(js|jsx|ts|tsx)', '!src/*.d.ts'];
|
|
17
17
|
case 'unitTestSpecs':
|
|
18
18
|
return ['test/**/*.tests.@(js|ts)'];
|
|
19
|
-
case '
|
|
19
|
+
case 'unitTestConfigurationManager':
|
|
20
20
|
return [];
|
|
21
21
|
default:
|
|
22
22
|
throw new Error(`Unsupported special file type "${type}".`);
|
|
@@ -311,7 +311,7 @@ async function handleUnitTest({
|
|
|
311
311
|
code = statements
|
|
312
312
|
.map((statement) => `import '${statement.path}';`)
|
|
313
313
|
.join('\n');
|
|
314
|
-
} else if (type === '
|
|
314
|
+
} else if (type === 'unitTestConfigurationManager') {
|
|
315
315
|
// packagesInfoInLoadOrder is filtered for the unit test types, so get them all again.
|
|
316
316
|
const allPackagesInfoInLoadOrder =
|
|
317
317
|
loaderContext._compilation.packagesInfoInLoadOrder;
|
|
@@ -323,7 +323,9 @@ async function handleUnitTest({
|
|
|
323
323
|
);
|
|
324
324
|
|
|
325
325
|
const useConfigurationManager = !!dependsOnFontoxmlConfigurationPackage;
|
|
326
|
-
code =
|
|
326
|
+
code = useConfigurationManager
|
|
327
|
+
? `export { default } from 'fontoxml-configuration/src/configurationManager';`
|
|
328
|
+
: `export default null;`;
|
|
327
329
|
}
|
|
328
330
|
|
|
329
331
|
code = code.trim();
|
|
@@ -386,7 +388,7 @@ module.exports = async function generatedLoader(input, inputMap) {
|
|
|
386
388
|
case 'unitTestConfiguration':
|
|
387
389
|
case 'unitTestSmokeTest':
|
|
388
390
|
case 'unitTestSpecs':
|
|
389
|
-
case '
|
|
391
|
+
case 'unitTestConfigurationManager':
|
|
390
392
|
return handleUnitTest(handlerOptions);
|
|
391
393
|
case 'versionInfo':
|
|
392
394
|
return handleVersionInfo(handlerOptions);
|