Skip to content

Commit

Permalink
fix(rules): add Nextcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 7, 2023
1 parent d46929d commit 07da83f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
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 @@ -152,6 +152,7 @@ exports[`all > should match everything 1`] = `
"neo4j",
"netlify",
"newrelic",
"nextcloud",
"nextjs",
"nginx",
"nodejs",
Expand Down
1 change: 1 addition & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
11 changes: 11 additions & 0 deletions src/rules/hosting/nextcloud.ts
Original file line number Diff line number Diff line change
@@ -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' },
],
});
11 changes: 11 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports[`docker > should match everything 1`] = `
"mongodb",
"mysql",
"neo4j",
"nextcloud",
"nginx",
"nodejs",
"percona",
Expand Down Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export type AllowedKeys =
| 'neo4j'
| 'netlify'
| 'newrelic'
| 'nextcloud'
| 'nextjs'
| 'nginx'
| 'nodejs'
Expand Down

0 comments on commit 07da83f

Please sign in to comment.