Skip to content

Commit

Permalink
this idiot of yours had removed package.json from the wrong box...
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Sep 6, 2024
1 parent da4522d commit 421ae06
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 13 deletions.
10 changes: 8 additions & 2 deletions boxes/contract-only/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ The above method just uses the `npx` command, AKA "unboxing the box". This is a
Just open a terminal and write:

```bash
npx aztec-app
npx create-aztec-app
```

It should ask you some questions about your project, install and run the Sandbox (local developer network). You can also start, stop, update, and do other things on the sandbox through this script. Just run:

```bash
npx create-aztec-app sandbox --help
```

## What's in the box
Expand All @@ -34,7 +40,7 @@ The script copied one of the example contracts and put it into a one-size-fits-a
- `yarn codegen` -> Generates a handy TS interface file with all your contract's methods so they're easy to interact with
- `yarn clean` -> Removes artifacts and other things you may not want to have lying around
- `yarn formatting` -> Formats your code with prettier
-
-

## Testing

Expand Down
53 changes: 53 additions & 0 deletions boxes/contract-only/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "@aztec/contract_box",
"description": "My Aztec contract",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"compile": "cd src && ${AZTEC_NARGO:-aztec-nargo} compile",
"codegen": "${AZTEC_BUILDER:-aztec-builder} codegen target -o artifacts",
"clean": "rm -rf ./dest .tsbuildinfo ./artifacts ./target",
"prep": "yarn clean && yarn compile && yarn codegen && tsc -b",
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --runInBand",
"formatting": "prettier --check ./src && eslint ./src",
"formatting:fix": "prettier -w ./src"
},
"dependencies": {
"@aztec/builder": "latest",
"@aztec/accounts": "latest",
"@aztec/aztec.js": "latest"
},
"jest": {
"preset": "ts-jest/presets/default-esm",
"transform": {
"^.+\\.(ts|tsx)$": [
"ts-jest",
{
"useESM": true
}
]
},
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"testRegex": "tests/.*\\.test\\.ts$",
"rootDir": "./"
},
"devDependencies": {
"@playwright/test": "1.42.0",
"@types/jest": "^29.5.0",
"@types/node": "^20.11.17",
"copy-webpack-plugin": "^11.0.0",
"html-webpack-plugin": "^5.6.0",
"jest": "^29.6.4",
"stream-browserify": "^3.0.0",
"ts-loader": "^9.5.1",
"typescript": "^5.0.4",
"util": "^0.12.5",
"webpack": "^5.90.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
},
"packageManager": "yarn@4.0.2"
}
10 changes: 10 additions & 0 deletions boxes/contract-only/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"target": "es2020",
"outDir": "artifacts/build",
"module": "ESNext",
"moduleResolution": "Bundler",
"skipLibCheck": true
},
"include": ["**/*.ts"]
}
1 change: 0 additions & 1 deletion boxes/init/.yarnrc.yml

This file was deleted.

9 changes: 0 additions & 9 deletions boxes/init/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion boxes/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aztec-app",
"packageManager": "yarn@4.0.2",
"version": "0.4.9",
"version": "0.5.0",
"type": "module",
"scripts": {
"compile": "yarn workspaces foreach -A -v run compile",
Expand Down

0 comments on commit 421ae06

Please sign in to comment.