Skip to content

Commit

Permalink
Replace project.ts with project.yaml, update postgres version
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Oct 9, 2023
1 parent 468cb71 commit ece088e
Show file tree
Hide file tree
Showing 108 changed files with 121 additions and 2,319 deletions.
File renamed without changes.
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-cosmos/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
9 changes: 6 additions & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 18
- name: setup workspace
run: cp ci.package.json package.json
- run: yarn
- name: codegen
run: yarn codegen
# Need to update tsconfig inputs paths for this to work
# - name: build
# run: yarn build
- name: update tsconfigs for workspace
run: .github/scripts/copy-ts-config.sh
- name: build
run: yarn build
2 changes: 1 addition & 1 deletion Agoric/agoric-starter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package-lock.json
target/
dist/
src/types
project.yaml
# project.yaml

# JetBrains IDE
.idea/
Expand Down
4 changes: 2 additions & 2 deletions Agoric/agoric-starter/docker/pg-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM postgres:12-alpine
FROM postgres:16-alpine

# Variables needed at runtime to configure postgres and run the initdb scripts
ENV POSTGRES_DB 'postgres'
Expand All @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres'
COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/

# Convert line endings to LF
RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh
RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh
98 changes: 0 additions & 98 deletions Agoric/agoric-starter/project.ts

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion Akash/akash-starter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package-lock.json
target/
dist/
src/types
project.yaml
# project.yaml

# JetBrains IDE
.idea/
Expand Down
4 changes: 2 additions & 2 deletions Akash/akash-starter/docker/pg-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM postgres:12-alpine
FROM postgres:16-alpine

# Variables needed at runtime to configure postgres and run the initdb scripts
ENV POSTGRES_DB 'postgres'
Expand All @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres'
COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/

# Convert line endings to LF
RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh
RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh
79 changes: 0 additions & 79 deletions Akash/akash-starter/project.ts

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion Archway/archway-starter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package-lock.json
target/
dist/
src/types
project.yaml
# project.yaml

# JetBrains IDE
.idea/
Expand Down
4 changes: 2 additions & 2 deletions Archway/archway-starter/docker/pg-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM postgres:12-alpine
FROM postgres:16-alpine

# Variables needed at runtime to configure postgres and run the initdb scripts
ENV POSTGRES_DB 'postgres'
Expand All @@ -9,4 +9,4 @@ ENV POSTGRES_PASSWORD 'postgres'
COPY docker/load-extensions.sh /docker-entrypoint-initdb.d/

# Convert line endings to LF
RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh
RUN sed -i 's/\r$//' /docker-entrypoint-initdb.d/load-extensions.sh && chmod +x /docker-entrypoint-initdb.d/load-extensions.sh
99 changes: 0 additions & 99 deletions Archway/archway-starter/project.ts

This file was deleted.

File renamed without changes.
Loading

0 comments on commit ece088e

Please sign in to comment.