Skip to content

Commit

Permalink
Merge pull request writer#286 from raaymax/refactor-monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
ramedina86 authored Mar 29, 2024
2 parents 2a65ce5 + 1de5719 commit 998939b
Show file tree
Hide file tree
Showing 217 changed files with 11,568 additions and 20,124 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
run: npm run build

- name: Install E2E browsers
working-directory: e2e_tests
run: npx playwright install ${{ matrix.browser }} --with-deps

- name: Run E2E tests
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ src/streamsync.egg-info/
*:Zone.Identifier
*.DS_Store
src/streamsync/static
src/streamsync/app_templates/*
!src/streamsync/app_templates/.gitkeep
playground/
*.mp4
*.mp4
.turbo
2 changes: 1 addition & 1 deletion alfred/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def ci_test():

@alfred.command("ci.codegen.ui.binding", help="check if ui binding is up to date")
def ci_codegen_ui_binding():
with _preserve_files(["src/streamsync/ui.py", "ui/components.codegen.json"]):
with _preserve_files(["src/streamsync/ui.py", "src/ui/components.codegen.json"]):
_, original_diff, stderr = alfred.run("git diff src/streamsync/ui.py", exit_on_error=False, stream_stdout=False)
alfred.invoke_command("npm.codegen")
_, final_diff, stderr = alfred.run("git diff src/streamsync/ui.py", exit_on_error=False, stream_stdout=False)
Expand Down
12 changes: 6 additions & 6 deletions alfred/npm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@

@alfred.command("npm.lint", help="lint check npm packages")
def npm_lint():
alfred.run("npm run lint:ci")
alfred.run("npm run ui:lint:ci")

@alfred.command("npm.test", help="test check npm packages")
@alfred.command("npm.test", help="test against documentation")
def npm_test():
alfred.run("npm test")
alfred.run("npm run docs:test")

@alfred.command("npm.e2e", help="run e2e tests")
@alfred.option('--browser', '-b', help="run e2e tests on specified browser", default='chromium')
def npm_e2e(browser):
with alfred.env(CI="true"):
alfred.run("npm run e2e:"+browser+":ci")
alfred.run("npm run e2e:"+browser)

@alfred.command("npm.build", help="build ui code")
def npm_build():
alfred.run("npm run build")
alfred.run("npm run ui:build")

@alfred.command("npm.build_custom_components", help="build custom components")
def npm_build_custom_components():
alfred.run("npm run custom.build")
alfred.run("npm run ui:custom.build")

@alfred.command("npm.codegen", help="generate code for different usecase (low code ui, documentation, ...)")
def npm_codegen():
Expand Down
32 changes: 0 additions & 32 deletions build.sh

This file was deleted.

Loading

0 comments on commit 998939b

Please sign in to comment.