-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
50 lines (36 loc) · 1.25 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# build:
# echo "Building the project..."
# cargo b --verbose --release
# prerelease:
# echo "Building the project for release..."
# ./target/debug/tools
# dev:
# echo "Running the project..."
# cargo watch -x build
# qtest:
# echo "Running tests..."
# cargo test --workspace --exclude e2e -- --nocapture
test:
#!/usr/bin/env bash
echo "Running tests..."
# cargo test -- --nocapture
cargo insta test --review
ci-test:
INSTA_UPDATE=always cargo test
create name:
#!/usr/bin/env bash
echo "cp template {{name}}"
for ext in rs json; do
cp "./src/syntax/tmp/tmp.$ext" "./src/syntax/operators/{{name}}.$ext"
done
sed -i '' -e 's/TmpBrowserCompatMetadata/{{name}}BrowserCompatMetadata/g' \
-e 's/TmpVisitor/{{name}}Visitor/g' \
-e 's/tmp\.json/{{name}}\.json/g' \
"./src/syntax/operators/{{name}}.rs"
# for ext in rs json; do
# cp "./src/syntax/tmp/tmp.$ext" "./src/syntax/plugins/{{name}}.$ext"
# done
# sed -i '' -e 's/TmpBrowserCompatMetadata/{{name}}BrowserCompatMetadata/g' \
# -e 's/TmpVisitor/{{name}}Visitor/g' \
# -e 's/tmp\.json/{{name}}\.json/g' \
# "./src/syntax/plugins/{{name}}.rs"