Skip to content

Commit

Permalink
fix(rules): add RedwoodJs
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 12, 2023
1 parent f688aaf commit 03d5439
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 2 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 @@ -261,6 +261,7 @@ exports[`all > should match everything 1`] = `
"react",
"reactemail",
"redis",
"redwoodjs",
"relativeci",
"render",
"renovate",
Expand Down
2 changes: 1 addition & 1 deletion src/rules/cloud/vercel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ register({
files: ['.vercel', 'vercel.json'],
dependencies: [
{ type: 'npm', name: 'vercel' },
{ type: 'npm', name: /^@vercel\//, example: '@vercel/remote-nx' },
{ type: 'npm', name: '@vercel/client' },
{ type: 'terraform', name: 'registry.terraform.io/vercel/vercel' },
{ type: 'rust', name: /^vercel_/, example: 'vercel_runtime' },
{ type: 'githubAction', name: 'snaplet/vercel-action' },
Expand Down
1 change: 1 addition & 0 deletions src/rules/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import './prisma.js';
import './puppeteer.js';
import './react.js';
import './reactEmail.js';
import './redwoodjs.js';
import './rollup.js';
import './sequelize.js';
import './socketio.js';
Expand Down
19 changes: 19 additions & 0 deletions src/rules/js/redwoodjs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { register } from '../../register.js';

register({
tech: 'redwoodjs',
name: 'RedwoodJs',
type: 'tool',
files: ['redwood.toml'],
dependencies: [
{ type: 'npm', name: '@vercel/redwood' },
{ type: 'npm', name: '@redwoodjs/api-server' },
{ type: 'npm', name: '@redwoodjs/telemetry' },
{ type: 'npm', name: '@redwoodjs/auth' },
{ type: 'npm', name: '@redwoodjs/api' },
{ type: 'npm', name: '@redwoodjs/core' },
{ type: 'npm', name: '@redwoodjs/web' },
{ type: 'npm', name: '@defer/redwood' },
{ type: 'npm', name: 'inngest-setup-redwoodjs' },
],
});
48 changes: 47 additions & 1 deletion src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ exports[`npm > should match everything 1`] = `
"react",
"reactemail",
"redis",
"redwoodjs",
"relativeci",
"renovate",
"replit",
Expand Down Expand Up @@ -704,6 +705,11 @@ exports[`npm > should match everything 2`] = `
"@defer/client",
"0.0.0",
],
[
"npm",
"@defer/redwood",
"0.0.0",
],
[
"npm",
"@docsearch/react",
Expand Down Expand Up @@ -999,6 +1005,36 @@ exports[`npm > should match everything 2`] = `
"@placekit/client-js",
"0.0.0",
],
[
"npm",
"@redwoodjs/api",
"0.0.0",
],
[
"npm",
"@redwoodjs/api-server",
"0.0.0",
],
[
"npm",
"@redwoodjs/auth",
"0.0.0",
],
[
"npm",
"@redwoodjs/core",
"0.0.0",
],
[
"npm",
"@redwoodjs/telemetry",
"0.0.0",
],
[
"npm",
"@redwoodjs/web",
"0.0.0",
],
[
"npm",
"@relative-ci/agent",
Expand Down Expand Up @@ -1169,6 +1205,11 @@ exports[`npm > should match everything 2`] = `
"@vercel/blob",
"0.0.0",
],
[
"npm",
"@vercel/client",
"0.0.0",
],
[
"npm",
"@vercel/kv",
Expand All @@ -1181,7 +1222,7 @@ exports[`npm > should match everything 2`] = `
],
[
"npm",
"@vercel/remote-nx",
"@vercel/redwood",
"0.0.0",
],
[
Expand Down Expand Up @@ -1414,6 +1455,11 @@ exports[`npm > should match everything 2`] = `
"hypertune",
"0.0.0",
],
[
"npm",
"inngest-setup-redwoodjs",
"0.0.0",
],
[
"npm",
"instantsearch.js",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ export type AllowedKeys =
| 'react'
| 'reactemail'
| 'redis'
| 'redwoodjs'
| 'relativeci'
| 'render'
| 'renovate'
Expand Down

0 comments on commit 03d5439

Please sign in to comment.