@nrwl/nx-plugin 13.4.5 → 13.5.0-beta.2
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/README.md +48 -78
- package/package.json +6 -7
- package/src/utils/versions.js +1 -1
package/README.md
CHANGED
|
@@ -15,41 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
<hr>
|
|
17
17
|
|
|
18
|
-
#
|
|
19
|
-
|
|
20
|
-
## What is Nx?
|
|
21
|
-
|
|
22
|
-
🔎 **Smart, Fast and Extensible Build System**
|
|
23
|
-
|
|
24
|
-
Nx is a smart, fast and extensible build system. It comes with first class monorepo support and powerful integrations.
|
|
25
|
-
|
|
26
|
-
### Best-in-Class Support for Monorepos
|
|
27
|
-
|
|
28
|
-
<strong>Nx</strong> provides distributed graph-based task execution and computation caching.
|
|
29
|
-
|
|
30
|
-
<strong>Nx</strong> is smart. It analyzes your workspace and figures out what can be affected by every code change.
|
|
31
|
-
That's why Nx doesn't rebuild and retest everything on every commit--<strong>it only rebuilds what is necessary</strong>
|
|
32
|
-
.
|
|
33
|
-
|
|
34
|
-
<strong>Nx</strong> partitions commands into a graph of smaller tasks. Nx then runs those tasks in parallel,
|
|
35
|
-
and <strong>it can even distribute them across multiple machines without any configuration</strong>.
|
|
36
|
-
|
|
37
|
-
<strong>Nx also uses a distributed computation cache.</strong> If someone has already built or tested similar code, Nx
|
|
38
|
-
will use their results to speed up the command for everyone else.
|
|
39
|
-
|
|
40
|
-
### Holistic Dev Experience Powered by an Advanced CLI and Editor Plugins
|
|
41
|
-
|
|
42
|
-
<strong>Nx</strong> helps scale your development from one team building one application to many teams building multiple
|
|
43
|
-
frontend and backend applications all in the same workspace. <strong >When using Nx, developers have a holistic dev
|
|
44
|
-
experience powered by an advanced CLI</strong > (with editor plugins), capabilities for controlled code sharing and
|
|
45
|
-
consistent code generation.
|
|
46
|
-
|
|
47
|
-
### Rich Plugin Ecosystem
|
|
48
|
-
|
|
49
|
-
<strong>Nx</strong> is an open platform with plugins for many modern tools and frameworks. It has support for
|
|
50
|
-
TypeScript, React, Angular, Cypress, Jest, Prettier, Nest.js, Next.js, Storybook, Ionic among others. With Nx, you get a
|
|
51
|
-
consistent dev experience regardless of the tools used.
|
|
18
|
+
# Nx: Smart, Fast and Extensible Build System
|
|
52
19
|
|
|
20
|
+
Nx is a next generation build system with first class monorepo support and powerful integrations.
|
|
53
21
|
|
|
54
22
|
## What is It?
|
|
55
23
|
|
|
@@ -57,63 +25,65 @@ It's an Nx plugin used to build other Nx plugins.
|
|
|
57
25
|
|
|
58
26
|
Check out the list of community plugins and the documentation on how to create one using `create-nx-plugin` here: [https://nx.dev/community](https://nx.dev/community)
|
|
59
27
|
|
|
60
|
-
##
|
|
28
|
+
## Getting Started
|
|
61
29
|
|
|
62
|
-
|
|
30
|
+
### Creating an Nx Workspace
|
|
63
31
|
|
|
64
|
-
|
|
65
|
-
- [Intro into Nx](https://nx.dev/getting-started/intro)
|
|
66
|
-
- [Interactive Tutorial with Videos](https://nx.dev/tutorial/01-create-application)
|
|
32
|
+
**Using `npx`**
|
|
67
33
|
|
|
68
|
-
|
|
34
|
+
```bash
|
|
35
|
+
npx create-nx-workspace
|
|
36
|
+
```
|
|
69
37
|
|
|
70
|
-
|
|
71
|
-
- [Scale your Node Development with Nx](https://www.youtube.com/watch?v=iIh5h_G52kI)
|
|
72
|
-
- [Modern Angular with Nx Dev Tools](https://www.youtube.com/watch?v=cXOkmOy-8dk)
|
|
38
|
+
**Using `npm init`**
|
|
73
39
|
|
|
74
|
-
|
|
40
|
+
```bash
|
|
41
|
+
npm init nx-workspace
|
|
42
|
+
```
|
|
75
43
|
|
|
76
|
-
|
|
77
|
-
<tr>
|
|
78
|
-
<td><strong>Scale React Development with Nx</strong></td>
|
|
79
|
-
<td><strong>Nx Workspaces</strong></td>
|
|
80
|
-
<td><strong>Advanced Nx Workspaces</strong></td>
|
|
81
|
-
</tr>
|
|
82
|
-
<tr>
|
|
83
|
-
<td>
|
|
84
|
-
<a href="https://egghead.io/playlists/scale-react-development-with-nx-4038" target="_blank">
|
|
85
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/EGH_ScalingReactNx.png" height="150px" alt="Nx - Scale React Development with Nx video course"></p>
|
|
86
|
-
</a>
|
|
87
|
-
</td>
|
|
88
|
-
<td>
|
|
89
|
-
<a href="https://www.youtube.com/watch?v=2mYLe9Kp9VM&list=PLakNactNC1dH38AfqmwabvOszDmKriGco" target="_blank">
|
|
90
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-workspace-course.png" width="350" alt="Nx Workspaces video course"></p>
|
|
91
|
-
</a>
|
|
92
|
-
</td>
|
|
93
|
-
<td>
|
|
94
|
-
<a href="https://nxplaybook.com/p/advanced-nx-workspaces" target="_blank">
|
|
95
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/advanced-nx-workspace-course.png" width="350" alt="Nx Advanced Workspaces video course"></p>
|
|
96
|
-
</a>
|
|
97
|
-
</td>
|
|
98
|
-
</tr>
|
|
99
|
-
</table>
|
|
44
|
+
**Using `yarn create`**
|
|
100
45
|
|
|
101
|
-
|
|
46
|
+
```bash
|
|
47
|
+
yarn create nx-workspace
|
|
48
|
+
```
|
|
102
49
|
|
|
103
|
-
-
|
|
50
|
+
The `create-nx-workspace` command will ask you to select a preset, which will configure some plugins and create your applications to help you get started.
|
|
104
51
|
|
|
105
|
-
|
|
52
|
+
```
|
|
53
|
+
? What to create in the new workspace (Use arrow keys)
|
|
54
|
+
❯ apps [an empty workspace with no plugins with a layout that works best for building apps]
|
|
55
|
+
core [an empty workspace with no plugins set up to publish npm packages (similar to yarn workspaces)]
|
|
56
|
+
ts [an empty workspace with the JS/TS plugin preinstalled]
|
|
57
|
+
react [a workspace with a single React application]
|
|
58
|
+
angular [a workspace with a single Angular application]
|
|
59
|
+
next.js [a workspace with a single Next.js application]
|
|
60
|
+
gatsby [a workspace with a single Gatsby application]
|
|
61
|
+
nest [a workspace with a single Nest application]
|
|
62
|
+
express [a workspace with a single Express application]
|
|
63
|
+
web components [a workspace with a single app built using web components]
|
|
64
|
+
react-native [a workspace with a single React Native application]
|
|
65
|
+
react-express [a workspace with a full stack application (React + Express)]
|
|
66
|
+
```
|
|
106
67
|
|
|
107
|
-
|
|
68
|
+
Select the preset that works best for you
|
|
108
69
|
|
|
109
|
-
|
|
70
|
+
### Adding Nx to an Existing Monorepo
|
|
71
|
+
|
|
72
|
+
Run:
|
|
110
73
|
|
|
111
|
-
|
|
74
|
+
```bash
|
|
75
|
+
npx add-nx-to-monorepo@latest
|
|
76
|
+
```
|
|
112
77
|
|
|
113
|
-
|
|
78
|
+
### Documentation & Resources
|
|
114
79
|
|
|
115
|
-
|
|
80
|
+
A few links to help you get started:
|
|
81
|
+
|
|
82
|
+
- [Nx.Dev: Documentation, Guides, Interactive Tutorials](https://nx.dev)
|
|
83
|
+
- [Tutorial: Adding Nx to an Existing Monorepo](https://nx.dev/migration/adding-to-monorepo)
|
|
84
|
+
- [Official Nx YouTube Channel](https://www.youtube.com/c/Nrwl_io)
|
|
85
|
+
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
116
86
|
|
|
117
|
-
-
|
|
118
|
-
-
|
|
87
|
+
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
88
|
+
width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
|
|
119
89
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/nx-plugin",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0-beta.2",
|
|
4
4
|
"description": "Plugin for creating plugins for Nx :)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,14 +27,13 @@
|
|
|
27
27
|
"migrations": "./migrations.json"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@nrwl/devkit": "13.
|
|
31
|
-
"@nrwl/jest": "13.
|
|
32
|
-
"@nrwl/linter": "13.
|
|
33
|
-
"@nrwl/node": "13.
|
|
30
|
+
"@nrwl/devkit": "13.5.0-beta.2",
|
|
31
|
+
"@nrwl/jest": "13.5.0-beta.2",
|
|
32
|
+
"@nrwl/linter": "13.5.0-beta.2",
|
|
33
|
+
"@nrwl/node": "13.5.0-beta.2",
|
|
34
34
|
"fs-extra": "^9.1.0",
|
|
35
35
|
"rxjs": "^6.5.4",
|
|
36
|
-
"tslib": "^2.3.0"
|
|
37
|
-
"yargs": "15.4.1"
|
|
36
|
+
"tslib": "^2.3.0"
|
|
38
37
|
},
|
|
39
38
|
"typings": "./index.d.ts"
|
|
40
39
|
}
|
package/src/utils/versions.js
CHANGED