@nx/web 23.2.0-beta.8 → 23.2.0-beta.9

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.
@@ -201,6 +201,7 @@ async function applicationGeneratorInternal(host, schema) {
201
201
  js: false,
202
202
  skipFormat: true,
203
203
  platform: 'web',
204
+ formatter: options.formatter,
204
205
  });
205
206
  tasks.push(jsInitTask);
206
207
  const webTask = await (0, init_1.webInitGenerator)(host, {
@@ -13,6 +13,7 @@ export interface Schema {
13
13
  inSourceTests?: boolean;
14
14
  e2eTestRunner?: 'cypress' | 'playwright' | 'none';
15
15
  linter?: LinterType;
16
+ formatter?: 'none' | 'prettier' | 'oxfmt';
16
17
  enableTypedLinting?: boolean;
17
18
  /**
18
19
  * @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
@@ -61,6 +61,11 @@
61
61
  "type": "string",
62
62
  "enum": ["eslint", "oxlint", "none"]
63
63
  },
64
+ "formatter": {
65
+ "description": "The tool to use for code formatting.",
66
+ "type": "string",
67
+ "enum": ["none", "prettier", "oxfmt"]
68
+ },
64
69
  "skipFormat": {
65
70
  "description": "Skip formatting files",
66
71
  "type": "boolean",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/web",
3
- "version": "23.2.0-beta.8",
3
+ "version": "23.2.0-beta.9",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -79,20 +79,20 @@
79
79
  "http-server": "^14.1.0",
80
80
  "picocolors": "^1.1.0",
81
81
  "tslib": "^2.3.0",
82
- "@nx/js": "23.2.0-beta.8",
83
- "@nx/devkit": "23.2.0-beta.8"
82
+ "@nx/devkit": "23.2.0-beta.9",
83
+ "@nx/js": "23.2.0-beta.9"
84
84
  },
85
85
  "devDependencies": {
86
- "@nx/vitest": "23.2.0-beta.8",
87
- "nx": "23.2.0-beta.8"
86
+ "@nx/vitest": "23.2.0-beta.9",
87
+ "nx": "23.2.0-beta.9"
88
88
  },
89
89
  "peerDependencies": {
90
- "@nx/cypress": "23.2.0-beta.8",
91
- "@nx/eslint": "23.2.0-beta.8",
92
- "@nx/vite": "23.2.0-beta.8",
93
- "@nx/jest": "23.2.0-beta.8",
94
- "@nx/playwright": "23.2.0-beta.8",
95
- "@nx/webpack": "23.2.0-beta.8"
90
+ "@nx/eslint": "23.2.0-beta.9",
91
+ "@nx/jest": "23.2.0-beta.9",
92
+ "@nx/playwright": "23.2.0-beta.9",
93
+ "@nx/vite": "23.2.0-beta.9",
94
+ "@nx/webpack": "23.2.0-beta.9",
95
+ "@nx/cypress": "23.2.0-beta.9"
96
96
  },
97
97
  "peerDependenciesMeta": {
98
98
  "@nx/cypress": {