Skip to content

Commit

Permalink
fix: npm build scripts for toolbox/fdc3-workbench
Browse files Browse the repository at this point in the history
- also added static/toolbox to .gitignore, this doesn't affect publishing which happens from build folder
  • Loading branch information
rikoe committed Oct 6, 2021
1 parent 5eb5383 commit a7a6303
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ lib/core/MetadataBlog.js

website/translated_docs
website/build/
website/static/toolbox
website/node_modules
website/i18n/*
website/package-lock.json
6 changes: 3 additions & 3 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"scripts": {
"examples": "docusaurus-examples",
"start": "docusaurus-start",
"prebuild": "yarn run copy-appd && yarn run copy-schemas",
"prebuild": "yarn run copy-appd && yarn run copy-schemas && yarn run copy-workbench",
"build": "docusaurus-build",
"prepublish-gh-pages": "yarn run copy-appd && yarn run copy-schemas && yarn run copy-workbench",
"publish-gh-pages": "docusaurus-publish",
"copy-schemas": "cpy ../src/context/schemas/*.schema.json static/schemas/next",
"copy-appd": "cpy ../src/app-directory/specification/appd.yaml static/schemas/next --rename app-directory.yaml",
"build-workbench": "yarn --cwd ../toolbox/fdc3-workbench && yarn --cwd ../toolbox/fdc3-workbench build",
"copy-workbench": "yarn del static/toolbox/fdc3-workbench && yarn build-workbench && cpy ** ../../../website/static/toolbox/fdc3-workbench --cwd=../toolbox/fdc3-workbench/build/ --parents",
"build-workbench": "cd ../toolbox/fdc3-workbench && yarn build",
"copy-workbench": "yarn del static/toolbox/fdc3-workbench && yarn build-workbench && cpy ../toolbox/fdc3-workbench/build/** ./static/toolbox/fdc3-workbench",
"version": "yarn run version:docs && yarn run version:schemas && yarn run version:appd",
"version:docs": "docusaurus-version ${VERSION}",
"version:schemas": "cpy static/schemas/next/*.schema.json static/schemas/${VERSION} && replace-in-files --string=/schemas/next --replacement=/schemas/${VERSION} static/schemas/${VERSION}/*.schema.json",
Expand Down

0 comments on commit a7a6303

Please sign in to comment.