Skip to content

Commit

Permalink
remove old files
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter committed Oct 11, 2024
1 parent fa5d9dc commit c53b114
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 55 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TargetConfiguration } from '@nx/devkit';
import { buildImageTarget } from './build-image-target';
import { SageMonorepoProjectConfiguration } from './sage-monorepo-project-configuration';
import { SageMonorepoProjectConfiguration } from './project-configuration';
import { ProjectConfigurationBuilderOptions } from './project-configuration-builder-options';

export async function buildProjectConfiguration(
Expand Down
10 changes: 5 additions & 5 deletions libs/sage-monorepo/nx-plugin/src/plugins/plugin-configuration.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { PluginOptions } from './plugin-options';

export type PluginConfiguration = {
buildImageTargetName: string;
export type SageMonorepoPluginOptions = {
buildImageTargetName?: string;
};

export type SageMonorepoPluginConfiguration = Required<SageMonorepoPluginOptions>;

export function createPluginConfiguration({
buildImageTargetName = 'build-image',
}: PluginOptions): PluginConfiguration {
}: SageMonorepoPluginOptions): SageMonorepoPluginConfiguration {
return {
buildImageTargetName,
};
Expand Down
3 changes: 0 additions & 3 deletions libs/sage-monorepo/nx-plugin/src/plugins/plugin-options.ts

This file was deleted.

12 changes: 5 additions & 7 deletions libs/sage-monorepo/nx-plugin/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ import { calculateHashForCreateNodes } from '@nx/devkit/src/utils/calculate-hash
import { dirname, join } from 'path';
import { existsSync, readdirSync } from 'fs';
import { getLockFileName } from '@nx/js';
import { SageMonorepoProjectConfiguration } from './sage-monorepo-project-configuration';
import { createPluginConfiguration } from './plugin-configuration';
import { PluginOptions } from './plugin-options';
import { SageMonorepoProjectConfiguration } from './project-configuration';
import { createPluginConfiguration, SageMonorepoPluginOptions } from './plugin-configuration';
import { buildProjectConfiguration } from './build-project-configuration';
import { inferProjectType } from './project-type';
import { ProjectConfigurationBuilderOptions } from './project-configuration-builder-options';
import { inferProjectMetadata } from './project-metadata';
import { inferProjectMetadata, inferProjectType } from './project-metadata';

function readProjectCOnfigurationsCache(
cachePath: string,
Expand All @@ -38,7 +36,7 @@ function writeProjectConfigurationsToCache(

const projectFilePattern = '{apps,libs}/openchallenges/**/project.json';

export const createNodesV2: CreateNodesV2<PluginOptions> = [
export const createNodesV2: CreateNodesV2<SageMonorepoPluginOptions> = [
projectFilePattern,
async (configFilePaths, options, context) => {
options ??= {};
Expand All @@ -64,7 +62,7 @@ export const createNodesV2: CreateNodesV2<PluginOptions> = [

async function createNodesInternal(
configFilePath: string,
options: PluginOptions | undefined,
options: SageMonorepoPluginOptions | undefined,
context: CreateNodesContext,
projectConfigurationsCache: Record<string, SageMonorepoProjectConfiguration>,
) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { PluginConfiguration } from './plugin-configuration';
import { SageMonorepoPluginConfiguration } from './plugin-configuration';
import { ProjectMetadata } from './project-metadata';

export type ProjectConfigurationBuilderOptions = {
projectRoot: string;
projectName: string;
pluginConfig: PluginConfiguration;
pluginConfig: SageMonorepoPluginConfiguration;
projectMetadata: ProjectMetadata;
dockerized?: boolean;
};
11 changes: 0 additions & 11 deletions libs/sage-monorepo/nx-plugin/src/plugins/project-type.ts

This file was deleted.

26 changes: 0 additions & 26 deletions libs/sage-monorepo/nx-plugin/src/plugins/project.ts

This file was deleted.

0 comments on commit c53b114

Please sign in to comment.