Skip to content

Commit

Permalink
rename apps to include managed providers
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Aug 26, 2024
1 parent 0831298 commit f11a2b9
Show file tree
Hide file tree
Showing 15 changed files with 85 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ctrlplane/providers",
"name": "@ctrlplane/job-dispatcher",
"private": true,
"type": "module",
"scripts": {
Expand Down
File renamed without changes.
11 changes: 11 additions & 0 deletions apps/job-dispatcher/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { CronJob } from "cron";

const run = () => {
console.log("Running managed providers");
};

const job = new CronJob("* * * * *", run);

console.log("Starting managed providers cronjob");
run();
job.start();
File renamed without changes.
3 changes: 3 additions & 0 deletions apps/target-provider/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Rollout Job

Job that checks if releases are ready for rollout
9 changes: 9 additions & 0 deletions apps/target-provider/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import baseConfig from "@ctrlplane/eslint-config/base";

/** @type {import('typescript-eslint').Config} */
export default [
{
ignores: [".nitro/**", ".output/**"],
},
...baseConfig,
];
34 changes: 34 additions & 0 deletions apps/target-provider/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@ctrlplane/target-provider",
"private": true,
"type": "module",
"scripts": {
"clean": "rm -rf .turbo node_modules",
"dev": "pnpm with-env tsx watch --clear-screen=false src/index.ts",
"lint": "eslint",
"format": "prettier --check . --ignore-path ../../.gitignore",
"typecheck": "tsc --noEmit",
"with-env": "dotenv -e ../../.env --"
},
"dependencies": {
"@ctrlplane/db": "workspace:*",
"@google-cloud/container": "^5.16.0",
"@kubernetes/client-node": "^0.21.0",
"@t3-oss/env-core": "^0.10.1",
"cron": "^3.1.7",
"dotenv": "^16.4.5",
"google-auth-library": "^9.13.0",
"semver": "^7.6.2",
"zod": "catalog:"
},
"devDependencies": {
"@ctrlplane/eslint-config": "workspace:^",
"@ctrlplane/prettier-config": "workspace:^",
"@ctrlplane/tsconfig": "workspace:*",
"eslint": "catalog:",
"prettier": "catalog:",
"tsx": "^4.11.0",
"typescript": "^5.4.5"
},
"prettier": "@ctrlplane/prettier-config"
}
10 changes: 10 additions & 0 deletions apps/target-provider/src/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { createEnv } from "@t3-oss/env-core";
import dotenv from "dotenv";
import { z } from "zod";

dotenv.config();

export const env = createEnv({
server: { POSTGRES_URL: z.string().url() },
runtimeEnv: process.env,
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions apps/target-provider/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "@ctrlplane/tsconfig/base.json",
"compilerOptions": {
"target": "ESNext",
"outDir": "dist",
"noEmit": false,
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"esModuleInterop": true,
"importsNotUsedAsValues": "remove"
},
"include": ["src", "*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit f11a2b9

Please sign in to comment.