Skip to content

Commit

Permalink
Add CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Oct 9, 2023
1 parent 0a10354 commit cac3b64
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/scripts/ci.package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "subql-starters",
"private": true,
"workspaces": [
"Arbitrum/*",
"Avalanche/*",
"Base/*",
"BNB\\ Smart\\ Chain//*",
"Boba/*",
"EOS/*",
"Ethereum/*",
"Fantom/*",
"Gnosis/*",
"Harmony/*",
"Immutable/*",
"Klaytn/*",
"Linea/*",
"Mantle/*",
"Meter/*",
"Metis/*",
"Optimism/*",
"Polygon/*",
"Scroll/*",
"Skale/*",
"Zksync/*"
],
"scripts": {
"codegen": "yarn workspaces run codegen",
"build": "yarn workspaces run build"
}
}
20 changes: 20 additions & 0 deletions .github/scripts/ci.tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"esModuleInterop": true,
"declaration": true,
"importHelpers": true,
"resolveJsonModule": true,
"module": "commonjs",
"outDir": "dist",
"rootDir": "src",
"target": "es2017",
"strict": true
},
"include": [
"src/**/*",
"../../node_modules/@subql/types-core/dist/global.d.ts",
"../../node_modules/@subql/types-ethereum/dist/global.d.ts"
]
}
13 changes: 13 additions & 0 deletions .github/scripts/copy-ts-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# This file copies over a modified TS config that works with workspaces so we can build all projects

set -e

for DEST_PATH in ./*/*/; do

SRC="./.github/scripts/ci.tsconfig.json"
DEST="${DEST_PATH}tsconfig.json"

[ -f "$DEST" ] && cp "$SRC" "$DEST"
done

0 comments on commit cac3b64

Please sign in to comment.