Skip to content

Commit

Permalink
fix(rules): add Hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 23, 2023
1 parent 94bc122 commit 29d6693
Show file tree
Hide file tree
Showing 7 changed files with 51 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 @@ -205,6 +205,7 @@ exports[`all > should match everything 1`] = `
"httpd",
"hubspot",
"huggingface",
"hugo",
"hyperdx",
"hypertune",
"ibmcloud",
Expand Down
16 changes: 16 additions & 0 deletions src/rules/framework/hugo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { register } from '../../register.js';

register({
tech: 'hugo',
name: 'Hugo',
type: 'framework',
files: ['hugo.toml'],
dependencies: [
{ type: 'docker', name: 'betterweb/hugo' },
{ type: 'docker', name: 'hugomods/hugo' },
{ type: 'docker', name: 'klakegg/hugo' },
{ type: 'githubAction', name: 'peaceiris/actions-hugo' },
{ type: 'npm', name: 'hugo-lunr-indexer' },
{ type: 'npm', name: 'hugo-extended' },
],
});
1 change: 1 addition & 0 deletions src/rules/framework/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import './apache_thrift.js';
import './ghost.js';
import './hugo.js';
16 changes: 16 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ exports[`docker > should match everything 1`] = `
"haproxy",
"hashicorp_vault",
"httpd",
"hugo",
"influxdb",
"jenkins",
"jira",
Expand Down Expand Up @@ -183,6 +184,11 @@ exports[`docker > should match everything 2`] = `
"atlassian/jira-software",
"0.0.0",
],
[
"docker",
"betterweb/hugo",
"0.0.0",
],
[
"docker",
"bitnami/azure-cli",
Expand Down Expand Up @@ -358,6 +364,11 @@ exports[`docker > should match everything 2`] = `
"httpd",
"0.0.0",
],
[
"docker",
"hugomods/hugo",
"0.0.0",
],
[
"docker",
"influxdb",
Expand Down Expand Up @@ -393,6 +404,11 @@ exports[`docker > should match everything 2`] = `
"kibana",
"0.0.0",
],
[
"docker",
"klakegg/hugo",
"0.0.0",
],
[
"docker",
"kong",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,11 @@ exports[`docker > should match all dependencies 2`] = `
"peaceiris/actions-gh-pages",
"1",
],
[
"githubAction",
"peaceiris/actions-hugo",
"1",
],
[
"githubAction",
"planetscale/create-branch-action",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ exports[`npm > should match everything 1`] = `
"github",
"hotjar",
"huggingface",
"hugo",
"hyperdx",
"hypertune",
"influxdb",
Expand Down Expand Up @@ -1701,6 +1702,16 @@ exports[`npm > should match everything 2`] = `
"grammy",
"0.0.0",
],
[
"npm",
"hugo-extended",
"0.0.0",
],
[
"npm",
"hugo-lunr-indexer",
"0.0.0",
],
[
"npm",
"hypertune",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export type AllowedKeys =
| 'httpd'
| 'hubspot'
| 'huggingface'
| 'hugo'
| 'hyperdx'
| 'hypertune'
| 'ibmcloud'
Expand Down

0 comments on commit 29d6693

Please sign in to comment.