Skip to content

Commit

Permalink
chore: delete the compiler from noir-compiler (AztecProtocol#3959)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Jan 11, 2024
1 parent 5843722 commit 9aa0986
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 1,724 deletions.
1 change: 1 addition & 0 deletions noir/compiler/wasm/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
noir-script/target
dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,13 @@ import { LogFn } from '@aztec/foundation/log';
import { Command } from 'commander';
import { dirname } from 'path';

/**
* CLI options for configuring behavior
*/
interface Options {
// eslint-disable-next-line jsdoc/require-jsdoc
outdir: string;
// eslint-disable-next-line jsdoc/require-jsdoc
typescript: string | undefined;
// eslint-disable-next-line jsdoc/require-jsdoc
interface: string | undefined;
// eslint-disable-next-line jsdoc/require-jsdoc
compiler: string | undefined;
}

/**
*
*/
export function addNoirCompilerCommanderActions(program: Command, log: LogFn = () => {}) {
addCodegenCommanderAction(program, log);
}

/**
*
*/
export function addCompileCommanderAction(program: Command, log: LogFn = () => {}) {
program
.command('compile')
.argument('<project-path>', 'Path to the bin or Aztec.nr project to compile')
.option('-o, --outdir <path>', 'Output folder for the binary artifacts, relative to the project path', 'target')
.option('-ts, --typescript <path>', 'Optional output folder for generating typescript wrappers', undefined)
.option('-i, --interface <path>', 'Optional output folder for generating an Aztec.nr contract interface', undefined)
.option('-c --compiler <string>', 'Which compiler to use. Either nargo or wasm.', 'wasm')
.description('Compiles the Noir Source in the target project')

.action(async (projectPath: string, options: Options) => {
const { compileNoir } = await import('./compile_noir.js');
await compileNoir(projectPath, options, log);
});
}

/**
*
*/
Expand Down
133 changes: 0 additions & 133 deletions yarn-project/noir-compiler/src/cli/compile_noir.ts

This file was deleted.

100 changes: 0 additions & 100 deletions yarn-project/noir-compiler/src/compile/nargo.ts

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9aa0986

Please sign in to comment.