@nx/next 23.2.0-pr.36838.ef8e258 → 23.2.0-rc.0

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.
@@ -11,12 +11,14 @@ export interface Schema {
11
11
  routing?: boolean;
12
12
  appProject?: string;
13
13
  unitTestRunner: 'jest' | 'vitest' | 'none';
14
+ inSourceTests?: boolean;
14
15
  linter?: LinterType;
15
16
  component?: boolean;
16
17
  publishable?: boolean;
17
18
  /** @deprecated Use bundler instead. */
18
19
  buildable?: boolean;
19
20
  bundler?: 'none' | 'vite' | 'rollup';
21
+ compiler?: 'babel' | 'swc';
20
22
  importPath?: string;
21
23
  js?: boolean;
22
24
  globalCss?: boolean;
@@ -69,6 +69,11 @@
69
69
  "x-prompt": "What unit test runner should be used?",
70
70
  "x-priority": "important"
71
71
  },
72
+ "inSourceTests": {
73
+ "type": "boolean",
74
+ "default": false,
75
+ "description": "When using Vitest, separate spec files will not be generated and instead will be included within the source files."
76
+ },
72
77
  "tags": {
73
78
  "type": "string",
74
79
  "description": "Add tags to the library (used for linting).",
@@ -77,12 +82,14 @@
77
82
  "skipFormat": {
78
83
  "description": "Skip formatting files.",
79
84
  "type": "boolean",
80
- "default": false
85
+ "default": false,
86
+ "x-priority": "internal"
81
87
  },
82
88
  "skipTsConfig": {
83
89
  "type": "boolean",
84
90
  "default": false,
85
- "description": "Do not update tsconfig.json for development experience."
91
+ "description": "Do not update `tsconfig.json` for development experience.",
92
+ "x-priority": "internal"
86
93
  },
87
94
  "routing": {
88
95
  "type": "boolean",
@@ -119,7 +126,7 @@
119
126
  },
120
127
  "globalCss": {
121
128
  "type": "boolean",
122
- "description": "When true, the stylesheet is generated using global CSS instead of CSS modules (e.g. file is `*.css` rather than `*.module.css`).",
129
+ "description": "When `true`, the stylesheet is generated using global CSS instead of CSS modules (e.g. file is `*.css` rather than `*.module.css`).",
123
130
  "default": false
124
131
  },
125
132
  "strict": {
@@ -138,6 +145,12 @@
138
145
  "default": false,
139
146
  "x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
140
147
  },
148
+ "compiler": {
149
+ "type": "string",
150
+ "enum": ["babel", "swc"],
151
+ "default": "babel",
152
+ "description": "Which compiler to use."
153
+ },
141
154
  "skipPackageJson": {
142
155
  "type": "boolean",
143
156
  "default": false,
@@ -1,11 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.composePlugins = composePlugins;
4
- const deprecation_1 = require("./deprecation");
5
4
  function composePlugins(...plugins) {
6
5
  return function (baseConfig) {
7
6
  return async function combined(phase, context) {
8
- (0, deprecation_1.warnComposePluginsDeprecation)(phase);
7
+ const { PHASE_PRODUCTION_SERVER, } = require('next/constants');
8
+ // Copied verbatim into the build output (see create-next-config-file.ts),
9
+ // so this must load without @nx/next or @nx/devkit installed. Warn only on
10
+ // the active Nx-task path, resolved from the workspace like with-nx.ts.
11
+ if (phase !== PHASE_PRODUCTION_SERVER &&
12
+ !global.NX_GRAPH_CREATION &&
13
+ process.env.NX_TASK_TARGET_TARGET) {
14
+ const { workspaceRoot } = require('@nx/devkit');
15
+ const { warnComposePluginsDeprecation } = require(require.resolve('@nx/next/src/utils/deprecation', {
16
+ paths: [workspaceRoot],
17
+ }));
18
+ warnComposePluginsDeprecation(phase);
19
+ }
9
20
  let config = baseConfig;
10
21
  for (const plugin of plugins) {
11
22
  const fn = await plugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/next",
3
- "version": "23.2.0-pr.36838.ef8e258",
3
+ "version": "23.2.0-rc.0",
4
4
  "private": false,
5
5
  "description": "The Next.js plugin for Nx 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. \n\nWhen using Next.js in Nx, you get the out-of-the-box support for TypeScript, Playwright, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.",
6
6
  "repository": {
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "peerDependencies": {
70
70
  "next": ">=14.0.0 <17.0.0",
71
- "@nx/webpack": "23.2.0-pr.36838.ef8e258"
71
+ "@nx/webpack": "23.2.0-rc.0"
72
72
  },
73
73
  "peerDependenciesMeta": {
74
74
  "@nx/webpack": {
@@ -83,18 +83,18 @@
83
83
  "tslib": "^2.3.0",
84
84
  "webpack-merge": "^5.8.0",
85
85
  "@phenomnomnominal/tsquery": "~6.2.0",
86
- "@nx/devkit": "23.2.0-pr.36838.ef8e258",
87
- "@nx/js": "23.2.0-pr.36838.ef8e258",
88
- "@nx/eslint": "23.2.0-pr.36838.ef8e258",
89
- "@nx/react": "23.2.0-pr.36838.ef8e258",
90
- "@nx/web": "23.2.0-pr.36838.ef8e258"
86
+ "@nx/devkit": "23.2.0-rc.0",
87
+ "@nx/eslint": "23.2.0-rc.0",
88
+ "@nx/react": "23.2.0-rc.0",
89
+ "@nx/js": "23.2.0-rc.0",
90
+ "@nx/web": "23.2.0-rc.0"
91
91
  },
92
92
  "devDependencies": {
93
- "@nx/cypress": "23.2.0-pr.36838.ef8e258",
94
- "@nx/playwright": "23.2.0-pr.36838.ef8e258",
95
- "@nx/vitest": "23.2.0-pr.36838.ef8e258",
96
- "@nx/webpack": "23.2.0-pr.36838.ef8e258",
97
- "nx": "23.2.0-pr.36838.ef8e258"
93
+ "@nx/playwright": "23.2.0-rc.0",
94
+ "@nx/cypress": "23.2.0-rc.0",
95
+ "@nx/vitest": "23.2.0-rc.0",
96
+ "@nx/webpack": "23.2.0-rc.0",
97
+ "nx": "23.2.0-rc.0"
98
98
  },
99
99
  "publishConfig": {
100
100
  "access": "public"