Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
ci: clone git submodule after install
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed May 25, 2022
1 parent 89e92de commit 52460f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"postinstall": "yarn run copy:lo-smartcontract-docs",
"postinstall": "rimraf ./git-submodules/limit-order-protocol && yarn run clone-lo-smartcontract && yarn run copy:lo-smartcontract-docs",
"clone-lo-smartcontract": "git clone https://github.com/1inch/limit-order-protocol.git ./git-submodules/limit-order-protocol",
"copy:lo-smartcontract-docs": "git submodule update --remote --merge && rimraf docs/limit-order-protocol/smart-contract/* && cp -R git-submodules/limit-order-protocol/docgen/docs/* docs/limit-order-protocol/smart-contract/ && touch docs/limit-order-protocol/smart-contract/_category_.json && echo '{\"label\": \"Smart contracts\",\"position\": 4}' > docs/limit-order-protocol/smart-contract/_category_.json"
},
Expand Down

0 comments on commit 52460f3

Please sign in to comment.