-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from AztecProtocol/revert-89-zpedro/0.34.0
feat: long live noirenberg
- Loading branch information
Showing
9 changed files
with
494 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,3 @@ package-lock.json | |
|
||
# To use with nektos/act | ||
.github/event.json | ||
npx.js | ||
bin/*.js |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Oops, something went wrong.