Skip to content

Commit

Permalink
fix(rules): add Supabase Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 23, 2023
1 parent 9bd56ce commit 9a6f7e0
Show file tree
Hide file tree
Showing 23 changed files with 35 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/rules/api/gcp.aiplatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.aiplatform',
name: 'AI Platform',
name: 'Google AI Platform',
type: 'api',
dependencies: [
{ type: 'npm', name: '@google-cloud/aiplatform' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/api/gcp.language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.language',
name: 'Language',
name: 'Google Language',
type: 'api',
dependencies: [
{ type: 'npm', name: '@google-cloud/language' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/api/gcp.speech.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.speech',
name: 'Speech',
name: 'Google Speech',
type: 'api',
dependencies: [
{ type: 'npm', name: '@google-cloud/speech' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/api/gcp.translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.translate',
name: 'Translate',
name: 'Google Translate',
type: 'api',
dependencies: [
{ type: 'npm', name: '@google-cloud/translate' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/api/gcp.vision.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.vision',
name: 'Vision',
name: 'Google Vision',
type: 'api',
dependencies: [
{ type: 'npm', name: '@google-cloud/vision' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/db/aws.dynamodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'aws.dynamodb',
name: 'DynamoDB',
name: 'AWS DynamoDB',
type: 'db',
dependencies: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/rules/db/aws.elasticache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'aws.elasticache',
name: 'ElastiCache',
name: 'AWS ElastiCache',
type: 'db',
dependencies: [
{ type: 'npm', name: '@aws-sdk/client-elasticache' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/db/aws.rds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'aws.rds',
name: 'RDS',
name: 'AWS RDS',
type: 'db',
dependencies: [
{ type: 'npm', name: '@aws-sdk/client-rds' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/db/cassandra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'cassandra',
name: 'Cassandra',
name: 'AWS Cassandra',
type: 'db',
dependencies: [
{ type: 'docker', name: /cassandra/, example: 'cassandra:0.0.0' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/db/gcp.bigquery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.bigquery',
name: 'BigQuery',
name: 'Google BigQuery',
type: 'db',
dependencies: [
{ type: 'npm', name: '@google-cloud/bigquery' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/db/gcp.bigtable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.bigtable',
name: 'BigTable',
name: 'Google BigTable',
type: 'db',
dependencies: [
{ type: 'npm', name: '@google-cloud/bigtable' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/db/gcp.datastore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.datastore',
name: 'Datastore',
name: 'Google Datastore',
type: 'db',
dependencies: [
{ type: 'npm', name: '@google-cloud/datastore' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/db/gcp.secretmanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.secretmanager',
name: 'Secret Manager',
name: 'Google Secret Manager',
type: 'db',
dependencies: [
{ type: 'npm', name: '@google-cloud/secret-manager' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/db/gcp.sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.sql',
name: 'Cloud SQL',
name: 'Google SQL',
type: 'db',
dependencies: [
{ type: 'npm', name: '@google-cloud/cloud-sql-connector' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/etl/gcp.dataproc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.dataproc',
name: 'Dataproc',
name: 'Google Dataproc',
type: 'etl',
dependencies: [
{ type: 'npm', name: '@google-cloud/dataproc' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/hosting/aws.lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'aws.lambda',
name: 'Lambda',
name: 'AWS Lambda',
type: 'hosting',
dependencies: [
{ type: 'npm', name: '@aws-sdk/client-lambda' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/hosting/gcp.cloudrun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.cloudrun',
name: 'Cloud Run',
name: 'Google Cloud Run',
type: 'hosting',
dependencies: [
{ type: 'npm', name: '@google-cloud/run' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/hosting/gcp.functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.functions',
name: 'Functions',
name: 'Google Functions',
type: 'hosting',
dependencies: [
{ type: 'npm', name: '@google-cloud/functions-framework' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/hosting/gcp.gce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { register } from '../../register.js';

register({
tech: 'gcp.gce',
name: 'Compute',
name: 'Google Compute',
type: 'hosting',
dependencies: [
{ type: 'npm', name: '@google-cloud/compute' },
Expand Down
1 change: 1 addition & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ import './ovh.js';
import './platformsh.js';
import './render.js';
import './scaleway.js';
import './supabase.functions.js';
import './supabase.js';
import './vercel.js';
8 changes: 8 additions & 0 deletions src/rules/hosting/supabase.functions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'supabase.functions',
name: 'Supabase Functions',
type: 'hosting',
dependencies: [{ type: 'npm', name: '@supabase/functions-js' }],
});
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ exports[`npm > should match everything 1`] = `
"storybook",
"strapi",
"supabase",
"supabase.functions",
"supabase.postgres",
"supabase.storage",
"tailwind",
Expand Down Expand Up @@ -404,6 +405,11 @@ exports[`npm > should match everything 2`] = `
"@strapi/strapi",
"0.0.0",
],
[
"npm",
"@supabase/functions-js",
"0.0.0",
],
[
"npm",
"@supabase/pg-admin-js",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export type AllowedKeys =
| 'strapi'
| 'styleci'
| 'stylelint'
| 'supabase.functions'
| 'supabase.postgres'
| 'supabase.storage'
| 'supabase'
Expand Down

0 comments on commit 9a6f7e0

Please sign in to comment.