@nx/web 20.5.0-beta.2 → 20.5.0-beta.4

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": "@nx/web",
3
- "version": "20.5.0-beta.2",
3
+ "version": "20.5.0-beta.4",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Web Components contains generators for managing Web Component applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Playwright, Cypress, and Storybook.\n\n- Scaffolding for creating buildable libraries that can be published to npm.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -35,8 +35,8 @@
35
35
  "http-server": "^14.1.0",
36
36
  "picocolors": "^1.1.0",
37
37
  "tslib": "^2.3.0",
38
- "@nx/devkit": "20.5.0-beta.2",
39
- "@nx/js": "20.5.0-beta.2"
38
+ "@nx/devkit": "20.5.0-beta.4",
39
+ "@nx/js": "20.5.0-beta.4"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -215,6 +215,21 @@ async function applicationGeneratorInternal(host, schema) {
215
215
  await setupBundler(host, options);
216
216
  }
217
217
  createApplicationFiles(host, options);
218
+ if (options.linter === 'eslint') {
219
+ const { lintProjectGenerator } = (0, devkit_1.ensurePackage)('@nx/eslint', versions_2.nxVersion);
220
+ const lintTask = await lintProjectGenerator(host, {
221
+ linter: options.linter,
222
+ project: options.projectName,
223
+ tsConfigPaths: [
224
+ (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'tsconfig.app.json'),
225
+ ],
226
+ unitTestRunner: options.unitTestRunner,
227
+ skipFormat: true,
228
+ setParserOptionsProject: options.setParserOptionsProject,
229
+ addPlugin: options.addPlugin,
230
+ });
231
+ tasks.push(lintTask);
232
+ }
218
233
  if (options.bundler === 'vite') {
219
234
  const { viteConfigurationGenerator, createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_2.nxVersion);
220
235
  // We recommend users use `import.meta.env.MODE` and other variables in their code to differentiate between production and development.
@@ -262,21 +277,6 @@ async function applicationGeneratorInternal(host, schema) {
262
277
  options.inSourceTests) {
263
278
  host.delete((0, devkit_1.joinPathFragments)(options.appProjectRoot, `src/app/app.element.spec.ts`));
264
279
  }
265
- if (options.linter === 'eslint') {
266
- const { lintProjectGenerator } = (0, devkit_1.ensurePackage)('@nx/eslint', versions_2.nxVersion);
267
- const lintTask = await lintProjectGenerator(host, {
268
- linter: options.linter,
269
- project: options.projectName,
270
- tsConfigPaths: [
271
- (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'tsconfig.app.json'),
272
- ],
273
- unitTestRunner: options.unitTestRunner,
274
- skipFormat: true,
275
- setParserOptionsProject: options.setParserOptionsProject,
276
- addPlugin: options.addPlugin,
277
- });
278
- tasks.push(lintTask);
279
- }
280
280
  const nxJson = (0, devkit_1.readNxJson)(host);
281
281
  let hasPlugin;
282
282
  let buildPlugin;