gaztec 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -12
- package/gaztec +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,30 +1,70 @@
|
|
|
1
1
|
# Aztec version manager
|
|
2
2
|
|
|
3
|
-
Manage your `aztec` versions without
|
|
3
|
+
Manage your `aztec` versions without hassle. Automatically switch between versions in projects by creating a `.aztecrc` file.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Why gaztec?
|
|
6
|
+
|
|
7
|
+
- **No installation** — just run `npx gaztec` and go. No global install, no `npm i` required
|
|
8
|
+
- **Automatic version switching** — drop a `.aztecrc` in your project and gaztec picks the right version
|
|
9
|
+
- **No `aztec-up` needed** — versions are fetched on demand when you run a command
|
|
10
|
+
- **Simple** — `npx gaztec <command>` replaces `aztec <command>` everywhere
|
|
11
|
+
|
|
12
|
+
## Quick start
|
|
6
13
|
|
|
7
14
|
```sh
|
|
8
|
-
|
|
15
|
+
# create a file that defines the version of Aztec for your project
|
|
16
|
+
echo "4.0.0-devnet.2-patch.2" > .aztecrc
|
|
17
|
+
|
|
18
|
+
# use gaztec where you would use aztec (no install needed)
|
|
19
|
+
npx gaztec --version
|
|
20
|
+
#> 4.0.0-devnet.2-patch.2
|
|
9
21
|
```
|
|
10
22
|
|
|
11
|
-
|
|
23
|
+
## `gaztec nargo`
|
|
24
|
+
|
|
25
|
+
`gaztec nargo` exposes the pinned version of `nargo` that is compatible with the installed version of Aztec. Useful if you don't want to manage the version of `nargo` yourself.
|
|
12
26
|
|
|
13
27
|
```sh
|
|
14
|
-
|
|
28
|
+
# runs `nargo check` with the pinned version of `nargo`
|
|
29
|
+
npx gaztec nargo check
|
|
15
30
|
```
|
|
16
31
|
|
|
17
|
-
|
|
32
|
+
## Installation (optional)
|
|
18
33
|
|
|
19
|
-
|
|
34
|
+
You can install gaztec globally or as a dev dependency (to pin the version) if you prefer:
|
|
20
35
|
|
|
21
36
|
```sh
|
|
22
|
-
|
|
23
|
-
|
|
37
|
+
npm i -g gaztec
|
|
38
|
+
# or
|
|
39
|
+
npm i gaztec -D
|
|
40
|
+
```
|
|
24
41
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
42
|
+
**Note**: with `pnpm` or `yarn`, use `npx gaztec` instead of `pnpm gaztec` or `yarn gaztec`.
|
|
43
|
+
|
|
44
|
+
## CI
|
|
45
|
+
|
|
46
|
+
Commit a `.aztecrc` file to your repo and use `npx gaztec` in your workflow. No setup step needed:
|
|
47
|
+
|
|
48
|
+
```yaml
|
|
49
|
+
name: Test
|
|
50
|
+
|
|
51
|
+
on: [push]
|
|
52
|
+
|
|
53
|
+
jobs:
|
|
54
|
+
test:
|
|
55
|
+
runs-on: ubuntu-latest
|
|
56
|
+
steps:
|
|
57
|
+
- uses: actions/checkout@v4
|
|
58
|
+
- uses: pnpm/action-setup@v4
|
|
59
|
+
- uses: actions/setup-node@v4
|
|
60
|
+
with:
|
|
61
|
+
node-version: 24
|
|
62
|
+
|
|
63
|
+
- name: Compile Aztec contracts
|
|
64
|
+
run: npx gaztec compile
|
|
65
|
+
|
|
66
|
+
- name: Start Aztec Local Network
|
|
67
|
+
run: npx gaztec start --local-network
|
|
28
68
|
```
|
|
29
69
|
|
|
30
70
|
## Compatibility with `aztec`
|
package/gaztec
CHANGED