@gasket/preset-nextjs 7.0.0-next.20 → 7.0.0-next.22
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/preset-config.js +6 -0
- package/lib/preset-prompt.js +7 -0
- package/package.json +15 -15
package/lib/preset-config.js
CHANGED
|
@@ -5,6 +5,12 @@ import pluginRedux from '@gasket/plugin-redux';
|
|
|
5
5
|
import pluginWebpack from '@gasket/plugin-webpack';
|
|
6
6
|
import pluginWinston from '@gasket/plugin-winston';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* presetConfig hook
|
|
10
|
+
* @param {Gasket} gasket - Gasket API
|
|
11
|
+
* @param {Create} context - Create context
|
|
12
|
+
* @returns {Promise<CreateContext.presetConfig>} config
|
|
13
|
+
*/
|
|
8
14
|
export default async function presetConfig(gasket, context) {
|
|
9
15
|
let testPlugin, typescriptPlugin;
|
|
10
16
|
|
package/lib/preset-prompt.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* presetPrompt hook
|
|
3
|
+
* @param {Gasket} gasket - Gasket API
|
|
4
|
+
* @param {Create} context - Create context
|
|
5
|
+
* @param {Object} utils - Prompt utils
|
|
6
|
+
* @param {Function} utils.prompt - Inquirer prompt
|
|
7
|
+
*/
|
|
1
8
|
export default async function presetPrompt(gasket, context, { prompt }) {
|
|
2
9
|
if (!('typescript' in context)) {
|
|
3
10
|
const { typescript } = await prompt([
|
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.22",
|
|
4
4
|
"description": "Basic NextJS Framework",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"lint": "eslint .",
|
|
13
13
|
"lint:fix": "npm run lint -- --fix",
|
|
14
14
|
"test": "cross-env NODE_OPTIONS='--unhandled-rejections=strict --experimental-vm-modules' jest",
|
|
15
|
-
"test:watch": "
|
|
15
|
+
"test:watch": "npm run test -- --watch",
|
|
16
16
|
"test:coverage": "jest --coverage",
|
|
17
17
|
"posttest": "npm run lint"
|
|
18
18
|
},
|
|
@@ -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.
|
|
33
|
-
"@gasket/plugin-express": "^7.0.0-next.
|
|
34
|
-
"@gasket/plugin-https": "^7.0.0-next.
|
|
35
|
-
"@gasket/plugin-jest": "^7.0.0-next.
|
|
36
|
-
"@gasket/plugin-lint": "^7.0.0-next.
|
|
37
|
-
"@gasket/plugin-mocha": "^7.0.0-next.
|
|
38
|
-
"@gasket/plugin-nextjs": "^7.0.0-next.
|
|
39
|
-
"@gasket/plugin-redux": "^7.0.0-next.
|
|
40
|
-
"@gasket/plugin-typescript": "^7.0.0-next.
|
|
41
|
-
"@gasket/plugin-webpack": "^7.0.0-next.
|
|
42
|
-
"@gasket/plugin-winston": "^7.0.0-next.
|
|
43
|
-
"@gasket/utils": "^7.0.0-next.
|
|
32
|
+
"@gasket/plugin-cypress": "^7.0.0-next.22",
|
|
33
|
+
"@gasket/plugin-express": "^7.0.0-next.22",
|
|
34
|
+
"@gasket/plugin-https": "^7.0.0-next.22",
|
|
35
|
+
"@gasket/plugin-jest": "^7.0.0-next.22",
|
|
36
|
+
"@gasket/plugin-lint": "^7.0.0-next.22",
|
|
37
|
+
"@gasket/plugin-mocha": "^7.0.0-next.22",
|
|
38
|
+
"@gasket/plugin-nextjs": "^7.0.0-next.22",
|
|
39
|
+
"@gasket/plugin-redux": "^7.0.0-next.22",
|
|
40
|
+
"@gasket/plugin-typescript": "^7.0.0-next.22",
|
|
41
|
+
"@gasket/plugin-webpack": "^7.0.0-next.22",
|
|
42
|
+
"@gasket/plugin-winston": "^7.0.0-next.22",
|
|
43
|
+
"@gasket/utils": "^7.0.0-next.22"
|
|
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": "
|
|
71
|
+
"gitHead": "b477b086bf8938f34fffa673e396920eae9a0263"
|
|
72
72
|
}
|