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
interface ModuleInfo { | |
[index: number]: [Function, { [key: string]: number }]; | |
} | |
interface DependencyNode { | |
moduleId: number; | |
dependencies: DependencyNode[]; | |
} | |
async function parseModules(jsContent: string): Promise<ModuleInfo> { |
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
#!/bin/bash | |
GITHUB_TOKEN=$GITHUB_TOKEN | |
GITHUB_REPO_BRANCH=$GITHUB_REPO_BRANCH | |
BUILD_INTERVAL_MINUTES=${BUILD_INTERVAL_MINUTES:-30} | |
commits_info=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \ | |
"https://api.github.com/repos/$GITHUB_REPO_OWNER/$GITHUB_REPO_NAME/commits?sha=$GITHUB_REPO_BRANCH&per_page=2") | |
echo -e "$commits_info\n" |
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
#!/bin/bash | |
cd "$(dirname "$0")/../components" || exit | |
if [ $? -ne 0 ]; then | |
echo "Error: Unable to navigate to the components directory." | |
exit 1 | |
fi | |
find . -type f -name "*.vue" | while read vue_file; do |