Skip to content

Commit

Permalink
Merge pull request #341 from cofacts/ts-schema
Browse files Browse the repository at this point in the history
[2] Support Typescript DB schemas
  • Loading branch information
MrOrz authored Jun 24, 2024
2 parents 0acdd9c + 9beae14 commit 8a1bffb
Show file tree
Hide file tree
Showing 11 changed files with 292 additions and 81 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
],
"plugins": [
["module-resolver", {
"root": ["./src", "./test"]
"root": ["./src", "./test"],
"extensions": [".js", ".ts"]
}]
]
}
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ INSTAGRAM_CALLBACK_URL=PUBLIC_URL/callback/instagram
GA_PAGE_SIZE=10000

# The target dataset ID (`projectId.dataset`) of LINE bot's analytics.
# The schema should match `/test/rumors-db/bq`
# The schema should match `/src/rumors-db/bq`
LINE_BOT_EVENT_DATASET_ID=
# The target dataset ID (`projectId.dataset`) of Google Analytics 4.
GA4_DATASET_ID=
Expand Down
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
test/rumors-db
src/rumors-db
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "test/rumors-db"]
path = test/rumors-db
path = src/rumors-db
url = https://github.com/MrOrz/rumors-db.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ $ docker-compose logs api # `api' can also be `db', `kibana'.
$ docker-compose logs -f api # Tail mode
```

### About `test/rumors-db`
### About `src/rumors-db`

This directory is managed by git submodule. Use the following command to update:

Expand Down
Loading

0 comments on commit 8a1bffb

Please sign in to comment.