From 21a6b66f3463a791720af6195ad7af5466abf3bb Mon Sep 17 00:00:00 2001 From: Samuel Bodin <1637651+bodinsamuel@users.noreply.github.com> Date: Tue, 5 Sep 2023 22:28:53 +0200 Subject: [PATCH] fix(rules): add Tinybirdco --- src/rules/__snapshots__/index.test.ts.snap | 1 + src/rules/analytics/index.ts | 1 + src/rules/analytics/tinybird.ts | 14 ++++++++++++++ .../nodejs/__snapshots__/component.test.ts.snap | 17 +++++++++++++++++ src/types/techs.ts | 1 + 5 files changed, 34 insertions(+) create mode 100644 src/rules/analytics/tinybird.ts diff --git a/src/rules/__snapshots__/index.test.ts.snap b/src/rules/__snapshots__/index.test.ts.snap index 37b7271c..fc488f1b 100644 --- a/src/rules/__snapshots__/index.test.ts.snap +++ b/src/rules/__snapshots__/index.test.ts.snap @@ -206,6 +206,7 @@ exports[`all > should match everything 1`] = ` "tencentcloud", "terraform", "terragrunt", + "tinybird", "travisci", "twilio", "twitter", diff --git a/src/rules/analytics/index.ts b/src/rules/analytics/index.ts index b069fe19..46bcecbe 100644 --- a/src/rules/analytics/index.ts +++ b/src/rules/analytics/index.ts @@ -3,4 +3,5 @@ import './googleanalytics.js'; import './logsnag.js'; import './mixpanel.js'; import './plausible.js'; +import './tinybird.js'; import './vercel.analytics.js'; diff --git a/src/rules/analytics/tinybird.ts b/src/rules/analytics/tinybird.ts new file mode 100644 index 00000000..eee0ebdd --- /dev/null +++ b/src/rules/analytics/tinybird.ts @@ -0,0 +1,14 @@ +import { register } from '../../register.js'; + +register({ + tech: 'tinybird', + name: 'Tinybird', + type: 'analytics', + dependencies: [ + { + type: 'npm', + name: /^@tinybirdco\//, + example: '@tinybirdco/next-tinybird', + }, + ], +}); diff --git a/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap b/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap index d2aa685a..e6008f90 100644 --- a/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap +++ b/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap @@ -9,6 +9,7 @@ exports[`npm > should match everything 1`] = ` "angular", "auth0", "aws", + "aws.amplify_hosting", "aws.dynamodb", "aws.ec2", "aws.ecs", @@ -128,6 +129,7 @@ exports[`npm > should match everything 1`] = ` "supabase.storage", "sveltejs", "tailwind", + "tinybird", "twilio", "typescript", "vercel", @@ -165,6 +167,11 @@ exports[`npm > should match everything 2`] = ` "@auth0/auth0-react", "0.0.0", ], + [ + "npm", + "@aws-amplify/ui-react", + "0.0.0", + ], [ "npm", "@aws-sdk/client-dynamodb-streams", @@ -545,6 +552,11 @@ exports[`npm > should match everything 2`] = ` "@sveltejs/vite-plugin-svelte", "0.0.0", ], + [ + "npm", + "@tinybirdco/next-tinybird", + "0.0.0", + ], [ "npm", "@twilio/cli-core", @@ -610,6 +622,11 @@ exports[`npm > should match everything 2`] = ` "auth0", "0.0.0", ], + [ + "npm", + "aws-amplify", + "0.0.0", + ], [ "npm", "aws-sdk", diff --git a/src/types/techs.ts b/src/types/techs.ts index 9acd0fbb..a0b29b85 100644 --- a/src/types/techs.ts +++ b/src/types/techs.ts @@ -238,6 +238,7 @@ export type AllowedKeys = | 'tencentcloud' | 'terraform' | 'terragrunt' + | 'tinybird' | 'traefik' | 'travisci' | 'twilio'