Skip to content

Commit

Permalink
fix(rules): add Gridsome
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 23, 2023
1 parent 2a14943 commit 380f20d
Show file tree
Hide file tree
Showing 6 changed files with 19 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 @@ -202,6 +202,7 @@ exports[`all > should match everything 1`] = `
"golangcilint",
"googleanalytics",
"grafana",
"gridsome",
"haproxy",
"hashicorp_vault",
"healthchecksio",
Expand Down
9 changes: 9 additions & 0 deletions src/rules/framework/gridsome.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { register } from '../../register.js';

register({
tech: 'gridsome',
name: 'Gridsome',
type: 'framework',
files: ['gridsome.config.js'],
dependencies: [{ type: 'npm', name: 'gridsome' }],
});
1 change: 1 addition & 0 deletions src/rules/framework/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ import './blitzjs.js';
import './docusaurus.js';
import './eleventy.js';
import './expojs.js';
import './gridsome.js';
import './ghost.js';
import './hugo.js';
1 change: 1 addition & 0 deletions src/rules/js/gastby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ register({
tech: 'gatsby',
name: 'Gatsby',
type: 'tool',
files: ['gatsby-config.js', 'gatsby-config.ts'],
dependencies: [
{ type: 'npm', name: 'gatsby' },
{ type: 'npm', name: 'gatsby-cli' },
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ exports[`npm > should match everything 1`] = `
"ghost",
"gitbook",
"github",
"gridsome",
"hotjar",
"huggingface",
"hugo",
Expand Down Expand Up @@ -1743,6 +1744,11 @@ exports[`npm > should match everything 2`] = `
"grammy",
"0.0.0",
],
[
"npm",
"gridsome",
"0.0.0",
],
[
"npm",
"hugo-extended",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export type AllowedKeys =
| 'golangcilint'
| 'googleanalytics'
| 'grafana'
| 'gridsome'
| 'haproxy'
| 'hashicorp_vault'
| 'healthchecksio'
Expand Down

0 comments on commit 380f20d

Please sign in to comment.