create-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
CHANGED
|
@@ -17,39 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
# `> npx create-nx-plugin`
|
|
19
19
|
|
|
20
|
-
|
|
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.
|
|
52
|
-
|
|
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
|
|
|
@@ -59,63 +27,15 @@ It's a command to create an Nx workspace to develop an Nx plugin.
|
|
|
59
27
|
|
|
60
28
|
- 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)
|
|
61
29
|
|
|
62
|
-
|
|
30
|
+
### Documentation & Resources
|
|
63
31
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- [Nx Documentation and Guides](https://nx.dev)
|
|
67
|
-
- [Intro into Nx](https://nx.dev/getting-started/intro)
|
|
68
|
-
- [Interactive Tutorial with Videos](https://nx.dev/tutorial/01-create-application)
|
|
69
|
-
|
|
70
|
-
### Quick Start Videos
|
|
71
|
-
|
|
72
|
-
- [Scale Your React Development with Nx](https://www.youtube.com/watch?v=sNz-4PUM0k8)
|
|
73
|
-
- [Scale your Node Development with Nx](https://www.youtube.com/watch?v=iIh5h_G52kI)
|
|
74
|
-
- [Modern Angular with Nx Dev Tools](https://www.youtube.com/watch?v=cXOkmOy-8dk)
|
|
75
|
-
|
|
76
|
-
### Courses
|
|
77
|
-
|
|
78
|
-
<table>
|
|
79
|
-
<tr>
|
|
80
|
-
<td><strong>Scale React Development with Nx</strong></td>
|
|
81
|
-
<td><strong>Nx Workspaces</strong></td>
|
|
82
|
-
<td><strong>Advanced Nx Workspaces</strong></td>
|
|
83
|
-
</tr>
|
|
84
|
-
<tr>
|
|
85
|
-
<td>
|
|
86
|
-
<a href="https://egghead.io/playlists/scale-react-development-with-nx-4038" target="_blank">
|
|
87
|
-
<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>
|
|
88
|
-
</a>
|
|
89
|
-
</td>
|
|
90
|
-
<td>
|
|
91
|
-
<a href="https://www.youtube.com/watch?v=2mYLe9Kp9VM&list=PLakNactNC1dH38AfqmwabvOszDmKriGco" target="_blank">
|
|
92
|
-
<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>
|
|
93
|
-
</a>
|
|
94
|
-
</td>
|
|
95
|
-
<td>
|
|
96
|
-
<a href="https://nxplaybook.com/p/advanced-nx-workspaces" target="_blank">
|
|
97
|
-
<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>
|
|
98
|
-
</a>
|
|
99
|
-
</td>
|
|
100
|
-
</tr>
|
|
101
|
-
</table>
|
|
102
|
-
|
|
103
|
-
### Videos, Blogs, Books, Examples
|
|
104
|
-
|
|
105
|
-
- [Nx Dev Tools for Monorepos, In-Depth Explainer (React)](https://www.youtube.com/watch?v=jCf92IyR-GE)
|
|
106
|
-
|
|
107
|
-
- [Nx Dev Tools for Monorepos, In-Depth Explainer (Angular)](https://youtu.be/h5FIGDn5YM0)
|
|
108
|
-
|
|
109
|
-
- [Youtube Channel with Nx-Related Videos](https://www.youtube.com/playlist?list=PLakNactNC1dHHWx4JIORwfnEajRv6FG5m)
|
|
32
|
+
A few links to help you get started:
|
|
110
33
|
|
|
34
|
+
- [Nx.Dev: Documentation, Guides, Interactive Tutorials](https://nx.dev)
|
|
35
|
+
- [Tutorial: Adding Nx to an Existing Monorepo](https://nx.dev/migration/adding-to-monorepo)
|
|
36
|
+
- [Official Nx YouTube Channel](https://www.youtube.com/c/Nrwl_io)
|
|
111
37
|
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
112
38
|
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
- [Nx Examples Repo](https://github.com/nrwl/nx-examples)
|
|
116
|
-
|
|
117
|
-
# Engage with the Core Team and the Community
|
|
118
|
-
|
|
119
|
-
- [The Nx Show Playlist on YouTube](https://www.youtube.com/playlist?list=PLakNactNC1dE8KLQ5zd3fQwu_yQHjTmR5). It's a regular YouTube stream where we talk all things Nx. Join the stream, ask questions, etc.
|
|
120
|
-
- [Follow Nx on Twitter](https://twitter.com/NxDevTools)
|
|
39
|
+
<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"
|
|
40
|
+
width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
|
|
121
41
|
|
package/bin/create-nx-plugin.js
CHANGED
|
@@ -14,8 +14,8 @@ const detect_invoked_package_manager_1 = require("./detect-invoked-package-manag
|
|
|
14
14
|
const enquirer = require("enquirer");
|
|
15
15
|
const yargsParser = require("yargs-parser");
|
|
16
16
|
const tsVersion = '~4.4.3';
|
|
17
|
-
const cliVersion = '13.
|
|
18
|
-
const nxVersion = '13.
|
|
17
|
+
const cliVersion = '13.5.0-beta.2';
|
|
18
|
+
const nxVersion = '13.5.0-beta.2';
|
|
19
19
|
const prettierVersion = '2.3.2';
|
|
20
20
|
const parsedArgs = yargsParser(process.argv, {
|
|
21
21
|
string: ['pluginName', 'packageManager', 'importPath'],
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
declare const packageManagerList: readonly ["pnpm", "yarn", "npm"];
|
|
2
|
+
export declare type PackageManager = typeof packageManagerList[number];
|
|
2
3
|
/**
|
|
3
4
|
* Detects which package manager was used to invoke create-nx-{plugin|workspace} command
|
|
4
5
|
* based on the main Module process that invokes the command
|
|
@@ -9,3 +10,4 @@ export declare type PackageManager = 'yarn' | 'pnpm' | 'npm';
|
|
|
9
10
|
* Default to 'npm'
|
|
10
11
|
*/
|
|
11
12
|
export declare function detectInvokedPackageManager(): PackageManager;
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.detectInvokedPackageManager = void 0;
|
|
4
|
+
const packageManagerList = ['pnpm', 'yarn', 'npm'];
|
|
4
5
|
/**
|
|
5
6
|
* Detects which package manager was used to invoke create-nx-{plugin|workspace} command
|
|
6
7
|
* based on the main Module process that invokes the command
|
|
@@ -18,7 +19,7 @@ function detectInvokedPackageManager() {
|
|
|
18
19
|
if (!invoker) {
|
|
19
20
|
return detectedPackageManager;
|
|
20
21
|
}
|
|
21
|
-
for (const pkgManager of
|
|
22
|
+
for (const pkgManager of packageManagerList) {
|
|
22
23
|
if (invoker.path.includes(pkgManager)) {
|
|
23
24
|
detectedPackageManager = pkgManager;
|
|
24
25
|
break;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect-invoked-package-manager.js","sourceRoot":"","sources":["../../../../packages/create-nx-plugin/bin/detect-invoked-package-manager.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"detect-invoked-package-manager.js","sourceRoot":"","sources":["../../../../packages/create-nx-plugin/bin/detect-invoked-package-manager.ts"],"names":[],"mappings":";;;AAAA,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC;AAI5D;;;;;;;;GAQG;AACH,SAAgB,2BAA2B;IACzC,IAAI,sBAAsB,GAAmB,KAAK,CAAC;IACnD,sEAAsE;IACtE,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IAEtD,mBAAmB;IACnB,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,sBAAsB,CAAC;KAC/B;IAED,KAAK,MAAM,UAAU,IAAI,kBAAkB,EAAE;QAC3C,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;YACrC,sBAAsB,GAAG,UAAU,CAAC;YACpC,MAAM;SACP;KACF;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC;AAlBD,kEAkBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nx-plugin",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0-beta.2",
|
|
4
4
|
"description": "Smart, Fast and Extensible Build System",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,11 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://nx.dev",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nrwl/workspace": "13.
|
|
31
|
+
"@nrwl/workspace": "13.5.0-beta.2",
|
|
32
32
|
"enquirer": "~2.3.6",
|
|
33
33
|
"fs-extra": "^9.1.0",
|
|
34
34
|
"tmp": "~0.2.1",
|
|
35
|
-
"yargs": "15.4.1",
|
|
36
35
|
"yargs-parser": "20.0.0"
|
|
37
36
|
},
|
|
38
37
|
"main": "./bin/create-nx-plugin.js",
|