1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.listCorePlugins = exports.fetchCorePlugins = void 0;
|
4 | const chalk = require("chalk");
|
5 | const output_1 = require("../output");
|
6 | function fetchCorePlugins() {
|
7 | const corePlugins = [
|
8 | {
|
9 | name: '@nrwl/angular',
|
10 | capabilities: 'generators',
|
11 | },
|
12 | {
|
13 | name: '@nrwl/cypress',
|
14 | capabilities: 'executors,generators',
|
15 | },
|
16 | {
|
17 | name: '@nrwl/express',
|
18 | capabilities: 'executors,generators',
|
19 | },
|
20 | {
|
21 | name: '@nrwl/jest',
|
22 | capabilities: 'executors,generators',
|
23 | },
|
24 | {
|
25 | name: '@nrwl/linter',
|
26 | capabilities: 'executors',
|
27 | },
|
28 | {
|
29 | name: '@nrwl/nest',
|
30 | capabilities: 'executors,generators',
|
31 | },
|
32 | {
|
33 | name: '@nrwl/next',
|
34 | capabilities: 'executors,generators',
|
35 | },
|
36 | {
|
37 | name: '@nrwl/node',
|
38 | capabilities: 'executors,generators',
|
39 | },
|
40 | {
|
41 | name: '@nrwl/nx-plugin',
|
42 | capabilities: 'executors,generators',
|
43 | },
|
44 | {
|
45 | name: '@nrwl/react',
|
46 | capabilities: 'executors,generators',
|
47 | },
|
48 | {
|
49 | name: '@nrwl/js',
|
50 | capabilities: 'executors,generators',
|
51 | },
|
52 | {
|
53 | name: '@nrwl/storybook',
|
54 | capabilities: 'executors,generators',
|
55 | },
|
56 | {
|
57 | name: '@nrwl/web',
|
58 | capabilities: 'executors,generators',
|
59 | },
|
60 | {
|
61 | name: '@nrwl/workspace',
|
62 | capabilities: 'executors,generators',
|
63 | },
|
64 | ];
|
65 | return corePlugins;
|
66 | }
|
67 | exports.fetchCorePlugins = fetchCorePlugins;
|
68 | function listCorePlugins(installedPlugins, corePlugins) {
|
69 | const alsoAvailable = corePlugins.filter((p) => !installedPlugins.has(p.name));
|
70 | if (alsoAvailable.length) {
|
71 | output_1.output.log({
|
72 | title: `Also available:`,
|
73 | bodyLines: alsoAvailable.map((p) => {
|
74 | return `${chalk.bold(p.name)} (${p.capabilities})`;
|
75 | }),
|
76 | });
|
77 | }
|
78 | }
|
79 | exports.listCorePlugins = listCorePlugins;
|
80 |
|
\ | No newline at end of file |