Skip to content

Commit

Permalink
fix(rules): add Matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 7, 2023
1 parent 07da83f commit d7cfaae
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ exports[`all > should match everything 1`] = `
"mailchimp",
"mailjet",
"mariadb",
"matomo",
"meilisearch",
"memcached",
"meteorjs",
Expand Down
1 change: 1 addition & 0 deletions src/rules/analytics/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import './amplitude.js';
import './googleanalytics.js';
import './logsnag.js';
import './matomo.js';
import './mixpanel.js';
import './plausible.js';
import './tinybird.js';
Expand Down
11 changes: 11 additions & 0 deletions src/rules/analytics/matomo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { register } from '../../register.js';

register({
tech: 'matomo',
name: 'Matomo',
type: 'analytics',
dependencies: [
{ type: 'docker', name: 'matomo' },
{ type: 'docker', name: 'bitnami/matomo' },
],
});
11 changes: 11 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ exports[`docker > should match everything 1`] = `
"jenkins",
"kibana",
"mariadb",
"matomo",
"meilisearch",
"memcached",
"mongodb",
Expand Down Expand Up @@ -117,6 +118,11 @@ exports[`docker > should match everything 2`] = `
"bitnami/kafka",
"0.0.0",
],
[
"docker",
"bitnami/matomo",
"0.0.0",
],
[
"docker",
"caddy",
Expand Down Expand Up @@ -192,6 +198,11 @@ exports[`docker > should match everything 2`] = `
"mariadb",
"0.0.0",
],
[
"docker",
"matomo",
"0.0.0",
],
[
"docker",
"memcached",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export type AllowedKeys =
| 'mailchimp'
| 'mailjet'
| 'mariadb'
| 'matomo'
| 'meilisearch'
| 'memcached'
| 'meteorjs'
Expand Down

0 comments on commit d7cfaae

Please sign in to comment.