@nx/web 21.3.7 → 21.4.0-beta.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.
Files changed (32) hide show
  1. package/babel.d.ts +1 -0
  2. package/babel.d.ts.map +1 -0
  3. package/index.d.ts +1 -0
  4. package/index.d.ts.map +1 -0
  5. package/package.json +7 -4
  6. package/project.json +54 -0
  7. package/src/executors/file-server/compat.d.ts +1 -0
  8. package/src/executors/file-server/compat.d.ts.map +1 -0
  9. package/src/executors/file-server/file-server.impl.d.ts +1 -0
  10. package/src/executors/file-server/file-server.impl.d.ts.map +1 -0
  11. package/src/executors/file-server/file-server.impl.js +1 -1
  12. package/src/generators/application/application.d.ts +1 -0
  13. package/src/generators/application/application.d.ts.map +1 -0
  14. package/src/generators/init/init.d.ts +1 -0
  15. package/src/generators/init/init.d.ts.map +1 -0
  16. package/src/generators/static-serve/static-serve-configuration.d.ts +1 -0
  17. package/src/generators/static-serve/static-serve-configuration.d.ts.map +1 -0
  18. package/src/plugins/webpack-nx-build-coordination-plugin.d.ts +1 -0
  19. package/src/plugins/webpack-nx-build-coordination-plugin.d.ts.map +1 -0
  20. package/src/utils/fs.d.ts +1 -0
  21. package/src/utils/fs.d.ts.map +1 -0
  22. package/src/utils/has-vite-plugin.d.ts +1 -0
  23. package/src/utils/has-vite-plugin.d.ts.map +1 -0
  24. package/src/utils/has-webpack-plugin.d.ts +1 -0
  25. package/src/utils/has-webpack-plugin.d.ts.map +1 -0
  26. package/src/utils/normalize.d.ts +1 -0
  27. package/src/utils/normalize.d.ts.map +1 -0
  28. package/src/utils/versions.d.ts +1 -0
  29. package/src/utils/versions.d.ts.map +1 -0
  30. package/src/utils/wait-for-port-open.d.ts +1 -0
  31. package/src/utils/wait-for-port-open.d.ts.map +1 -0
  32. package/README.md +0 -68
package/babel.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  declare const nxJsBabelPreset: any;
2
+ //# sourceMappingURL=babel.d.ts.map
package/babel.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"babel.d.ts","sourceRoot":"","sources":["../../../packages/web/babel.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,eAAe,KAA0B,CAAC"}
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { webInitGenerator } from './src/generators/init/init';
2
2
  export { applicationGenerator } from './src/generators/application/application';
3
3
  export { webStaticServeGenerator } from './src/generators/static-serve/static-serve-configuration';
4
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/web/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,0DAA0D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/web",
3
- "version": "21.3.7",
3
+ "version": "21.4.0-beta.1",
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": {
@@ -16,7 +16,7 @@
16
16
  "CLI",
17
17
  "Front-end"
18
18
  ],
19
- "main": "./index",
19
+ "main": "./index.js",
20
20
  "typings": "./index.d.ts",
21
21
  "author": "Victor Savkin",
22
22
  "license": "MIT",
@@ -35,8 +35,11 @@
35
35
  "http-server": "^14.1.0",
36
36
  "picocolors": "^1.1.0",
37
37
  "tslib": "^2.3.0",
38
- "@nx/devkit": "21.3.7",
39
- "@nx/js": "21.3.7"
38
+ "@nx/devkit": "21.4.0-beta.1",
39
+ "@nx/js": "21.4.0-beta.1"
40
+ },
41
+ "devDependencies": {
42
+ "nx": "21.4.0-beta.1"
40
43
  },
41
44
  "publishConfig": {
42
45
  "access": "public"
package/project.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "web",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
+ "sourceRoot": "packages/web",
5
+ "projectType": "library",
6
+ "targets": {
7
+ "build": {},
8
+ "legacy-post-build": {
9
+ "executor": "@nx/workspace-plugin:legacy-post-build",
10
+ "options": {
11
+ "tsConfig": "./tsconfig.lib.json",
12
+ "assets": [
13
+ {
14
+ "input": "packages/web",
15
+ "glob": "**/files/**",
16
+ "output": "/"
17
+ },
18
+ {
19
+ "input": "packages/web",
20
+ "glob": "**/files/**/.gitkeep",
21
+ "output": "/"
22
+ },
23
+ {
24
+ "input": "packages/web",
25
+ "glob": "**/files/**/.babelrc__tmpl__",
26
+ "output": "/"
27
+ },
28
+ {
29
+ "input": "packages/web",
30
+ "glob": "**/*.json",
31
+ "ignore": ["**/tsconfig*.json", "project.json", ".eslintrc.json"],
32
+ "output": "/"
33
+ },
34
+ {
35
+ "input": "packages/web",
36
+ "glob": "**/*.js",
37
+ "ignore": ["**/jest.config.js"],
38
+ "output": "/"
39
+ },
40
+ {
41
+ "input": "packages/web",
42
+ "glob": "**/*.d.ts",
43
+ "output": "/"
44
+ },
45
+ {
46
+ "input": "",
47
+ "glob": "LICENSE",
48
+ "output": "/"
49
+ }
50
+ ]
51
+ }
52
+ }
53
+ }
54
+ }
@@ -1,2 +1,3 @@
1
1
  declare const _default: any;
2
2
  export default _default;
3
+ //# sourceMappingURL=compat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/file-server/compat.ts"],"names":[],"mappings":";AAGA,wBAA6C"}
@@ -6,3 +6,4 @@ export default function fileServerExecutor(options: Schema, context: ExecutorCon
6
6
  }, {
7
7
  success: boolean;
8
8
  }, unknown>;
9
+ //# sourceMappingURL=file-server.impl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/file-server/file-server.impl.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EAIhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAqIlC,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe;;;;aA4HM,OAAO;YAStC"}
@@ -8,9 +8,9 @@ const fs_1 = require("fs");
8
8
  const os_1 = require("os");
9
9
  const path_1 = require("path");
10
10
  const package_json_1 = require("nx/src/utils/package-json");
11
- const detectPort = require("detect-port");
12
11
  const client_1 = require("nx/src/daemon/client/client");
13
12
  const utils_1 = require("nx/src/tasks-runner/utils");
13
+ const detectPort = require('detect-port');
14
14
  // platform specific command name
15
15
  const pmCmd = (0, os_1.platform)() === 'win32' ? `npx.cmd` : 'npx';
16
16
  function getHttpServerArgs(options) {
@@ -3,3 +3,4 @@ import { Schema } from './schema';
3
3
  export declare function applicationGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export declare function applicationGeneratorInternal(host: Tree, schema: Schema): Promise<GeneratorCallback>;
5
5
  export default applicationGenerator;
6
+ //# sourceMappingURL=application.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/generators/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,iBAAiB,EASjB,IAAI,EAKL,MAAM,YAAY,CAAC;AAkBpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA2PlC,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAKpE;AAED,wBAAsB,4BAA4B,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAsV5E;AA0DD,eAAe,oBAAoB,CAAC"}
@@ -2,3 +2,4 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
2
2
  import { Schema } from './schema';
3
3
  export declare function webInitGenerator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export default webInitGenerator;
5
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAGjB,IAAI,EACL,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAkBlC,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAWhE;AAED,eAAe,gBAAgB,CAAC"}
@@ -7,3 +7,4 @@ interface WebStaticServeSchema {
7
7
  }
8
8
  export declare function webStaticServeGenerator(tree: Tree, options: WebStaticServeSchema): Promise<void>;
9
9
  export default webStaticServeGenerator;
10
+ //# sourceMappingURL=static-serve-configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-serve-configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/generators/static-serve/static-serve-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,IAAI,EAEV,MAAM,YAAY,CAAC;AAGpB,UAAU,oBAAoB;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AASD,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,oBAAoB,iBAI9B;AA4FD,eAAe,uBAAuB,CAAC"}
@@ -1 +1,2 @@
1
1
  export { WebpackNxBuildCoordinationPlugin } from '@nx/webpack/src/plugins/webpack-nx-build-coordination-plugin';
2
+ //# sourceMappingURL=webpack-nx-build-coordination-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webpack-nx-build-coordination-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/plugins/webpack-nx-build-coordination-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,8DAA8D,CAAC"}
package/src/utils/fs.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from '@nx/webpack/src/utils/fs';
2
+ //# sourceMappingURL=fs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/fs.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export declare function hasVitePlugin(tree: Tree): boolean;
3
+ //# sourceMappingURL=has-vite-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-vite-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/has-vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,YAAY,CAAC;AAE9C,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,WAOvC"}
@@ -1,2 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export declare function hasWebpackPlugin(tree: Tree): boolean;
3
+ //# sourceMappingURL=has-webpack-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-webpack-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/has-webpack-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,YAAY,CAAC;AAE9C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,WAO1C"}
@@ -1 +1,2 @@
1
1
  export * from '@nx/webpack/src/executors/webpack/lib/normalize-options';
2
+ //# sourceMappingURL=normalize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/normalize.ts"],"names":[],"mappings":"AAAA,cAAc,yDAAyD,CAAC"}
@@ -2,3 +2,4 @@ export declare const nxVersion: any;
2
2
  export declare const swcLoaderVersion = "0.1.15";
3
3
  export declare const typesNodeVersion = "18.16.9";
4
4
  export declare const tsLibVersion = "^2.3.0";
5
+ //# sourceMappingURL=versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,YAAY,WAAW,CAAC"}
@@ -3,3 +3,4 @@ export declare function waitForPortOpen(port: number, options?: {
3
3
  retries?: number;
4
4
  retryDelay?: number;
5
5
  }): Promise<void>;
6
+ //# sourceMappingURL=wait-for-port-open.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait-for-port-open.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/wait-for-port-open.ts"],"names":[],"mappings":"AAGA,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,GACrE,OAAO,CAAC,IAAI,CAAC,CA2Cf"}
package/README.md DELETED
@@ -1,68 +0,0 @@
1
- <p style="text-align: center;">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
- <img alt="Nx - Smart Repos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
- </picture>
6
- </p>
7
-
8
- <div style="text-align: center;">
9
-
10
- [![CircleCI](https://circleci.com/gh/nrwl/nx.svg?style=svg)](https://circleci.com/gh/nrwl/nx)
11
- [![License](https://img.shields.io/npm/l/@nx/workspace.svg?style=flat-square)]()
12
- [![NPM Version](https://badge.fury.io/js/nx.svg)](https://www.npmjs.com/package/nx)
13
- [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)]()
14
- [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
15
- [![Join the chat at https://gitter.im/nrwl-nx/community](https://badges.gitter.im/nrwl-nx/community.svg)](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
16
- [![Join us on the Official Nx Discord Server](https://img.shields.io/discord/1143497901675401286?label=discord)](https://go.nx.dev/community)
17
-
18
- </div>
19
-
20
-
21
- <hr>
22
-
23
- # Nx: Smart Repos · Fast Builds
24
-
25
- An AI-first build platform that connects everything from your editor to CI. Helping you deliver fast, without breaking things.
26
-
27
- This package is a [Web plugin for Nx](https://nx.dev/nx-api/web).
28
-
29
- ## Getting Started
30
-
31
- ### Creating an Nx Workspace
32
-
33
- **Using `npx`**
34
-
35
- ```bash
36
- npx create-nx-workspace
37
- ```
38
-
39
- **Using `npm init`**
40
-
41
- ```bash
42
- npm init nx-workspace
43
- ```
44
-
45
- **Using `yarn create`**
46
-
47
- ```bash
48
- yarn create nx-workspace
49
- ```
50
-
51
- ### Adding Nx to an Existing Repository
52
-
53
- Run:
54
-
55
- ```bash
56
- npx nx@latest init
57
- ```
58
-
59
- ## Documentation & Resources
60
-
61
- - [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
62
- - [Intro to Nx](https://nx.dev/getting-started/intro)
63
- - [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
64
- - [Blog Posts About Nx](https://nx.dev/blog)
65
-
66
- <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
67
- width="100%" alt="Nx - Smart Repos · Fast Builds"></a></p>
68
-