-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into zpedro/noir_bb_honk
- Loading branch information
Showing
8 changed files
with
493 additions
and
206 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
Oops, something went wrong.