Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
docs: adjust build command
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Apr 22, 2022
1 parent 719aa53 commit 6dfd715
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions libs/documentations/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
"sourceRoot": "libs/documentations",
"projectType": "library",
"targets": {
"build-all": {
"build-docs": {
"executor": "@nrwl/workspace:run-commands",
"options": {
"commands": [
"cd libs/documentations",
"echo 'Installing Docusaurus dependencies...'",
"npm install",
"echo 'Building documentations...'",
"npm run build",
"cd ../../",
"STORYBOOK_BASE_HREF=soba/ npx nx build-storybook soba"
"echo 'Building Storybook for Soba...'",
"cd ../../ && STORYBOOK_BASE_HREF=soba/ npx nx build-storybook soba"
],
"parallel": false
"parallel": false,
"cwd": "libs/documentations"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
environment = { NODE_VERSION = "14.15.3" }

[context.branch-deploy]
command = "npx nx build-all documentations"
command = "npx nx build-docs documentations"
publish = "libs/documentations/build/"

0 comments on commit 6dfd715

Please sign in to comment.