Skip to content

Commit

Permalink
chore: rename ogs.yaml to backend.yaml (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Mar 6, 2024
2 parents d934f06 + c2bae4e commit 1ee9c4c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 8 deletions.
3 changes: 0 additions & 3 deletions src/build/deno_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { Project } from "../project/mod.ts";
export async function generateDenoConfig(project: Project) {
// Build config
const config = {
"imports": {
"@opengb/runtime": "./_gen/runtime/src/runtime/mod.ts",
},
"lint": {
"include": ["src/"],
"exclude": ["tests/"],
Expand Down
2 changes: 1 addition & 1 deletion src/config/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const projectConfigAjv = new Ajv.default({
export async function readConfig(projectPath: string): Promise<ProjectConfig> {
// Read config
const configRaw = await Deno.readTextFile(
join(projectPath, "opengb.yaml"),
join(projectPath, "backend.yaml"),
);
const config = parse(configRaw) as ProjectConfig;

Expand Down
2 changes: 1 addition & 1 deletion src/template/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ errors: {}

// TODO: Write default schema

// TODO: Add to opengb.yaml
// TODO: Add to backend.yaml
}
23 changes: 23 additions & 0 deletions tests/test_project/backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
registries:
default:
git:
url: https://github.com/rivet-gg/open-game-services.git
branch: main
directory: ./modules
local:
local:
directory: ./modules
modules:
# currency: {}
# friends: {}
# rate_limit: {}
# tokens: {}
# users: {}
# auth:
# config:
# google:
# token: abc123
# discord:
# token: abc123
foo:
registry: local
3 changes: 0 additions & 3 deletions tests/test_project/deno.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"imports": {
"@opengb/runtime": "./_gen/runtime/src/runtime/mod.ts"
},
"lint": {
"include": [
"src/"
Expand Down

0 comments on commit 1ee9c4c

Please sign in to comment.