@gasket/preset-nextjs 7.0.0-next.25 → 7.0.0-next.27

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.
@@ -12,10 +12,14 @@ import pluginWinston from '@gasket/plugin-winston';
12
12
  * @returns {Promise<CreateContext.presetConfig>} config
13
13
  */
14
14
  export default async function presetConfig(gasket, context) {
15
- let testPlugin, typescriptPlugin;
15
+ let typescriptPlugin;
16
+ let testPlugins = [];
16
17
 
17
- if ('testPlugin' in context) {
18
- testPlugin = await import(context.testPlugin);
18
+ if ('testPlugins' in context && context.testPlugins.length > 0) {
19
+ await Promise.all(context.testPlugins.map(async (testPlugin) => {
20
+ const plugin = await import(testPlugin);
21
+ testPlugins.push(plugin ? plugin.default || plugin : null);
22
+ }));
19
23
  }
20
24
 
21
25
  if (context.typescript) {
@@ -31,7 +35,7 @@ export default async function presetConfig(gasket, context) {
31
35
  pluginRedux,
32
36
  pluginWinston,
33
37
  typescriptPlugin ? typescriptPlugin.default || typescriptPlugin : null,
34
- testPlugin ? testPlugin.default || testPlugin : null
38
+ ...testPlugins
35
39
  ].filter(Boolean)
36
40
  };
37
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/preset-nextjs",
3
- "version": "7.0.0-next.25",
3
+ "version": "7.0.0-next.27",
4
4
  "description": "Basic NextJS Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -29,18 +29,18 @@
29
29
  "url": "https://github.com/godaddy/gasket/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@gasket/plugin-cypress": "^7.0.0-next.25",
33
- "@gasket/plugin-express": "^7.0.0-next.25",
34
- "@gasket/plugin-https": "^7.0.0-next.25",
35
- "@gasket/plugin-jest": "^7.0.0-next.25",
36
- "@gasket/plugin-lint": "^7.0.0-next.25",
37
- "@gasket/plugin-mocha": "^7.0.0-next.25",
38
- "@gasket/plugin-nextjs": "^7.0.0-next.25",
39
- "@gasket/plugin-redux": "^7.0.0-next.25",
40
- "@gasket/plugin-typescript": "^7.0.0-next.25",
41
- "@gasket/plugin-webpack": "^7.0.0-next.25",
42
- "@gasket/plugin-winston": "^7.0.0-next.25",
43
- "@gasket/utils": "^7.0.0-next.25"
32
+ "@gasket/plugin-cypress": "^7.0.0-next.27",
33
+ "@gasket/plugin-express": "^7.0.0-next.27",
34
+ "@gasket/plugin-https": "^7.0.0-next.27",
35
+ "@gasket/plugin-jest": "^7.0.0-next.27",
36
+ "@gasket/plugin-lint": "^7.0.0-next.27",
37
+ "@gasket/plugin-mocha": "^7.0.0-next.27",
38
+ "@gasket/plugin-nextjs": "^7.0.0-next.27",
39
+ "@gasket/plugin-redux": "^7.0.0-next.27",
40
+ "@gasket/plugin-typescript": "^7.0.0-next.27",
41
+ "@gasket/plugin-webpack": "^7.0.0-next.27",
42
+ "@gasket/plugin-winston": "^7.0.0-next.27",
43
+ "@gasket/utils": "^7.0.0-next.27"
44
44
  },
45
45
  "devDependencies": {
46
46
  "cross-env": "^7.0.3",
@@ -68,5 +68,5 @@
68
68
  "jest": {
69
69
  "transform": {}
70
70
  },
71
- "gitHead": "0782b4f4d07d18fb6bd44ecaab3e6bdafd6d4c9d"
71
+ "gitHead": "8eac18372b9925c7bc9f0f6c2e79cf4080449736"
72
72
  }