Skip to content

Commit

Permalink
Merge pull request #91 from AztecProtocol/revert-89-zpedro/0.34.0
Browse files Browse the repository at this point in the history
feat: long live noirenberg
  • Loading branch information
signorecello authored Oct 25, 2024
2 parents 1273f3f + c955a80 commit 2d4034e
Show file tree
Hide file tree
Showing 9 changed files with 494 additions and 207 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ package-lock.json

# To use with nektos/act
.github/event.json
npx.js
bin/*.js
48 changes: 0 additions & 48 deletions bin/shell.ts

This file was deleted.

15 changes: 0 additions & 15 deletions bin/versions.ts

This file was deleted.

Binary file removed bun.lockb
Binary file not shown.
42 changes: 0 additions & 42 deletions install

This file was deleted.

39 changes: 39 additions & 0 deletions npx.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env node
import { Command } from 'commander';
import select from '@inquirer/select';
import input from '@inquirer/input';
const program = new Command();
import tiged from 'tiged';

program.action(async () => {
const appType = await select({
message: 'Please choose an option:',
choices: [
{ value: 'vite-hardhat', name: 'Browser App using Vite' },
{ value: 'with-foundry', name: 'Solidity App using Foundry' },
],
});

console.log(`You chose: ${appType}`);

const appName = await input({
message: 'Your app name:',
default: 'my-noir-app',
});

const emitter = tiged(`noir-lang/noir-starter/${appType}`, {
disableCache: true,
force: true,
verbose: true,
});

emitter.on('info', info => {
console.log(info.message);
});

emitter.clone(`./${appName}`).then(() => {
console.log('done');
});
});

program.parse();
90 changes: 0 additions & 90 deletions npx.ts

This file was deleted.

12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
{
"name": "noirenberg",
"name": "create-noir",
"version": "0.1.1",
"type": "module",
"description": "This repo contains starter projects using Noir and Barretenberg, together with a CLI tool to help you get started.",
"description": "This is a reference repo to help you get started with writing zero-knowledge circuits with [Noir](https://noir-lang.org/).",
"bin": "npx.js",
"author": "",
"license": "ISC",
"scripts": {
"start": "bunx tsx npx.ts",
"compile": "tsc npx.ts --esModuleInterop true --module nodenext && chmod +x npx.js",
"publish": "bun compile && npm publish"
},
"dependencies": {
"@inquirer/input": "^1.2.16",
"@inquirer/select": "^1.3.3",
"axios": "^1.7.7",
"commander": "^11.1.0",
"log-symbols": "^7.0.0",
"ora": "^8.1.0",
"tiged": "^2.12.6"
}
}
Loading

0 comments on commit 2d4034e

Please sign in to comment.