Skip to content

Commit

Permalink
fix(rules): add Replit
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 18, 2023
1 parent 31a9e86 commit e2b1271
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/hosting.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exports[`hosting > should match everything with files 1`] = `
"netlify",
"platformsh",
"render",
"replit",
"vercel",
]
`;
3 changes: 3 additions & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ exports[`all > should match everything 1`] = `
"relativeci",
"render",
"renovate",
"replit",
"replit.database",
"replit.postgres",
"resend",
"rollup",
"ruby",
Expand Down
2 changes: 2 additions & 0 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ import './percona.js';
import './planetscale.js';
import './postgres.js';
import './redis.js';
import './replit.database.js';
import './replit.postgres.js';
import './snowflake.js';
import './sqlite.js';
import './supabase.postgres.js';
Expand Down
8 changes: 8 additions & 0 deletions src/rules/db/replit.database.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'replit.database',
name: 'Replit Database',
type: 'db',
dependencies: [{ type: 'npm', name: '@replit/database' }],
});
8 changes: 8 additions & 0 deletions src/rules/db/replit.postgres.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'replit.postgres',
name: 'Replit Postgres',
type: 'db',
dependencies: [],
});
1 change: 1 addition & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import './oraclecloud.js';
import './ovh.js';
import './platformsh.js';
import './render.js';
import './replit.js';
import './scaleway.js';
import './sitecore.js';
import './supabase.functions.js';
Expand Down
8 changes: 8 additions & 0 deletions src/rules/hosting/replit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'replit',
name: 'Replit',
type: 'hosting',
files: ['.replit', 'replit.nix'],
});
7 changes: 7 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ exports[`npm > should match everything 1`] = `
"redis",
"relativeci",
"renovate",
"replit",
"replit.database",
"resend",
"rollup",
"salesforce",
Expand Down Expand Up @@ -837,6 +839,11 @@ exports[`npm > should match everything 2`] = `
"@relative-ci/agent",
"0.0.0",
],
[
"npm",
"@replit/database",
"0.0.0",
],
[
"npm",
"@salesforce/kit",
Expand Down
3 changes: 3 additions & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ export type AllowedKeys =
| 'relativeci'
| 'render'
| 'renovate'
| 'replit.database'
| 'replit.postgres'
| 'replit'
| 'resend'
| 'rollup'
| 'ruby'
Expand Down

0 comments on commit e2b1271

Please sign in to comment.