Skip to content
Snippets Groups Projects
Commit 04a415d0 authored by Sydney Anne Erickson's avatar Sydney Anne Erickson :chipmunk:
Browse files

Make work in CI

parent c21c14e9
No related branches found
No related tags found
No related merge requests found
stages:
- build
build-doc:
stage: build
image: ubuntu:20.04
script:
- curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
- apt install -y nodejs
- npm install --global yarn
- yarn install
- yarn build
\ No newline at end of file
{ {
"scripts": { "scripts": {
"build": "yarn generate:defs && yarn generate:meta && yarn generate:markdown", "build": "yarn generate:defs && yarn generate:meta && yarn generate:markdown",
"generate:metadata": "curl -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://test.xxlabs.net > ./metadata.json", "generate:metadata": "curl -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://host.docker.internal:9933 > ./metadata.json",
"generate:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package sample-polkadotjs-typegen/interfaces --input ./src/interfaces --endpoint \"wss://test.xxlabs.net\"", "generate:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package sample-polkadotjs-typegen/interfaces --input ./src/interfaces --endpoint \"wss://test.xxlabs.net\"",
"generate:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package sample-polkadotjs-typegen/interfaces --endpoint \"wss://test.xxlabs.net\" --output ./src/interfaces", "generate:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package sample-polkadotjs-typegen/interfaces --endpoint \"wss://test.xxlabs.net\" --output ./src/interfaces",
"generate:typeshack": "echo \"export const oiwhriubrgvibu = false;\" > src/interfaces/types.ts", "generate:typeshack": "echo \"export const oiwhriubrgvibu = false;\" > src/interfaces/types.ts",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment