-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: install tailcall from npm (#190)
* chore: install tailcall from npm * Update setup.sh
- Loading branch information
1 parent
8748f1d
commit d2bb321
Showing
5 changed files
with
261 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
cd ../../../tailcall | ||
cargo build --release | ||
#!/bin/bash | ||
pwd | ||
cd graphql/tailcall | ||
npm install |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "tailcall", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"@tailcallhq/tailcall": "0.82.19" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
#!/bin/bash | ||
|
||
# Base directory | ||
|
||
cd graphql/tailcall | ||
|
||
current_dir=$(pwd) | ||
TAILCALL_LOG_LEVEL=error TC_TRACKER=false $HOME/.tailcall/bin/tailcall start $current_dir/graphql/tailcall/benchmark.graphql | ||
echo "Current directory: $current_dir" | ||
|
||
base_dir="./node_modules" | ||
|
||
# Pick the tailcall executable | ||
for core_dir in $(find "$base_dir" -type d -name "core-*"); do | ||
tailcall_executable="${core_dir}/bin/tailcall" | ||
|
||
# Check if the tailcall executable exists | ||
if [[ -x "$tailcall_executable" ]]; then | ||
echo "Executing $tailcall_executable" | ||
|
||
# Run the executable with the specified arguments | ||
TAILCALL_LOG_LEVEL=error TC_TRACKER=false "$tailcall_executable" start $current_dir/benchmark.graphql | ||
exit 0 | ||
fi | ||
done | ||
|
||
echo "tailcall executable not found." | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters