diff --git a/src/rules/__snapshots__/index.test.ts.snap b/src/rules/__snapshots__/index.test.ts.snap index 77d8b21c..9c5d4f5b 100644 --- a/src/rules/__snapshots__/index.test.ts.snap +++ b/src/rules/__snapshots__/index.test.ts.snap @@ -19,6 +19,7 @@ exports[`all > should match everything 1`] = ` "apache_kafka", "apache_spark", "apache_storm", + "apiplatform", "appveyor", "atlassian", "auth0", diff --git a/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap b/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap index 2df1baab..ad86f47c 100644 --- a/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap +++ b/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap @@ -7,6 +7,7 @@ exports[`npm > should match everything 1`] = ` "alpinejs", "amplitude", "angular", + "apiplatform", "auth0", "aws", "aws.amplifyhosting", @@ -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", diff --git a/src/rules/spec/php/__snapshots__/component.test.ts.snap b/src/rules/spec/php/__snapshots__/component.test.ts.snap index af95c3b8..8d225754 100644 --- a/src/rules/spec/php/__snapshots__/component.test.ts.snap +++ b/src/rules/spec/php/__snapshots__/component.test.ts.snap @@ -8,6 +8,7 @@ exports[`php > should match everything 1`] = ` "amplitude", "apache_couchdb", "apache_kafka", + "apiplatform", "auth0", "aws", "aws.cloudfront", @@ -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", diff --git a/src/rules/tool/apiplatform.ts b/src/rules/tool/apiplatform.ts new file mode 100644 index 00000000..6b01875f --- /dev/null +++ b/src/rules/tool/apiplatform.ts @@ -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' }, + ], +}); diff --git a/src/rules/tool/index.ts b/src/rules/tool/index.ts index 575eb72e..4733db76 100644 --- a/src/rules/tool/index.ts +++ b/src/rules/tool/index.ts @@ -1,4 +1,5 @@ import './ansible.js'; +import './apiplatform.js'; import './gitlab.js'; import './helm.js'; import './lighthouse.js'; diff --git a/src/types/techs.ts b/src/types/techs.ts index 412e43bf..0a37dbd6 100644 --- a/src/types/techs.ts +++ b/src/types/techs.ts @@ -32,6 +32,7 @@ export type AllowedKeys = | 'apache_kafka' | 'apache_spark' | 'apache_storm' + | 'apiplatform' | 'appveyor' | 'atlassian' | 'auth0'