Skip to content

Commit

Permalink
fix(rules): add Eleventy
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 23, 2023
1 parent 25c4257 commit da822cc
Show file tree
Hide file tree
Showing 6 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 @@ -140,6 +140,7 @@ exports[`all > should match everything 1`] = `
"elasticsearch",
"elasticstack",
"electron",
"eleventy",
"elixir",
"emberjs",
"equinix",
Expand Down
12 changes: 12 additions & 0 deletions src/rules/framework/eleventy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { register } from '../../register.js';

register({
tech: 'eleventy',
name: 'Eleventy',
type: 'framework',
files: ['.eleventy.js', 'eleventy.config.js', 'eleventy.config.cjs'],
dependencies: [
{ type: 'npm', name: '@11ty/eleventy' },
{ type: 'githubAction', name: 'TartanLlama/actions-eleventy' },
],
});
1 change: 1 addition & 0 deletions src/rules/framework/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import './assemble.js';
import './astro.js';
import './blitzjs.js';
import './docusaurus.js';
import './eleventy.js';
import './ghost.js';
import './hugo.js';
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ exports[`docker > should match all dependencies 2`] = `
"SonarSource/sonarcloud-github-actio",
"1",
],
[
"githubAction",
"TartanLlama/actions-eleventy",
"1",
],
[
"githubAction",
"actions/deploy-pages",
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 @@ -85,6 +85,7 @@ exports[`npm > should match everything 1`] = `
"dynatrace",
"elasticsearch",
"electron",
"eleventy",
"emberjs",
"esbuild",
"eslint",
Expand Down Expand Up @@ -251,6 +252,11 @@ exports[`npm > should match everything 1`] = `

exports[`npm > should match everything 2`] = `
[
[
"npm",
"@11ty/eleventy",
"0.0.0",
],
[
"npm",
"@adobe/magento-storefront-events-sdk",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export type AllowedKeys =
| 'elasticsearch'
| 'elasticstack'
| 'electron'
| 'eleventy'
| 'elixir'
| 'emberjs'
| 'equinix'
Expand Down

0 comments on commit da822cc

Please sign in to comment.