@gasket/preset-nextjs 7.0.0-next.69 → 7.0.0-next.70
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/lib/index.d.ts +0 -1
- package/lib/preset-config.js +3 -4
- package/lib/preset-prompt.js +0 -16
- package/package.json +14 -15
package/lib/index.d.ts
CHANGED
package/lib/preset-config.js
CHANGED
|
@@ -23,10 +23,9 @@ export default async function presetConfig(gasket, context) {
|
|
|
23
23
|
pluginLint
|
|
24
24
|
];
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
: await import('@gasket/plugin-fastify');
|
|
26
|
+
|
|
27
|
+
if (context.nextServerType === 'customServer') {
|
|
28
|
+
const frameworkPlugin = await import('@gasket/plugin-express');
|
|
30
29
|
|
|
31
30
|
plugins.push(frameworkPlugin.default || frameworkPlugin);
|
|
32
31
|
}
|
package/lib/preset-prompt.js
CHANGED
|
@@ -13,21 +13,5 @@ export default async function presetPrompt(gasket, context, { prompt }) {
|
|
|
13
13
|
await nextJsPrompts.promptNextServerType(context, prompt);
|
|
14
14
|
await nextJsPrompts.promptNextDevProxy(context, prompt);
|
|
15
15
|
|
|
16
|
-
if (!('server' in context) && context.nextServerType === 'customServer') {
|
|
17
|
-
const { server } = await prompt([
|
|
18
|
-
{
|
|
19
|
-
name: 'server',
|
|
20
|
-
message: 'Which custom server framework would you like to use?',
|
|
21
|
-
type: 'list',
|
|
22
|
-
choices: [
|
|
23
|
-
{ name: 'Express', value: 'express' },
|
|
24
|
-
{ name: 'Fastify', value: 'fastify' }
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
]);
|
|
28
|
-
|
|
29
|
-
Object.assign(context, { server });
|
|
30
|
-
}
|
|
31
|
-
|
|
32
16
|
return context;
|
|
33
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gasket/preset-nextjs",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.70",
|
|
4
4
|
"description": "Basic NextJS Framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,19 +31,18 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/godaddy/gasket/tree/main/packages/gasket-preset-nextjs",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@gasket/plugin-cypress": "7.0.0-next.
|
|
35
|
-
"@gasket/plugin-express": "7.0.0-next.
|
|
36
|
-
"@gasket/plugin-
|
|
37
|
-
"@gasket/plugin-
|
|
38
|
-
"@gasket/plugin-
|
|
39
|
-
"@gasket/plugin-
|
|
40
|
-
"@gasket/plugin-
|
|
41
|
-
"@gasket/plugin-
|
|
42
|
-
"@gasket/plugin-
|
|
43
|
-
"@gasket/plugin-
|
|
44
|
-
"@gasket/plugin-
|
|
45
|
-
"@gasket/
|
|
46
|
-
"@gasket/utils": "7.0.0-next.69"
|
|
34
|
+
"@gasket/plugin-cypress": "7.0.0-next.70",
|
|
35
|
+
"@gasket/plugin-express": "7.0.0-next.70",
|
|
36
|
+
"@gasket/plugin-https": "7.0.0-next.70",
|
|
37
|
+
"@gasket/plugin-intl": "7.0.0-next.70",
|
|
38
|
+
"@gasket/plugin-jest": "7.0.0-next.70",
|
|
39
|
+
"@gasket/plugin-lint": "7.0.0-next.70",
|
|
40
|
+
"@gasket/plugin-mocha": "7.0.0-next.70",
|
|
41
|
+
"@gasket/plugin-nextjs": "7.0.0-next.70",
|
|
42
|
+
"@gasket/plugin-typescript": "7.0.0-next.70",
|
|
43
|
+
"@gasket/plugin-webpack": "7.0.0-next.70",
|
|
44
|
+
"@gasket/plugin-winston": "7.0.0-next.70",
|
|
45
|
+
"@gasket/utils": "7.0.0-next.70"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
48
|
"cross-env": "^7.0.3",
|
|
@@ -71,5 +70,5 @@
|
|
|
71
70
|
"jest": {
|
|
72
71
|
"transform": {}
|
|
73
72
|
},
|
|
74
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "f261bf98ca587e646dc61fa49dd50859a0f43a47"
|
|
75
74
|
}
|