Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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