nx-plus icon indicating copy to clipboard operation
nx-plus copied to clipboard

@nx-plus/docusaurus with nx@16

Open DerHerrGammler opened this issue 1 year ago • 3 comments

nx 16 is out and the update to nx 16 is blocked by the supported range of @nx-plus/docusaurus. Could you update the supported range of nx?

DerHerrGammler avatar May 03 '23 09:05 DerHerrGammler

Same problem here

arenier avatar May 04 '23 12:05 arenier

I dont now if this is also a valid way for you @arenier but I removed @nx-plus/docusaurus from my project and switched to directly call docusaurus in my configuration of the project.

I configured following package.json in the app project:

{
    "name": "blog",
    "scripts": {
        "serve": "docusaurus start --port 64003 --no-open",
        "build": "docusaurus build --out-dir ../../dist/apps/blog"
    }
}

works totally fine for me eventually also for you instead of using this package

DerHerrGammler avatar May 05 '23 16:05 DerHerrGammler

If using project.json, something like this should work too:

...
  "targets": {
    "build": {
      "executor": "nx:run-commands",
      "options": {
        "command": "docusaurus build --config docusaurus.config.js --out-dir dist",
        "cwd": "<path-to-your-app-package>"
      }
    },
    "serve": {
      "executor": "nx:run-commands",
      "options": {
        "command": "docusaurus start --port 3000 --config docusaurus.config.js",
        "cwd": "<path-to-your-app-package>"
      }
    }
...

wraeth-eth avatar Jun 27 '24 23:06 wraeth-eth