@nrwl/next 14.1.0 → 14.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/next",
3
- "version": "14.1.0",
3
+ "version": "14.1.1",
4
4
  "description": "When using Next.js in Nx, you get the out-of-the-box support for TypeScript, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.\n\nThe Next.js plugin contains executors and generators for managing Next.js applications and libraries within an Nx workspace. It provides:\n\n\n- Scaffolding for creating, building, serving, linting, and testing Next.js applications.\n\n- Integration with building, serving, and exporting a Next.js application.\n\n- Integration with React libraries within the workspace.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,13 +34,13 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@babel/plugin-proposal-decorators": "^7.14.5",
37
- "@nrwl/react": "14.1.0",
38
- "@nrwl/cypress": "14.1.0",
39
- "@nrwl/devkit": "14.1.0",
40
- "@nrwl/jest": "14.1.0",
41
- "@nrwl/linter": "14.1.0",
42
- "@nrwl/web": "14.1.0",
43
- "@nrwl/workspace": "14.1.0",
37
+ "@nrwl/react": "14.1.1",
38
+ "@nrwl/cypress": "14.1.1",
39
+ "@nrwl/devkit": "14.1.1",
40
+ "@nrwl/jest": "14.1.1",
41
+ "@nrwl/linter": "14.1.1",
42
+ "@nrwl/web": "14.1.1",
43
+ "@nrwl/workspace": "14.1.1",
44
44
  "@svgr/webpack": "^6.1.2",
45
45
  "chalk": "4.1.0",
46
46
  "eslint-config-next": "^12.1.0",
@@ -50,59 +50,6 @@ function createNextServerFiles(host, options) {
50
50
  });
51
51
  });
52
52
  }
53
- `);
54
- const { appsDir } = (0, devkit_1.getWorkspaceLayout)(host);
55
- host.write((0, devkit_1.joinPathFragments)(directory, 'server.js'), `
56
- // @ts-check
57
- 'use strict';
58
-
59
- /**
60
- * Production Nextjs custom server
61
- *
62
- * Usage: run this script with node
63
- * Adjust dir option for your serve/deploy config
64
- *
65
- * node server.js
66
- */
67
-
68
- /**
69
- * @typedef {import(${isOldNext
70
- ? 'next/dist/next-server/server/next-server'
71
- : 'next/dist/server/next-server'}).default} Server
72
- */
73
-
74
- const NextServer = require(${isOldNext
75
- ? 'next/dist/next-server/server/next-server'
76
- : 'next/dist/server/next-server'}).default;
77
- const express = require('express');
78
-
79
- const nextApp = new NextServer({
80
- dir: './dist/${appsDir}/<%= name %>',
81
- staticMarkup: false,
82
- quiet: false,
83
- conf: {
84
- distDir: '.'
85
- }
86
- });
87
-
88
- const serve = async () => {
89
- const handle = nextApp.getRequestHandler();
90
- const expressApp = express();
91
-
92
- await nextApp.prepare();
93
-
94
- return new Promise((resolve, reject) => {
95
- expressApp.all('*', (req, res) => {
96
- return handle(req, res);
97
- });
98
-
99
- const server = expressApp.listen(4200, err => {
100
- err ? reject(err) : resolve(server);
101
- });
102
- });
103
- }
104
-
105
- serve().then(server => console.log('Server is running on port 4200'));
106
53
  `);
107
54
  }
108
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"create-next-server-files.js","sourceRoot":"","sources":["../../../../../../../packages/next/src/generators/application/lib/create-next-server-files.ts"],"names":[],"mappings":";;;AACA,yCAA2E;AAC3E,+BAA+B;AAE/B,IAAI,SAAkB,CAAC;AAEvB,IAAI;IACF,OAAO,CAAC,0CAA0C,CAAC,CAAC;IACpD,SAAS,GAAG,IAAI,CAAC;CAClB;AAAC,WAAM;IACN,SAAS,GAAG,KAAK,CAAC;CACnB;AAED,SAAgB,qBAAqB,CAAC,IAAU,EAAE,OAAyB;IACzE,IAAI,OAAO,CAAC,MAAM,EAAE;QAClB,MAAM,SAAS,GAAG,IAAA,cAAO,EACvB,IAAA,0BAAiB,EAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,CAC1D,CAAC;QAEF,IAAI,CAAC,KAAK,CACR,IAAA,0BAAiB,EAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,EACzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCC,CACF,CAAC;QAEF,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;QAE7C,IAAI,CAAC,KAAK,CACR,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,EACzC;;;;;;;;;;;;;;4BAeG,SAAS;YACP,CAAC,CAAC,0CAA0C;YAC5C,CAAC,CAAC,8BACN;;;mCAIC,SAAS;YACP,CAAC,CAAC,0CAA0C;YAC5C,CAAC,CAAC,8BACN;;;;uBAIiB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BvB,CACF,CAAC;KACH;AACH,CAAC;AA7GD,sDA6GC"}
1
+ {"version":3,"file":"create-next-server-files.js","sourceRoot":"","sources":["../../../../../../../packages/next/src/generators/application/lib/create-next-server-files.ts"],"names":[],"mappings":";;;AACA,yCAA2E;AAC3E,+BAA+B;AAE/B,IAAI,SAAkB,CAAC;AAEvB,IAAI;IACF,OAAO,CAAC,0CAA0C,CAAC,CAAC;IACpD,SAAS,GAAG,IAAI,CAAC;CAClB;AAAC,WAAM;IACN,SAAS,GAAG,KAAK,CAAC;CACnB;AAED,SAAgB,qBAAqB,CAAC,IAAU,EAAE,OAAyB;IACzE,IAAI,OAAO,CAAC,MAAM,EAAE;QAClB,MAAM,SAAS,GAAG,IAAA,cAAO,EACvB,IAAA,0BAAiB,EAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,CAC1D,CAAC;QAEF,IAAI,CAAC,KAAK,CACR,IAAA,0BAAiB,EAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,EACzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCC,CACF,CAAC;KACH;AACH,CAAC;AA/CD,sDA+CC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.babelPluginStyledComponentsVersion = exports.emotionServerVersion = exports.stylusLoader = exports.lessLoader = exports.sassVersion = exports.eslintConfigNextVersion = exports.nextVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = '14.1.0';
4
+ exports.nxVersion = '14.1.1';
5
5
  exports.nextVersion = '12.1.5';
6
6
  exports.eslintConfigNextVersion = '12.1.5';
7
7
  exports.sassVersion = '1.43.2';