Skip to content

Commit

Permalink
fix(rules): add Plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 3, 2023
1 parent c4d1d28 commit e524128
Show file tree
Hide file tree
Showing 5 changed files with 17 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 @@ -121,6 +121,7 @@ exports[`all > should match everything 1`] = `
"pingdom",
"placekit",
"platformsh",
"plausible",
"postgresql",
"postman",
"prettier",
Expand Down
1 change: 1 addition & 0 deletions src/rules/analytics/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './amplitude.js';
import './googleanalytics.js';
import './mixpanel.js';
import './plausible.js';
import './vercel.analytics.js';
8 changes: 8 additions & 0 deletions src/rules/analytics/plausible.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'plausible',
name: 'Plausible',
type: 'analytics',
dependencies: [{ type: 'docker', name: 'plausible/analytics' }],
});
6 changes: 6 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ exports[`docker > should match everything 1`] = `
"nginx",
"nodejs",
"percona",
"plausible",
"postgresql",
"rabbitmq",
"redis",
Expand Down Expand Up @@ -153,6 +154,11 @@ exports[`docker > should match everything 2`] = `
"percona",
"0.0.0",
],
[
"docker",
"plausible/analytics",
"0.0.0",
],
[
"docker",
"postgres",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export type AllowedKeys =
| 'pingdom'
| 'placekit'
| 'platformsh'
| 'plausible'
| 'postgresql'
| 'postman'
| 'powershell'
Expand Down

0 comments on commit e524128

Please sign in to comment.