gaztec 0.0.3 → 0.0.5
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
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Aztec version manager
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm i -g gaztec
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Use in your project
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
# create a file that defines the version of Aztec for your project
|
|
13
|
+
echo "2.0.3" > .gaztecrc
|
|
14
|
+
|
|
15
|
+
# use `gaztec` where you would use `aztec`
|
|
16
|
+
gaztec --version
|
|
17
|
+
#> 2.0.3
|
|
18
|
+
|
|
19
|
+
# replacement for `aztec-nargo`
|
|
20
|
+
gaztec-nargo
|
|
21
|
+
|
|
22
|
+
# replacement for `aztec-postprocess-contract`
|
|
23
|
+
gaztec-postprocess-contract
|
|
24
|
+
```
|
package/gaztec
ADDED
|
@@ -12,6 +12,7 @@ install_aztec() {
|
|
|
12
12
|
fi
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
AZTEC_VERSION=""
|
|
15
16
|
# go from the current dir to the root of the filesystem and find the first .gaztecrc file
|
|
16
17
|
dir=$(pwd)
|
|
17
18
|
while [[ $dir != "/" ]]; do
|
|
@@ -21,6 +22,7 @@ while [[ $dir != "/" ]]; do
|
|
|
21
22
|
fi
|
|
22
23
|
dir=$(dirname $dir)
|
|
23
24
|
done
|
|
25
|
+
# if AZTEC_VERSION is still empty, exit
|
|
24
26
|
if [[ -z "$AZTEC_VERSION" ]]; then
|
|
25
27
|
echo "No .gaztecrc file found in the current or parent directories starting from $(pwd)"
|
|
26
28
|
exit 1
|
package/gaztec-nargo
ADDED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gaztec",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Aztec version manager",
|
|
6
6
|
"bin": {
|
|
7
|
-
"gaztec-install": "./gaztec-install
|
|
8
|
-
"gaztec": "./gaztec
|
|
9
|
-
"gaztec-nargo": "./gaztec-nargo
|
|
10
|
-
"gaztec-postprocess-contract": "./gaztec-postprocess-contract
|
|
7
|
+
"gaztec-install": "./gaztec-install",
|
|
8
|
+
"gaztec": "./gaztec",
|
|
9
|
+
"gaztec-nargo": "./gaztec-nargo",
|
|
10
|
+
"gaztec-postprocess-contract": "./gaztec-postprocess-contract"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/gaztec-nargo.sh
DELETED