Skip to content

Commit

Permalink
fix: remove unused tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangsibecas committed Sep 8, 2024
1 parent 1a11c4a commit 26f0bb1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 35 deletions.
14 changes: 0 additions & 14 deletions e2e/src/nx-foundry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,27 +81,13 @@ describe('nx-foundry', () => {
cwd: PROJECT_NAME,
},
},
anvil: {
executor: 'nx:run-commands',
options: {
command: 'anvil',
cwd: PROJECT_NAME,
},
},
deploy: {
executor: 'nx:run-commands',
options: {
command: 'forge script',
cwd: PROJECT_NAME,
},
},
cast: {
executor: 'nx:run-commands',
options: {
command: 'cast',
cwd: PROJECT_NAME,
},
},
},
});
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nx-foundry",
"version": "0.0.0",
"version": "0.0.0-e2e",
"license": "MIT",
"scripts": {},
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions src/generators/init/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ export async function initGenerator(tree: Tree) {
testTargetName: 'test',
formatTargetName: 'format',
snapshotTargetName: 'snapshot',
anvilTargetName: 'anvil',
deployTargetName: 'deploy',
castTargetName: 'cast',
},
},
];
Expand Down
18 changes: 0 additions & 18 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ export interface FoundryPluginOptions {
testTargetName?: string;
formatTargetName?: string;
snapshotTargetName?: string;
anvilTargetName?: string;
deployTargetName?: string;
castTargetName?: string;
}

const foundryConfigGlob = '**/foundry.toml';
Expand Down Expand Up @@ -75,27 +73,13 @@ async function createNodesInternal(
},
};

const anvilTarget: TargetConfiguration = {
command: `anvil`,
options: {
cwd: projectRoot,
},
};

const deployTarget: TargetConfiguration = {
command: `forge script`,
options: {
cwd: projectRoot,
},
};

const castTarget: TargetConfiguration = {
command: `cast`,
options: {
cwd: projectRoot,
},
};

return {
projects: {
[projectRoot]: {
Expand All @@ -104,9 +88,7 @@ async function createNodesInternal(
[options.testTargetName]: testTarget,
[options.formatTargetName]: formatTarget,
[options.snapshotTargetName]: snapshotTarget,
[options.anvilTargetName]: anvilTarget,
[options.deployTargetName]: deployTarget,
[options.castTargetName]: castTarget,
},
},
},
Expand Down

0 comments on commit 26f0bb1

Please sign in to comment.