-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
334 changed files
with
3,130 additions
and
40 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
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
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
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
Empty file.
Empty file.
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
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
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 |
---|---|---|
|
@@ -9,7 +9,8 @@ | |
/coverage | ||
|
||
# production | ||
/build | ||
build/* | ||
!build/.gitkeep | ||
|
||
# misc | ||
.DS_Store | ||
|
Empty file.
Empty file.
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
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
Empty file.
Empty file.
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,31 @@ | ||
cargo test --workspace --exclude integration_tests export_bindings --features ts | ||
shx mv ../dan_layer/bindings/src/types/* ./src/types/ | ||
shx rm -rf ../dan_layer/bindings/ | ||
DIRECTORY_PATH="./src/types" # replace with your directory path | ||
HELPERS_PATH="./src/helpers" # replace with your directory path | ||
INDEX_FILE="./index.ts" | ||
|
||
# Remove the index file if it exists | ||
if [ -f "$INDEX_FILE" ]; then | ||
rm "$INDEX_FILE" | ||
fi | ||
|
||
# Generate the index file | ||
for file in $(find $DIRECTORY_PATH -name "*.ts"); do | ||
FILE_NAME=$(basename $file) | ||
if [ "$FILE_NAME" != "index.ts" ]; then | ||
MODULE_NAME="${FILE_NAME%.*}" | ||
echo "export * from '$DIRECTORY_PATH/$MODULE_NAME';" >> $INDEX_FILE | ||
fi | ||
done | ||
|
||
# Add helpers | ||
for file in $(find $HELPERS_PATH -name "*.ts"); do | ||
FILE_NAME=$(basename $file) | ||
if [ "$FILE_NAME" != "index.ts" ]; then | ||
MODULE_NAME="${FILE_NAME%.*}" | ||
echo "export * from '$HELPERS_PATH/$MODULE_NAME';" >> $INDEX_FILE | ||
fi | ||
done | ||
|
||
npx prettier --write "./**/*.{ts,tsx,css,json}" --log-level=warn |
Oops, something went wrong.