Skip to content

Commit

Permalink
fix(rules): add Commercetools
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 12, 2023
1 parent 8dc48f6 commit 3630ec9
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 1 deletion.
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 @@ -96,6 +96,7 @@ exports[`all > should match everything 1`] = `
"cockroachdb",
"codecov",
"codesandboxci",
"commercetools",
"contenful",
"couchbase",
"coveralls",
Expand Down
5 changes: 4 additions & 1 deletion src/rules/saas/bigcommerce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ register({
tech: 'bigcommerce',
name: 'BigCommerce',
type: 'saas',
dependencies: [{ type: 'php', name: 'bigcommerce/api' }],
dependencies: [
{ type: 'php', name: 'bigcommerce/api' },
{ type: 'npm', name: '@bigcommerce/checkout-sdk' },
],
});
12 changes: 12 additions & 0 deletions src/rules/saas/commercetools.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { register } from '../../register.js';

register({
tech: 'commercetools',
name: 'Commercetools',
type: 'saas',
dependencies: [
{ type: 'npm', name: '@commercetools/platform-sdk' },
{ type: 'npm', name: '@commercetools/sdk-client-v2' },
{ type: 'npm', name: '@commercetools/sdk-middleware-http' },
],
});
1 change: 1 addition & 0 deletions src/rules/saas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import './bigcommerce.js';
import './bitbucket.js';
import './box.js';
import './brevo.js';
import './commercetools.js';
import './contentful.js';
import './crowdin.js';
import './deferrun.js';
Expand Down
22 changes: 22 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ exports[`npm > should match everything 1`] = `
"azure.redis",
"azure.sql",
"betterstack",
"bigcommerce",
"bootstrap",
"brevo",
"browserstack",
"clickhouse",
"cloudflare",
"cloudflare.workers",
"commercetools",
"contenful",
"couchbase",
"coveralls",
Expand Down Expand Up @@ -699,6 +701,11 @@ exports[`npm > should match everything 2`] = `
"@azure/cosmos",
"0.0.0",
],
[
"npm",
"@bigcommerce/checkout-sdk",
"0.0.0",
],
[
"npm",
"@clickhouse/client",
Expand All @@ -709,6 +716,21 @@ exports[`npm > should match everything 2`] = `
"@cloudflare/kv-asset-handler",
"0.0.0",
],
[
"npm",
"@commercetools/platform-sdk",
"0.0.0",
],
[
"npm",
"@commercetools/sdk-client-v2",
"0.0.0",
],
[
"npm",
"@commercetools/sdk-middleware-http",
"0.0.0",
],
[
"npm",
"@crowdin/crowdin-api-client",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export type AllowedKeys =
| 'cockroachdb'
| 'codecov'
| 'codesandboxci'
| 'commercetools'
| 'contenful'
| 'couchbase'
| 'coveralls'
Expand Down

0 comments on commit 3630ec9

Please sign in to comment.