GenesisX generator for NextJs based module federated apps using turbo, run npx @genesisx/nextjs-mfe
npm install @genesisx/nextjs-mfeThis PSInnersource accelerator allows a developer to quickly setup a Nextjs based module federated application setup, using turbo as monorepo workspace.
Make sure you use nodejs >= 18.17.0
1. In a blank directory , run below command to start using it
``npx @genesisx/nextjs-mfe`
2. It will ask various inputs like workspace name, container application name, remote app(s) name
3. Once setup, go inside the workspace directory (cd workspace) and build the project
` npm run build `
4. Serve the application as :
`npm run dev `
5. You can access the application on : http://localhost:3000
https://pscode.lioncloud.net/psinnersource/xt/micro-frontend/genesisx/nextjs-accelerator
#### Publish to NPM
Step 1 : Build the package npm run build
Step 2 : Go to dist directory
Step 3 : Run below command
``
npm publish --access public
NPM Repo : https://www.npmjs.com/package/@genesisx/nextjs-mfe
Run all spec files contained within the workspace:
`npm run test`
Run specific test files:
`npm run test `
Run all tests associated with a name or key word:
`npm run ``
- A major change through restructuring of the codebase to increase readibility.
- Components of the plopfile generator broken down into functions, actions and prompts.
- The plopfile has been reduced in length and all components are imported
here for execution