-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor/monorepo #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c4d16cf
chore: migrate to monorepo structure
pipewrk c0516e6
fix(lint): update eslint ignore and override patterns for monorepo
pipewrk 286dda4
ci: add PR checks for docs and examples, update pre-commit hooks
pipewrk 2184c68
fixed some issues with the tests and PR review nits
pipewrk 49228d4
chore:updated ci script runs
pipewrk 82893ca
chore: added missing scripts
pipewrk 7fde580
chore: added missing deps
pipewrk b7a2425
fixed ci
pipewrk 15d2eae
chore: updated gh actions
pipewrk f42e4d2
added the llm-core package to track
pipewrk a3954d3
chore: unignore packages/llm-core
pipewrk 97a7125
fix(ci): fix typo in test command
pipewrk 41e250f
fix(ci): remove redundant install steps
pipewrk 85a2d8c
fix(ci): add typecheck:tests script and fix test paths
pipewrk 92f70cb
chore: added pipeline to gitignore
pipewrk 90737b2
fix(ci): use bun run test script and add debug list
pipewrk fba1dd0
fix(ci): update sonar paths for monorepo
pipewrk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,7 +1,10 @@ | ||
| llm-core/** | ||
| pipeline | ||
| pipeline/** | ||
| dist/** | ||
| **/dist | ||
| packages/*/dist/** | ||
| examples/*/client/dist/** | ||
| examples/*/server/dist/** | ||
| assistant-ui/** | ||
| copilot-sdk/** | ||
| codex/** |
This file contains hidden or 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 hidden or 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,23 +1,54 @@ | ||
| #!/bin/sh | ||
| set -e | ||
|
|
||
| STAGED_FILES=$(git diff --cached --name-only -z) | ||
| # Get changed files | ||
| STAGED_FILES=$(git diff --cached --name-only) | ||
|
|
||
| echo "pre-commit: format" | ||
| bun run format | ||
| echo "pre-commit: lint:fix" | ||
| bun run lint:fix | ||
| echo "pre-commit: typecheck" | ||
| bun run typecheck | ||
| echo "pre-commit: test" | ||
| bun run test | ||
| # Define patterns | ||
| CORE_PATTERN="^packages/|^package.json|^tsconfig.json|^.eslintrc.cjs" | ||
| DOCS_PATTERN="^docs/" | ||
| EXAMPLES_PATTERN="^examples/" | ||
|
|
||
| # Function to check if files matching pattern changed | ||
| has_changes() { | ||
| echo "$STAGED_FILES" | grep -q "$1" | ||
| } | ||
|
|
||
| # Run core checks if core files changed | ||
| if has_changes "$CORE_PATTERN"; then | ||
| echo "📦 Core changes detected. Running core checks..." | ||
| echo " - Format" | ||
| bun run format | ||
| echo " - Lint" | ||
| bun run lint:fix | ||
| echo " - Typecheck" | ||
| bun run typecheck | ||
| echo " - Test" | ||
| bun run test | ||
| fi | ||
|
|
||
| # Run doc checks if docs changed | ||
| if has_changes "$DOCS_PATTERN"; then | ||
| echo "📚 Docs changes detected. Running doc checks..." | ||
| echo " - Build" | ||
| bun run docs:build | ||
| echo " - Snippets Typecheck" | ||
| bun run docs:snippets:typecheck | ||
| fi | ||
|
|
||
| # Run example checks if examples changed | ||
| if has_changes "$EXAMPLES_PATTERN"; then | ||
| echo "🧪 Example changes detected. Running example checks..." | ||
| echo " - Typecheck Examples" | ||
| bun run typecheck:examples | ||
| fi | ||
|
|
||
| # Check for unstaged changes after auto-formatting | ||
| if [ -n "$STAGED_FILES" ]; then | ||
| CHANGED=$(printf "%s" "$STAGED_FILES" | xargs -0 git diff --name-only --) | ||
| CHANGED=$(git diff --name-only -- $STAGED_FILES) | ||
| if [ -n "$CHANGED" ]; then | ||
| echo "pre-commit: staged files changed after formatting/lint. Please review and re-stage." | ||
| echo "⚠️ Staged files changed after formatting/lint. Please review and re-stage:" | ||
| echo "$CHANGED" | ||
| echo "hint: git add $CHANGED" | ||
| exit 1 | ||
| fi | ||
| fi | ||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.