@nx/web 21.3.0 → 21.4.0-beta.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.
- package/babel.d.ts +1 -0
- package/babel.d.ts.map +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -0
- package/package.json +7 -4
- package/project.json +54 -0
- package/src/executors/file-server/compat.d.ts +1 -0
- package/src/executors/file-server/compat.d.ts.map +1 -0
- package/src/executors/file-server/file-server.impl.d.ts +1 -0
- package/src/executors/file-server/file-server.impl.d.ts.map +1 -0
- package/src/executors/file-server/file-server.impl.js +1 -1
- package/src/generators/application/application.d.ts +1 -0
- package/src/generators/application/application.d.ts.map +1 -0
- package/src/generators/init/init.d.ts +1 -0
- package/src/generators/init/init.d.ts.map +1 -0
- package/src/generators/static-serve/static-serve-configuration.d.ts +1 -0
- package/src/generators/static-serve/static-serve-configuration.d.ts.map +1 -0
- package/src/plugins/webpack-nx-build-coordination-plugin.d.ts +1 -0
- package/src/plugins/webpack-nx-build-coordination-plugin.d.ts.map +1 -0
- package/src/utils/fs.d.ts +1 -0
- package/src/utils/fs.d.ts.map +1 -0
- package/src/utils/has-vite-plugin.d.ts +1 -0
- package/src/utils/has-vite-plugin.d.ts.map +1 -0
- package/src/utils/has-webpack-plugin.d.ts +1 -0
- package/src/utils/has-webpack-plugin.d.ts.map +1 -0
- package/src/utils/normalize.d.ts +1 -0
- package/src/utils/normalize.d.ts.map +1 -0
- package/src/utils/versions.d.ts +1 -0
- package/src/utils/versions.d.ts.map +1 -0
- package/src/utils/wait-for-port-open.d.ts +1 -0
- package/src/utils/wait-for-port-open.d.ts.map +1 -0
- package/README.md +0 -68
package/babel.d.ts
CHANGED
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
|
+
"version": "21.4.0-beta.0",
|
|
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.
|
|
39
|
-
"@nx/js": "21.
|
|
38
|
+
"@nx/devkit": "21.4.0-beta.0",
|
|
39
|
+
"@nx/js": "21.4.0-beta.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"nx": "21.4.0-beta.0"
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/file-server/compat.ts"],"names":[],"mappings":";AAGA,wBAA6C"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/fs.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
|
@@ -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"}
|
|
@@ -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"}
|
package/src/utils/normalize.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../packages/web/src/utils/normalize.ts"],"names":[],"mappings":"AAAA,cAAc,yDAAyD,CAAC"}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -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"}
|
|
@@ -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
|
-
[](https://circleci.com/gh/nrwl/nx)
|
|
11
|
-
[]()
|
|
12
|
-
[](https://www.npmjs.com/package/nx)
|
|
13
|
-
[]()
|
|
14
|
-
[](http://commitizen.github.io/cz-cli/)
|
|
15
|
-
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
16
|
-
[](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
|
-
|