@arkahna/nx-workspace
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

NX Workspace

Arkahna's workspace plugin to help configure NX repositories meeting our dev practices

Installation

pnpm add @arkahna/nx-workspace

Executors

run-command

The run-command executor in NX supports running multiple commands in parallel etc, but it doesn't support interactive CLI tools.

This executor can be used to execute a single command which required interactivity

Usage

"serve": {
    "executor": "@arkahna/nx-workspace:run-command",
    "options": {
        "command": "dotnet watch msbuild /t:RunFunctions",
        "cwd": "apps/my-app"
    }
},

Generators

setup-pnpm

Configures the PNPM package manager for this NX repo

Usage

npx nx generate @arkahna/nx-workspace:setup-pnpm

setup-changesets

Changesets is a NPM CLI tool which enables you to create and manage your changelogs.

Usage

npx nx generate @arkahna/nx-workspace:setup-changesets

setup-js

Configures TypeScript for use in this mono repo, WARNING this will setup recommended defaults, potentially overriding some custom setup if this isn't a new repository

Includes:

  • prettier
  • vscode settings
  • vscode recommended extensions
  • vscode tasks / launch settings
  • vitest for testing
  • eslint
  • recommended tsconfig settings

Readme

Keywords

none

Package Sidebar

Install

npm i @arkahna/nx-workspace

Weekly Downloads

1

Version

0.3.1

License

none

Unpacked Size

47.8 kB

Total Files

49

Last publish

Collaborators

  • jakeginnivan
  • leigharkahna