@gasket/preset-nextjs 7.0.0-next.60 → 7.0.0-next.61
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/generator/README.md +46 -0
- package/lib/create.js +10 -0
- package/lib/index.js +4 -2
- package/package.json +17 -16
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# {{{appName}}}
|
|
2
|
+
|
|
3
|
+
{{{appDescription}}}
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This application is built with [Gasket](https://gasket.dev/) and [Next.js](https://nextjs.org/). This application utilizes [EcmaScript Modules] and requires Node.js v20 or higher.
|
|
8
|
+
|
|
9
|
+
## Getting Started
|
|
10
|
+
|
|
11
|
+
### Development
|
|
12
|
+
|
|
13
|
+
To start the app locally, run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
cd {{{appName}}}
|
|
17
|
+
{{{installCmd}}}
|
|
18
|
+
{{{packageManager}}} run local
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Debugging
|
|
22
|
+
|
|
23
|
+
To start the API locally with debugging enabled, run:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
DEBUG=* {{{packageManager}}} run local
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Extended filtering of the debug output can be achieved by adding to the `DEBUG` environment variable:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
DEBUG=gasket:* {{{packageManager}}} run local // gasket operations only
|
|
33
|
+
DEBUG={{{server}}}:* {{{packageManager}}} run local // {{{server}}} operations only
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
{{#each readme.markdown}}
|
|
37
|
+
{{{markdownCompile this}}}
|
|
38
|
+
{{/each}}
|
|
39
|
+
<!-- LINKS -->
|
|
40
|
+
[App Router]: https://nextjs.org/docs/app
|
|
41
|
+
[Page Router]: https://nextjs.org/docs/pages
|
|
42
|
+
[Custom Server]: https://nextjs.org/docs/pages/building-your-application/configuring/custom-server
|
|
43
|
+
[EcmaScript Modules]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
44
|
+
{{#each readme.links}}
|
|
45
|
+
{{{this}}}
|
|
46
|
+
{{/each}}
|
package/lib/create.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { fileURLToPath } from 'url';
|
|
3
|
+
|
|
4
|
+
/** @type {import('@gasket/core').HookHandler<'create'>} */
|
|
5
|
+
export default function create(gasket, context) {
|
|
6
|
+
const { files } = context;
|
|
7
|
+
const __dirname = fileURLToPath(import.meta.url);
|
|
8
|
+
const generatorDir = path.join(__dirname, '..', '..', 'generator');
|
|
9
|
+
files.add(`${generatorDir}/*`);
|
|
10
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
2
|
import presetPrompt from './preset-prompt.js';
|
|
3
3
|
import presetConfig from './preset-config.js';
|
|
4
|
+
import create from './create.js';
|
|
4
5
|
const require = createRequire(import.meta.url);
|
|
5
6
|
const { name, version, description } = require('../package.json');
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
/** @type {import('@gasket/core').Preset} */
|
|
8
9
|
export default {
|
|
9
10
|
name,
|
|
10
11
|
version,
|
|
11
12
|
description,
|
|
12
13
|
hooks: {
|
|
13
14
|
presetPrompt,
|
|
14
|
-
presetConfig
|
|
15
|
+
presetConfig,
|
|
16
|
+
create
|
|
15
17
|
}
|
|
16
18
|
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gasket/preset-nextjs",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.61",
|
|
4
4
|
"description": "Basic NextJS Framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
-
"lib"
|
|
9
|
+
"lib",
|
|
10
|
+
"generator"
|
|
10
11
|
],
|
|
11
12
|
"scripts": {
|
|
12
13
|
"lint": "eslint .",
|
|
@@ -29,19 +30,19 @@
|
|
|
29
30
|
"url": "https://github.com/godaddy/gasket/issues"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"@gasket/plugin-cypress": "7.0.0-next.
|
|
33
|
-
"@gasket/plugin-express": "7.0.0-next.
|
|
34
|
-
"@gasket/plugin-fastify": "7.0.0-next.
|
|
35
|
-
"@gasket/plugin-https": "7.0.0-next.
|
|
36
|
-
"@gasket/plugin-intl": "7.0.0-next.
|
|
37
|
-
"@gasket/plugin-jest": "7.0.0-next.
|
|
38
|
-
"@gasket/plugin-lint": "7.0.0-next.
|
|
39
|
-
"@gasket/plugin-mocha": "7.0.0-next.
|
|
40
|
-
"@gasket/plugin-nextjs": "7.0.0-next.
|
|
41
|
-
"@gasket/plugin-typescript": "7.0.0-next.
|
|
42
|
-
"@gasket/plugin-webpack": "7.0.0-next.
|
|
43
|
-
"@gasket/plugin-winston": "7.0.0-next.
|
|
44
|
-
"@gasket/utils": "7.0.0-next.
|
|
33
|
+
"@gasket/plugin-cypress": "7.0.0-next.61",
|
|
34
|
+
"@gasket/plugin-express": "7.0.0-next.61",
|
|
35
|
+
"@gasket/plugin-fastify": "7.0.0-next.61",
|
|
36
|
+
"@gasket/plugin-https": "7.0.0-next.61",
|
|
37
|
+
"@gasket/plugin-intl": "7.0.0-next.61",
|
|
38
|
+
"@gasket/plugin-jest": "7.0.0-next.61",
|
|
39
|
+
"@gasket/plugin-lint": "7.0.0-next.61",
|
|
40
|
+
"@gasket/plugin-mocha": "7.0.0-next.61",
|
|
41
|
+
"@gasket/plugin-nextjs": "7.0.0-next.61",
|
|
42
|
+
"@gasket/plugin-typescript": "7.0.0-next.61",
|
|
43
|
+
"@gasket/plugin-webpack": "7.0.0-next.61",
|
|
44
|
+
"@gasket/plugin-winston": "7.0.0-next.61",
|
|
45
|
+
"@gasket/utils": "7.0.0-next.61"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"cross-env": "^7.0.3",
|
|
@@ -69,5 +70,5 @@
|
|
|
69
70
|
"jest": {
|
|
70
71
|
"transform": {}
|
|
71
72
|
},
|
|
72
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "6bfc613e64088429e95e89211008b1c9ab530ca7"
|
|
73
74
|
}
|