Skip to content

Commit

Permalink
feat: introduce Framework category
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 13, 2023
1 parent 685e8cf commit cd37660
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 16 deletions.
4 changes: 3 additions & 1 deletion src/payload/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import type { AllowedKeys } from '../types/techs.js';

import { Payload } from './index.js';

const notAComponent = ['ci', 'language', 'tool', 'framework'];

/**
* When receive a tech in a component, we can deduct a new Component that was missing
* For example we receive:
Expand All @@ -18,7 +20,7 @@ export function findImplicitComponent(
reason: string[]
) {
const ref = listIndexed[tech];
if (ref.type === 'ci' || ref.type === 'language' || ref.type === 'tool') {
if (notAComponent.includes(ref.type)) {
return;
}

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/rules/framework/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './apache_thrift.js';
1 change: 1 addition & 0 deletions src/rules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import './ci/index.js';
import './cloud/index.js';
import './db/index.js';
import './etl/index.js';
import './framework/index.js';
import './hosting/index.js';
import './js/index.js';
import './language/index.js';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/js/emberjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'emberjs',
name: 'Ember',
type: 'tool',
type: 'framework',
dependencies: [
{ type: 'npm', name: 'ember-cli' },
{ type: 'npm', name: 'ember' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/js/meteorjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'meteorjs',
name: 'Meteor',
type: 'tool',
type: 'framework',
files: ['.meteor'],
dependencies: [
{ type: 'npm', name: 'meteor' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/js/nextjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'nextjs',
name: 'Next.js',
type: 'tool',
type: 'framework',
files: ['next.config.js'],
dependencies: [{ type: 'npm', name: 'next' }],
});
2 changes: 1 addition & 1 deletion src/rules/js/nuxtjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'nuxtjs',
name: 'Nuxt.js',
type: 'tool',
type: 'framework',
files: ['nuxt.config.js'],
dependencies: [{ type: 'npm', name: 'nuxt' }],
});
2 changes: 1 addition & 1 deletion src/rules/js/redwoodjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'redwoodjs',
name: 'RedwoodJs',
type: 'tool',
type: 'framework',
files: ['redwood.toml'],
dependencies: [
{ type: 'npm', name: '@vercel/redwood' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/js/strapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'strapi',
name: 'Strapi',
type: 'tool',
type: 'framework',
dependencies: [
{ type: 'npm', name: 'strapi' },
{ type: 'npm', name: '@strapi/strapi' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/php/joomla.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'joomla',
name: 'Joomla!',
type: 'tool',
type: 'framework',
dependencies: [
{ type: 'php', name: 'joomla/application' },
{ type: 'docker', name: 'joomla' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/php/laravel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'laravel',
name: 'Laravel',
type: 'tool',
type: 'framework',
files: ['artisan'],
dependencies: [{ type: 'php', name: 'laravel/framework' }],
});
2 changes: 1 addition & 1 deletion src/rules/php/magento.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'magento',
name: 'Magento',
type: 'tool',
type: 'framework',
dependencies: [
{ type: 'php', name: 'magento/composer' },
{ type: 'php', name: 'fastly/magento2' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/php/prestashop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'prestashop',
name: 'Prestashop',
type: 'tool',
type: 'framework',
dependencies: [
{ type: 'php', name: 'prestashop/ps_facetedsearch' },
{ type: 'php', name: 'prestashop/ps_shoppingcart' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/php/symfony.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { register } from '../../register.js';
register({
tech: 'symfony',
name: 'Symfony',
type: 'tool',
type: 'framework',
dependencies: [{ type: 'php', name: 'symfony/symfony' }],
});
2 changes: 1 addition & 1 deletion src/rules/php/woocommerce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { register } from '../../register.js';
register({
tech: 'woocommerce',
name: 'WooCommerce',
type: 'tool',
type: 'framework',
dependencies: [{ type: 'php', name: 'automattic/woocommerce' }],
});
2 changes: 1 addition & 1 deletion src/rules/php/wordpress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'wordpress',
name: 'Wordpress',
type: 'tool',
type: 'framework',
dependencies: [
{ type: 'php', name: 'wp-cli/wp-cli' },
{ type: 'php', name: 'roots/wordpress' },
Expand Down
2 changes: 1 addition & 1 deletion src/rules/php/yii2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { register } from '../../register.js';
register({
tech: 'yii2',
name: 'Yii2',
type: 'tool',
type: 'framework',
dependencies: [{ type: 'php', name: 'yiisoft/yii2' }],
});
1 change: 0 additions & 1 deletion src/rules/tool/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import './ansible.js';
import './apache_thrift.js';
import './apiplatform.js';
import './atlasgo.js';
import './checkov.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 @@ -6,6 +6,7 @@ export type TechType =
| 'cloud'
| 'db'
| 'etl'
| 'framework'
| 'hosting'
| 'language'
| 'messaging'
Expand Down

0 comments on commit cd37660

Please sign in to comment.