Skip to content

Commit

Permalink
fix(workspace): move runner-app to dir (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherPHolder authored Oct 8, 2024
2 parents 73a4cf9 + 821c230 commit 22bdc46
Show file tree
Hide file tree
Showing 126 changed files with 699 additions and 724 deletions.
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint"
"targetName": "eslint:lint"
}
},
{
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "app-speed",
"main": "apps/user-flow-runner/src/app/runner.ts",
"scripts": {
"start": "nx serve user-flow-manager",
"lint:affected": "nx run-many --all --t lint",
Expand Down
4 changes: 0 additions & 4 deletions packages/audit-queue/package.json

This file was deleted.

41 changes: 0 additions & 41 deletions packages/audit-queue/project.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/audit-queue/src/index.ts

This file was deleted.

33 changes: 0 additions & 33 deletions packages/audit-queue/vite.config.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/audit-store/package.json

This file was deleted.

41 changes: 0 additions & 41 deletions packages/audit-store/project.json

This file was deleted.

2 changes: 0 additions & 2 deletions packages/audit-store/src/index.ts

This file was deleted.

33 changes: 0 additions & 33 deletions packages/audit-store/vite.config.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/cli-interfaces/package.json

This file was deleted.

28 changes: 0 additions & 28 deletions packages/cli-interfaces/project.json

This file was deleted.

7 changes: 0 additions & 7 deletions packages/cli-interfaces/src/lib/queue.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/cli-middleware/package.json

This file was deleted.

41 changes: 0 additions & 41 deletions packages/cli-middleware/project.json

This file was deleted.

11 changes: 0 additions & 11 deletions packages/cli-middleware/src/lib/queue/queue.factory.ts

This file was deleted.

22 changes: 10 additions & 12 deletions packages/esbuild-meta/src/lib/filter-meta.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { CommandModule, CommandBuilder, Options, InferredOptionTypes, Argv } from 'yargs';
import { Metafile } from 'esbuild';
import {
extractEntryPoints,
filterMetaFromEntryPoints,
removeDynamicImports,
getJson,
makeJson,
} from './utils.js';
import { extractEntryPoints, filterMetaFromEntryPoints, removeDynamicImports, getJson, makeJson } from './utils.js';

export const DEMAND_STATS_PATH = 'The path to a stats.json file is required';

Expand All @@ -21,7 +15,7 @@ const outPath = {
alias: 'o',
type: 'string',
description: 'The path where the new file should be saved',
default: 'initial-stats.json'
default: 'initial-stats.json',
} as const satisfies Options;

const excludeDynamicImports = {
Expand All @@ -46,23 +40,27 @@ type FilterMetaCommandModule = CommandModule<unknown, FilterMetaOptions>;

const filterMetaBuilder: CommandBuilder<unknown, FilterMetaOptions> = (argv: Argv<unknown>) => {
return argv.options(filterMetaOptions);
}
};

const filterMetaHandler: FilterMetaCommandModule['handler'] = (argv: FilterMetaOptions) => {
const meta = getJson<Metafile>(argv.statsPath);
const entryPoints = extractEntryPoints(meta, argv.entryPoints);

console.log('WOLOLO', entryPoints);

filterMetaFromEntryPoints(meta, entryPoints);

if (argv.excludeDynamicImports) {
removeDynamicImports(meta);
}
makeJson(argv.outPath, meta);
console.log('Filtered Meta File was successfully created as ' + argv.outPath);
}
};

export const filterMetaCommand: FilterMetaCommandModule = {
command: 'filter',
describe: 'Filters the meta file to only include chunks required by specified entry points',
aliases: 'f',
builder: filterMetaBuilder,
handler: filterMetaHandler
}
handler: filterMetaHandler,
};
Loading

0 comments on commit 22bdc46

Please sign in to comment.