✨ 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!
-
Start local registry in root
nx local-registry
-
Build and publish to local registry
nx run-many --targets build nx run-many --targets publish
-
Create temporary project
cd tmp rm -rf ./frontend* npx nx g @dcat23/next-starter:preset macc-test-preset --directory tmp/frontend
npx nx generate @nx/plugin:generator --name preset --directory plugins/next-starter
npx nx generate @nx/plugin:generator --name preset --directory plugins/next-starter
Build task
npx nx build next-starter
Publish to NPM
npx nx publish feature -- --tag dev
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
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 »