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

0.1.0 • Public • Published

Next JS plugin for NX

A 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-workspace

And select the following options:

? Workspace name (e.g., org name)       my-workspace-name
? What to create in the new workspace   empty

Inside our new workspace folder, install the plugin:

npm i nx-learnthis-nextjs

And finally, run the project generator:

nx g nx-learnthis-nextjs/nextjs:nextjs

Executor

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.git

Install dependencies:

npm i

Generator

Build the generator:

nx build nextjs

Go to the dist folder:

cd nx-learnthis/dist/packages/nextjs

Link it to your local npm repository:

npm link

Create an NX workspace:

npx create-nx-workspace

And select the following options:

? Workspace name (e.g., org name)       my-workspace-name
? What to create in the new workspace   empty

Inside our new workspace folder, link the plugin:

npm link nx-learnthis-nextjs

And finally, run the project generator:

nx g nx-learnthis-nextjs/nextjs:nextjs

Organization

This project is part of Desarrollo Util's organization.

Maintainers

@Josyto @pablocdev @SirReiva

Package Sidebar

Install

npm i @learnthis/nx

Weekly Downloads

9

Version

0.1.0

License

GPL-3.0

Unpacked Size

243 kB

Total Files

444

Last publish

Collaborators

  • reiva
  • desarrolloutil