Skip to content

Commit

Permalink
fix(rules): add Expojs
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 23, 2023
1 parent da822cc commit 2a14943
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/rules/__snapshots__/cloud.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ exports[`hosting > should match everything with files 1`] = `
[
"firebase",
"flyio",
"heroku",
"netlify",
"vercel",
]
Expand Down
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 @@ -147,6 +147,7 @@ exports[`all > should match everything 1`] = `
"esbuild",
"eslint",
"expodev",
"expojs",
"express",
"fabric",
"facebook",
Expand Down
1 change: 0 additions & 1 deletion src/rules/cloud/heroku.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ register({
tech: 'heroku',
name: 'Heroku',
type: 'cloud',
files: ['app.json'],
dependencies: [
{ type: 'terraform', name: 'registry.terraform.io/heroku/heroku' },
{ type: 'ruby', name: 'platform-api' },
Expand Down
8 changes: 8 additions & 0 deletions src/rules/framework/expojs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'expojs',
name: 'ExpoJS',
type: 'framework',
dependencies: [{ type: 'npm', name: 'expo' }],
});
1 change: 1 addition & 0 deletions src/rules/framework/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ import './astro.js';
import './blitzjs.js';
import './docusaurus.js';
import './eleventy.js';
import './expojs.js';
import './ghost.js';
import './hugo.js';
1 change: 1 addition & 0 deletions src/rules/js/emberjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ register({
tech: 'emberjs',
name: 'Ember',
type: 'framework',
files: ['ember-cli-build.js'],
dependencies: [
{ type: 'npm', name: 'ember-cli' },
{ type: 'npm', name: 'ember' },
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 @@ -89,6 +89,7 @@ exports[`npm > should match everything 1`] = `
"emberjs",
"esbuild",
"eslint",
"expojs",
"express",
"fastify",
"fastly",
Expand Down Expand Up @@ -1652,6 +1653,11 @@ exports[`npm > should match everything 2`] = `
"eslint",
"0.0.0",
],
[
"npm",
"expo",
"0.0.0",
],
[
"npm",
"express",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export type AllowedKeys =
| 'esbuild'
| 'eslint'
| 'expodev'
| 'expojs'
| 'express'
| 'fabric'
| 'facebook'
Expand Down

0 comments on commit 2a14943

Please sign in to comment.