diff --git a/src/rules/__snapshots__/index.test.ts.snap b/src/rules/__snapshots__/index.test.ts.snap index 5c7dda8d..5b1448fa 100644 --- a/src/rules/__snapshots__/index.test.ts.snap +++ b/src/rules/__snapshots__/index.test.ts.snap @@ -172,6 +172,8 @@ exports[`all > should match everything 1`] = ` "sentry", "sequelize", "shopify", + "sitecore", + "sitecore.xmlcloud", "slack", "snowflake", "snyk", diff --git a/src/rules/api/index.ts b/src/rules/api/index.ts index 179c818e..24cadc99 100644 --- a/src/rules/api/index.ts +++ b/src/rules/api/index.ts @@ -4,4 +4,5 @@ import './gcp.maps.js'; import './gcp.speech.js'; import './gcp.translate.js'; import './gcp.vision.js'; +import './sitecore.xmcloud.js'; import './vercel.ai.js'; diff --git a/src/rules/api/sitecore.xmcloud.ts b/src/rules/api/sitecore.xmcloud.ts new file mode 100644 index 00000000..703e048e --- /dev/null +++ b/src/rules/api/sitecore.xmcloud.ts @@ -0,0 +1,14 @@ +import { register } from '../../register.js'; + +register({ + tech: 'sitecore.xmlcloud', + name: 'Sitecore XM cloud', + type: 'api', + dependencies: [ + { + type: 'npm', + name: /^@sitecore-jss\/sitecore-jss/, + example: '@sitecore-jss/sitecore-jss-nextjs', + }, + ], +}); diff --git a/src/rules/hosting/index.ts b/src/rules/hosting/index.ts index 53020486..05df1ad2 100644 --- a/src/rules/hosting/index.ts +++ b/src/rules/hosting/index.ts @@ -29,6 +29,7 @@ import './ovh.js'; import './platformsh.js'; import './render.js'; import './scaleway.js'; +import './sitecore.js'; import './supabase.functions.js'; import './supabase.js'; import './tencentcloud.js'; diff --git a/src/rules/hosting/sitecore.ts b/src/rules/hosting/sitecore.ts new file mode 100644 index 00000000..923ec9e7 --- /dev/null +++ b/src/rules/hosting/sitecore.ts @@ -0,0 +1,8 @@ +import { register } from '../../register.js'; + +register({ + tech: 'sitecore', + name: 'Sitecore', + type: 'hosting', + dependencies: [{ type: 'npm', name: '@sitecore-jss/sitecore-jss' }], +}); diff --git a/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap b/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap index 5aaa6d36..36d4aa61 100644 --- a/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap +++ b/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap @@ -103,6 +103,8 @@ exports[`npm > should match everything 1`] = ` "sentry", "sequelize", "shopify", + "sitecore", + "sitecore.xmlcloud", "slack", "snyk", "socketio", @@ -469,6 +471,16 @@ exports[`npm > should match everything 2`] = ` "@shopify/shopify-api", "0.0.0", ], + [ + "npm", + "@sitecore-jss/sitecore-jss", + "0.0.0", + ], + [ + "npm", + "@sitecore-jss/sitecore-jss-nextjs", + "0.0.0", + ], [ "npm", "@slack/web-api", diff --git a/src/types/techs.ts b/src/types/techs.ts index d1da2d12..491e882e 100644 --- a/src/types/techs.ts +++ b/src/types/techs.ts @@ -203,6 +203,8 @@ export type AllowedKeys = | 'sequelize' | 'shell' | 'shopify' + | 'sitecore.xmlcloud' + | 'sitecore' | 'slack' | 'snowflake' | 'snyk'