Skip to content

Commit

Permalink
build(nx): teach nx about website and markdown files
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw committed Aug 10, 2023
1 parent c19f2ba commit b5ba992
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions docusaurus/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,19 @@
},
"engines": {
"node": ">=16"
},
"nx": {
"targets": {
"build": {
"inputs": [
"{projectRoot}/**/*",
"{workspaceRoot}/docusaurus/docs/*.@(md|mdx|json)",
"{workspaceRoot}/docusaurus/docs/**/*.@(md|mdx|json)"
],
"outputs": [
"{projectRoot}/build"
]
}
}
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"clean": "nx run-many --target=clean",
"build": "nx run-many --target=build --parallel --exclude website",
"dev": "nx run-many --target=dev --parallel",
"docs": "nx run website:start",
"docs:clear": "nx run website:clear",
"docs:build": "nx run website:build",
"docs": "nx start website",
"docs:clear": "nx clear website",
"docs:build": "nx build website",
"lint": "nx run-many --target=lint --parallel",
"lint:fix": "nx run-many --target=lint:fix --parallel",
"release": "auto shipit",
Expand Down

0 comments on commit b5ba992

Please sign in to comment.