Skip to content

Commit

Permalink
fix(rules): add Docusaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 23, 2023
1 parent 3a27de9 commit 25c4257
Show file tree
Hide file tree
Showing 5 changed files with 26 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 @@ -132,6 +132,7 @@ exports[`all > should match everything 1`] = `
"discourse",
"docker",
"doctrinephp",
"docusaurus",
"docusign",
"dropbox",
"dynatrace",
Expand Down
12 changes: 12 additions & 0 deletions src/rules/framework/docusaurus.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { register } from '../../register.js';

register({
tech: 'docusaurus',
name: 'Docusaurus',
type: 'framework',
files: ['docusaurus.config.js'],
dependencies: [
{ type: 'npm', name: '@docusaurus/core' },
{ type: 'npm', name: 'docusaurus' },
],
});
1 change: 1 addition & 0 deletions src/rules/framework/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import './apache_thrift.js';
import './assemble.js';
import './astro.js';
import './blitzjs.js';
import './docusaurus.js';
import './ghost.js';
import './hugo.js';
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 @@ -80,6 +80,7 @@ exports[`npm > should match everything 1`] = `
"datadog",
"deferrun",
"discord",
"docusaurus",
"docusign",
"dynatrace",
"elasticsearch",
Expand Down Expand Up @@ -775,6 +776,11 @@ exports[`npm > should match everything 2`] = `
"@docsearch/react",
"0.0.0",
],
[
"npm",
"@docusaurus/core",
"0.0.0",
],
[
"npm",
"@dynatrace/opentelemetry-core",
Expand Down Expand Up @@ -1595,6 +1601,11 @@ exports[`npm > should match everything 2`] = `
"docsearch.js",
"0.0.0",
],
[
"npm",
"docusaurus",
"0.0.0",
],
[
"npm",
"docusign-esign",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export type AllowedKeys =
| 'discourse'
| 'docker'
| 'doctrinephp'
| 'docusaurus'
| 'docusign'
| 'dropbox'
| 'dynatrace'
Expand Down

0 comments on commit 25c4257

Please sign in to comment.