From 07da83f88daeed93fefbbe6e2fdab79189cd25de Mon Sep 17 00:00:00 2001 From: Samuel Bodin <1637651+bodinsamuel@users.noreply.github.com> Date: Thu, 7 Sep 2023 22:56:55 +0200 Subject: [PATCH] fix(rules): add Nextcloud --- src/rules/__snapshots__/index.test.ts.snap | 1 + src/rules/hosting/index.ts | 1 + src/rules/hosting/nextcloud.ts | 11 +++++++++++ .../spec/docker/__snapshots__/component.test.ts.snap | 11 +++++++++++ src/types/techs.ts | 1 + 5 files changed, 25 insertions(+) create mode 100644 src/rules/hosting/nextcloud.ts diff --git a/src/rules/__snapshots__/index.test.ts.snap b/src/rules/__snapshots__/index.test.ts.snap index c87dd532..91bd5559 100644 --- a/src/rules/__snapshots__/index.test.ts.snap +++ b/src/rules/__snapshots__/index.test.ts.snap @@ -152,6 +152,7 @@ exports[`all > should match everything 1`] = ` "neo4j", "netlify", "newrelic", + "nextcloud", "nextjs", "nginx", "nodejs", diff --git a/src/rules/hosting/index.ts b/src/rules/hosting/index.ts index 9bcb6118..5e507eee 100644 --- a/src/rules/hosting/index.ts +++ b/src/rules/hosting/index.ts @@ -25,6 +25,7 @@ import './heroku.js'; import './kubernetes.js'; import './mongodbatlas.js'; import './netlify.js'; +import './nextcloud.js'; import './oraclecloud.js'; import './ovh.js'; import './platformsh.js'; diff --git a/src/rules/hosting/nextcloud.ts b/src/rules/hosting/nextcloud.ts new file mode 100644 index 00000000..0b4bb74f --- /dev/null +++ b/src/rules/hosting/nextcloud.ts @@ -0,0 +1,11 @@ +import { register } from '../../register.js'; + +register({ + tech: 'nextcloud', + name: 'Nextcloud', + type: 'hosting', + dependencies: [ + { type: 'docker', name: 'nextcloud/all-in-one' }, + { type: 'docker', name: 'nextcloud/aio-nextcloud' }, + ], +}); diff --git a/src/rules/spec/docker/__snapshots__/component.test.ts.snap b/src/rules/spec/docker/__snapshots__/component.test.ts.snap index 2aa174c8..18b94d5a 100644 --- a/src/rules/spec/docker/__snapshots__/component.test.ts.snap +++ b/src/rules/spec/docker/__snapshots__/component.test.ts.snap @@ -35,6 +35,7 @@ exports[`docker > should match everything 1`] = ` "mongodb", "mysql", "neo4j", + "nextcloud", "nginx", "nodejs", "percona", @@ -211,6 +212,16 @@ exports[`docker > should match everything 2`] = ` "neo4j", "0.0.0", ], + [ + "docker", + "nextcloud/aio-nextcloud", + "0.0.0", + ], + [ + "docker", + "nextcloud/all-in-one", + "0.0.0", + ], [ "docker", "nginx", diff --git a/src/types/techs.ts b/src/types/techs.ts index 0c0baa69..231771e1 100644 --- a/src/types/techs.ts +++ b/src/types/techs.ts @@ -178,6 +178,7 @@ export type AllowedKeys = | 'neo4j' | 'netlify' | 'newrelic' + | 'nextcloud' | 'nextjs' | 'nginx' | 'nodejs'