@nx/plugin 0.0.0-pr-3-5e7ccde → 0.0.0-pr-29464-c4b160c
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/plugin",
|
|
3
|
-
"version": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-29464-c4b160c",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
|
|
6
6
|
"repository": {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"tslib": "^2.3.0",
|
|
31
|
-
"@nx/devkit": "0.0.0-pr-
|
|
32
|
-
"@nx/jest": "0.0.0-pr-
|
|
33
|
-
"@nx/js": "0.0.0-pr-
|
|
34
|
-
"@nx/eslint": "0.0.0-pr-
|
|
31
|
+
"@nx/devkit": "0.0.0-pr-29464-c4b160c",
|
|
32
|
+
"@nx/jest": "0.0.0-pr-29464-c4b160c",
|
|
33
|
+
"@nx/js": "0.0.0-pr-29464-c4b160c",
|
|
34
|
+
"@nx/eslint": "0.0.0-pr-29464-c4b160c"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { createWorkspace } from 'create-nx-workspace';
|
|
4
|
-
|
|
5
|
-
async function main() {
|
|
6
|
-
const name = process.argv[2]; // TODO: use libraries like yargs or enquirer to set your workspace name
|
|
7
|
-
if (!name) {
|
|
8
|
-
throw new Error('Please provide a name for the workspace');
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
console.log(`Creating the workspace: ${name}`);
|
|
12
|
-
|
|
13
|
-
// This assumes "<%= preset %>" and "<%= projectName %>" are at the same version
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires<% if (isTsSolutionSetup) { %>
|
|
15
|
-
const presetVersion = require('../../package.json').version;<% } else { %>
|
|
16
|
-
const presetVersion = require('../package.json').version;<% } %>
|
|
17
|
-
|
|
18
|
-
// TODO: update below to customize the workspace
|
|
19
|
-
const { directory } = await createWorkspace(
|
|
20
|
-
`<%= preset %>@${presetVersion}`,
|
|
21
|
-
{
|
|
22
|
-
name,
|
|
23
|
-
nxCloud: 'skip',
|
|
24
|
-
packageManager: 'npm',
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
console.log(`Successfully created the workspace: ${directory}.`);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
main();
|