Skip to content

Commit

Permalink
fix(rules): add Sitecore
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 5, 2023
1 parent 0bb6370 commit 72be68d
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ exports[`all > should match everything 1`] = `
"sentry",
"sequelize",
"shopify",
"sitecore",
"sitecore.xmlcloud",
"slack",
"snowflake",
"snyk",
Expand Down
1 change: 1 addition & 0 deletions src/rules/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
14 changes: 14 additions & 0 deletions src/rules/api/sitecore.xmcloud.ts
Original file line number Diff line number Diff line change
@@ -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',
},
],
});
1 change: 1 addition & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
8 changes: 8 additions & 0 deletions src/rules/hosting/sitecore.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'sitecore',
name: 'Sitecore',
type: 'hosting',
dependencies: [{ type: 'npm', name: '@sitecore-jss/sitecore-jss' }],
});
12 changes: 12 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ exports[`npm > should match everything 1`] = `
"sentry",
"sequelize",
"shopify",
"sitecore",
"sitecore.xmlcloud",
"slack",
"snyk",
"socketio",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ export type AllowedKeys =
| 'sequelize'
| 'shell'
| 'shopify'
| 'sitecore.xmlcloud'
| 'sitecore'
| 'slack'
| 'snowflake'
| 'snyk'
Expand Down

0 comments on commit 72be68d

Please sign in to comment.