Skip to content

Scaffolding plugins for generating applications and components quickly

Notifications You must be signed in to change notification settings

dcat23/nx-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DCat23 Workspace

✨ Your new, shiny Nx workspace is almost ready ✨.

Run npx nx graph to visually explore what got created. Now, let's get you up to speed!

Usage

  1. Start local registry in root

    nx local-registry
  2. Build and publish to local registry

    nx run-many --targets build
    nx run-many --targets publish
  3. Create temporary project

    cd tmp
    rm -rf ./frontend*
    npx nx g @dcat23/next-starter:preset macc-test-preset --directory tmp/frontend  

Creating a Plugin

npx nx generate @nx/plugin:generator --name preset --directory plugins/next-starter

Creating a Preset Generator

npx nx generate @nx/plugin:generator --name preset --directory plugins/next-starter

Run tasks

Build task

npx nx build next-starter

Publish to NPM

npx nx publish feature -- --tag dev

Helpful commands

Remove test packages

rm -rf ./tmp/* 

Reset npx cache

rm -rf ~/.npm/_npx

Remove node modules

rm -rf node_modules

Reset pnpm store

pnpm store prune

Add Yargs

pnpm add -D @types/yargs yargs 

Finish your CI setup

Click here to finish setting up your workspace!

You can use npx nx list to get a list of installed plugins.

Then, run npx nx list <plugin-name> to learn about more specific capabilities of a particular plugin.

Alternatively, install Nx Console to browse plugins and generators in your IDE.

Learn more about Nx plugins » | Browse the plugin registry »

Learn more about Nx on CI

About

Scaffolding plugins for generating applications and components quickly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published