docs(misc): update overview of nx console on main page and integrate with editors page (#15238)

Co-authored-by: Ben <3447705+bcabanes@users.noreply.github.com>
This commit is contained in:
MaxKless 2023-02-27 17:01:55 +01:00 committed by GitHub
parent 3195fe06e4
commit c153918b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 81 additions and 51 deletions

View File

@ -4,26 +4,18 @@ Nx Console is the UI for Nx. It works for any generator or any architect command
## Download
### VSCode Plugin: Nx Console
### Official Integrations
If you are using [VSCode](https://code.visualstudio.com/), you can install the [Nx Console VSCode Plugin](https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console) from Marketplace. The Nx Console VSCode Plugin is **built and maintained by the Nx team**.
If you are using [VSCode](https://code.visualstudio.com/) or a [JetBrains IDE](https://www.jetbrains.com/) you can install Nx Console from their respective marketplaces. Nx Console for VSCode and JetBrains is **built and maintained by the Nx team**.
{% install-nx-console /%}
- [Install from the VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console)
- [Install from the JetBrains Marketplace](https://plugins.jetbrains.com/plugin/21060-nx-console)
- [Contribute on GitHub](https://github.com/nrwl/nx-console)
![Nx Console screenshot](/shared/images/nx-console/nx-console-screenshot.webp)
### WebStorm
If you are using [WebStorm](https://www.jetbrains.com/webstorm/), you can install one of the available plugins:
- [nx-webstorm](https://plugins.jetbrains.com/plugin/15000-nx-webstorm)
- [Nx Console Idea](https://plugins.jetbrains.com/plugin/15101-nx-console-idea)
These plugins are **NOT** built or maintained by the Nx team. They are maintained by independent community contributors.
### Neovim
If you are using [Neovim](https://neovim.io/), you can install [Equilibris/nx.nvim](https://github.com/Equilibris/nx.nvim) with your favorite package manager.

View File

@ -38,9 +38,9 @@ export function Header(): JSX.Element {
href: '/recipes',
},
{
name: 'VSCode integration',
name: 'Nx Console',
description:
'The official native VSCode extension bringing Nx to your editor.',
'The official VSCode & JetBrains plugin bringing Nx to your editor.',
href: '/core-features/integrate-with-editors#vscode',
},
{

View File

@ -42,18 +42,19 @@ export function ExtensibleAndIntegrated(): JSX.Element {
VSCode
</Link>{' '}
,{' '}
<Link
href="/core-features/integrate-with-editors"
className="font-medium text-blue-500 dark:text-sky-500"
title="Install JetBrains' native plugin for Nx"
>
JetBrains
</Link>{' '}
and{' '}
<Link
href="/core-features/integrate-with-editors#neovim"
className="font-medium text-blue-500 dark:text-sky-500"
>
Neovim
</Link>{' '}
and{' '}
<Link
href="/core-features/integrate-with-editors#webstorm"
className="font-medium text-blue-500 dark:text-sky-500"
>
Webstorm
</Link>
. Generating a new library, running e2e tests, building your app -
everything just a click away.

View File

@ -9,7 +9,7 @@ import Image from 'next/image';
import Link from 'next/link';
import { transition, variants } from './motion.helpers';
export function VscodeIntegrationTab(): JSX.Element {
export function IdeIntegrationTab(): JSX.Element {
const features = [
{
connectionWidth: 'w-96',

View File

@ -1,10 +1,10 @@
import { GitHubIntegrationTab } from './github-intergration-tab';
import { GraphTab } from './graph-tab';
import { PluginsTab } from './plugins-tab';
import { VscodeIntegrationTab } from './vscode-integration-tab';
import { IdeIntegrationTab } from './ide-integration-tab';
export const tabs = [
{ title: 'VSCode support', panel: VscodeIntegrationTab },
{ title: 'IDE integrations', panel: IdeIntegrationTab },
{ title: 'Interactive graph', panel: GraphTab },
{ title: 'GitHub integration', panel: GitHubIntegrationTab },
{ title: 'Plugins', panel: PluginsTab },

View File

@ -1,37 +1,74 @@
import { ChevronRightIcon } from '@heroicons/react/24/outline';
export const InstallNxConsole = () => (
<div className="not-prose group relative my-12 mx-auto flex w-full max-w-md items-center gap-3 overflow-hidden rounded-lg bg-slate-50 shadow-md transition hover:text-white dark:bg-slate-800/60">
<div className="absolute inset-0 z-0 w-2 bg-blue-500 transition-all duration-150 group-hover:w-full dark:bg-sky-500"></div>
<div className="w-2 bg-blue-500 dark:bg-sky-500"></div>
<div className="my-12 grid grid-cols-1 gap-6 lg:grid-cols-2 lg:gap-16">
{/* VSCode */}
<div className="not-prose group relative mx-auto flex w-full max-w-md items-center gap-4 overflow-hidden rounded-lg bg-slate-50 shadow-md transition hover:text-white dark:bg-slate-800/60">
<div className="absolute inset-0 z-0 w-2 bg-blue-500 transition-all duration-150 group-hover:w-full dark:bg-sky-500" />
<div className="w-2 bg-blue-500 dark:bg-sky-500" />
<div className="z-10 flex flex-grow items-center py-3">
<svg
role="img"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
className="h-10 w-10 rounded-full object-cover"
>
<title>Visual Studio Code</title>
<path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
</svg>
<div className="z-10 flex flex-grow items-center gap-4 py-3">
<svg
role="img"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
className="h-10 w-10 flex-shrink-0 rounded-full object-cover"
>
<title>Visual Studio Code</title>
<path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
</svg>
<div className="mx-3">
<p>
Install Nx Console
<a
href="https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console"
target="_blank"
rel="noreferrer"
className="block text-sm font-medium opacity-80"
>
<span className="absolute inset-0" aria-hidden="true"></span>
The official VSCode plugin for Nx.
</a>
</p>
<div>
<p>
Install Nx Console for VSCode
<a
href="https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console"
target="_blank"
rel="noreferrer"
className="block text-xs font-medium opacity-80"
>
<span className="absolute inset-0" aria-hidden="true"></span>
The official VSCode plugin for Nx.
</a>
</p>
</div>
</div>
<ChevronRightIcon className="mr-4 h-6 w-6 flex-shrink-0 transition-all group-hover:translate-x-3" />
</div>
{/* JetBrains */}
<div className="not-prose group relative mx-auto flex w-full max-w-md items-center gap-4 overflow-hidden rounded-lg bg-slate-50 shadow-md transition hover:text-white dark:bg-slate-800/60">
<div className="absolute inset-0 z-0 w-2 bg-blue-500 transition-all duration-150 group-hover:w-full dark:bg-sky-500" />
<div className="w-2 bg-blue-500 dark:bg-sky-500" />
<div className="z-10 flex flex-grow items-center gap-4 py-3">
<svg
role="img"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
className="h-10 w-10 flex-shrink-0 rounded-sm object-cover"
>
<title>IntelliJ IDEA</title>
<path d="M0 0v24h24V0zm3.723 3.111h5v1.834h-1.39v6.277h1.39v1.834h-5v-1.834h1.444V4.945H3.723zm11.055 0H17v6.5c0 .612-.055 1.111-.222 1.556-.167.444-.39.777-.723 1.11-.277.279-.666.557-1.11.668a3.933 3.933 0 0 1-1.445.278c-.778 0-1.444-.167-1.944-.445a4.81 4.81 0 0 1-1.279-1.056l1.39-1.555c.277.334.555.555.833.722.277.167.611.278.945.278.389 0 .721-.111 1-.389.221-.278.333-.667.333-1.278zM2.222 19.5h9V21h-9z" />
</svg>
<div>
<p>
Install Nx Console for JetBrains
<a
href="https://plugins.jetbrains.com/plugin/21060-nx-console"
target="_blank"
rel="noreferrer"
className="block text-xs font-medium opacity-80"
>
<span className="absolute inset-0" aria-hidden="true"></span>
Available for WebStorm, IntelliJ IDEA Ultimate and more!
</a>
</p>
</div>
</div>
<ChevronRightIcon className="mr-4 h-6 w-6 flex-shrink-0 transition-all group-hover:translate-x-3" />
</div>
<ChevronRightIcon className="mr-4 h-6 w-6 transition-all group-hover:translate-x-3" />
</div>
);