0.0.8 • Published 5 years ago
nx-learnthis-nextjs v0.0.8
Next JS plugin for NX
An Nx plugin for developing NextJS applications with Tailwind CSS.
Usage
This plugin contains NextJs generators and executors
Generator
First of all, we have to create an NX workspace:
npx create-nx-workspaceAnd select the following options:
? Workspace name (e.g., org name) my-workspace-name
? What to create in the new workspace emptyInside our new workspace folder, install the plugin:
npm i nx-learnthis-nextjsAnd finally, run the project generator:
nx g nx-learnthis-nextjs/nextjs:nextjsExecutor
Coming soon...
Developing and running plugin locally
You may want to modify the plugin and try it out for yourself.
In that case, the first thing you should do is clone the nx-learnthis repository:
git clone https://github.com/Desarrollo-Util/nx-learnthis.git
OR
git clone git@github.com:Desarrollo-Util/nx-learnthis.gitInstall dependencies:
npm iGenerator
Build the generator:
nx build nextjsGo to the dist folder:
cd nx-learnthis/dist/packages/nextjsLink it to your local npm repository:
npm linkCreate an NX workspace:
npx create-nx-workspaceAnd select the following options:
? Workspace name (e.g., org name) my-workspace-name
? What to create in the new workspace emptyInside our new workspace folder, link the plugin:
npm link nx-learnthis-nextjsAnd finally, run the project generator:
nx g nx-learnthis-nextjs/nextjs:nextjsOrganization
This project is part of Desarrollo Util's organization.