Skip to content

Commit

Permalink
fix(rules): add ApiPlatform
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 20, 2023
1 parent 03f3e36 commit 07e48e6
Show file tree
Hide file tree
Showing 6 changed files with 26 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 @@ -19,6 +19,7 @@ exports[`all > should match everything 1`] = `
"apache_kafka",
"apache_spark",
"apache_storm",
"apiplatform",
"appveyor",
"atlassian",
"auth0",
Expand Down
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 @@ -7,6 +7,7 @@ exports[`npm > should match everything 1`] = `
"alpinejs",
"amplitude",
"angular",
"apiplatform",
"auth0",
"aws",
"aws.amplifyhosting",
Expand Down Expand Up @@ -229,6 +230,11 @@ exports[`npm > should match everything 2`] = `
"@angular/forms",
"0.0.0",
],
[
"npm",
"@api-platform/client",
"0.0.0",
],
[
"npm",
"@auth0/auth0-react",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/php/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exports[`php > should match everything 1`] = `
"amplitude",
"apache_couchdb",
"apache_kafka",
"apiplatform",
"auth0",
"aws",
"aws.cloudfront",
Expand Down Expand Up @@ -151,6 +152,11 @@ exports[`php > should match everything 2`] = `
"androk/yousign-api",
"0.0.0",
],
[
"php",
"api-platform/core",
"0.0.0",
],
[
"php",
"async-aws/dynamo-db",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/tool/apiplatform.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { register } from '../../register.js';

register({
tech: 'apiplatform',
name: 'Api Platform',
type: 'tool',
dependencies: [
{ type: 'php', name: 'api-platform/core' },
{ type: 'npm', name: '@api-platform/client' },
],
});
1 change: 1 addition & 0 deletions src/rules/tool/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './ansible.js';
import './apiplatform.js';
import './gitlab.js';
import './helm.js';
import './lighthouse.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 @@ -32,6 +32,7 @@ export type AllowedKeys =
| 'apache_kafka'
| 'apache_spark'
| 'apache_storm'
| 'apiplatform'
| 'appveyor'
| 'atlassian'
| 'auth0'
Expand Down

0 comments on commit 07e48e6

Please sign in to comment.