Skip to content

Commit

Permalink
feat: Add initial version of noir.js (#2681)
Browse files Browse the repository at this point in the history
Co-authored-by: kevaundray <[email protected]>
Co-authored-by: Tom French <[email protected]>
  • Loading branch information
3 people authored Sep 14, 2023
1 parent cfd555f commit e1687c9
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/noir-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release and Publish Noir Js

on:
workflow_dispatch:

jobs:
release-noir-js:
name: Release and Publish Noir Js
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: yarn install --immutable

- name: Build noir_js
run: yarn workspace @noir-lang/noir_js build

- name: Publish to NPM
working-directory: ./tooling/noir_js
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"compiler/source-resolver",
"tooling/noirc_abi_wasm",
"compiler/integration-tests",
"tooling/noir_js",
"release-tests"
],
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions tooling/noir_js/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import * as acvm from "@noir-lang/acvm_js";
import * as noirc from "@noir-lang/noirc_abi";
export { acvm, noirc }
13 changes: 13 additions & 0 deletions tooling/noir_js/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@noir-lang/noir_js",
"collaborators": [
"The Noir Team <[email protected]>"
],
"version": "0.0.1",
"packageManager": "[email protected]",
"license": "(MIT OR Apache-2.0)",
"dependencies": {
"@noir-lang/acvm_js": "0.26.1",
"@noir-lang/noirc_abi": "workspace:*"
}
}
16 changes: 16 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@ __metadata:
languageName: node
linkType: hard

"@noir-lang/acvm_js@npm:0.26.1":
version: 0.26.1
resolution: "@noir-lang/acvm_js@npm:0.26.1"
checksum: ae8cb6e31610cd8aa392855342d0c953a1bc4cd9e07236340341afa5815696a69a6635c38241f1d6a5dd30c5a8ae49234f2ba8b71d46c5d1a46756ff6f4dde3a
languageName: node
linkType: hard

"@noir-lang/acvm_js@npm:^0.26.0":
version: 0.26.0
resolution: "@noir-lang/acvm_js@npm:0.26.0"
Expand All @@ -402,6 +409,15 @@ __metadata:
languageName: unknown
linkType: soft

"@noir-lang/noir_js@workspace:tooling/noir_js":
version: 0.0.0-use.local
resolution: "@noir-lang/noir_js@workspace:tooling/noir_js"
dependencies:
"@noir-lang/acvm_js": 0.26.1
"@noir-lang/noirc_abi": "workspace:*"
languageName: unknown
linkType: soft

"@noir-lang/noir_wasm@workspace:*, @noir-lang/noir_wasm@workspace:compiler/wasm":
version: 0.0.0-use.local
resolution: "@noir-lang/noir_wasm@workspace:compiler/wasm"
Expand Down

0 comments on commit e1687c9

Please sign in to comment.