Skip to content

Commit b1f4e10

Browse files
committed
Document clean scripts
1 parent 41554a4 commit b1f4e10

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

scripts/clean/clean-all.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#!/usr/bin/env bash
22
set -Eeuo pipefail
33

4+
# Description:
5+
# This script removes Node build artifacts generated by the o1js build process
6+
# as well as test-related output files:
7+
# - Runs the primary clean script to remove `dist/` and `src/bindings/compiled/_node_bindings`.
8+
# - Deletes test report and test artifacts directories under `tests/`.
9+
#
10+
# Usage:
11+
# npm run clean:all
12+
13+
414
# shared libraries
515
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
616
source "$SCRIPT_DIR/../lib/ux.sh"

scripts/clean/clean-artifacts.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/usr/bin/env bash
22
set -Eeuo pipefail
33

4+
# Description:
5+
# Deep-clean o1js build artifacts produced across multiple toolchains. This script
6+
# removes compiled JS outputs, compiled node/web bindings, and intermediate outputs created
7+
# by OCaml/Dune, Rust/WASM, and the Mina proof-systems build.
8+
#
9+
# Usage:
10+
# npm run clean:artifacts
11+
12+
413
# shared libraries
514
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
615
source "$SCRIPT_DIR/../lib/ux.sh"

scripts/clean/clean.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#!/usr/bin/env bash
22
set -Eeuo pipefail
33

4+
# Description:
5+
# This script removes build artifacts generated by the o1js build process.
6+
# Specifically, it cleans the `dist/` output directory and the compiled
7+
# Node.js bindings under `src/bindings/compiled/_node_bindings`, which are
8+
# the artifacts required to work with Node locally.
9+
#
10+
# Usage:
11+
# npm run clean
12+
13+
414
# shared libraries
515
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
616
source "$SCRIPT_DIR/../lib/ux.sh"

0 commit comments

Comments
 (0)