Skip to content
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

fix(odd-platform-ui): fix ui build for windows #1607

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

anatolii-yemets
Copy link
Contributor

What changes did you make? (Give an overview)

  1. fixed command to generate api to work on windows and unix
  2. removed only-allow pnpm because it doesn't work I have set 'npx only allow pnpm', but it only takes effect for Yarn pnpm/only-allow#27
  3. updated readme

How to test

run pnpm build on windows

@anatolii-yemets anatolii-yemets requested a review from a team as a code owner February 6, 2024 14:35
@github-actions github-actions bot added kind: bug Something isn't working kind: documentation Improvements or additions to documentation labels Feb 6, 2024

This comment has been minimized.

@anatolii-yemets anatolii-yemets added the scope: frontend Frontend task label Feb 6, 2024
Copy link

sonarcloud bot commented Feb 6, 2024

Quality Gate Passed Quality Gate passed for 'odd-platform-ui'

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

github-actions bot commented Feb 6, 2024

Test Results

  55 files    55 suites   2m 33s ⏱️
259 tests 259 ✔️ 0 💤 0
287 runs  287 ✔️ 0 💤 0

Results for commit 3416ab4.

@@ -9,12 +9,12 @@
"build": "pnpm generate && tsc --noEmit && vite build",
"test": "vitest",
"tsc": "tsc",
"generate": "docker run -v `pwd`/..:/mnt -w /mnt --rm openapitools/openapi-generator-cli:v5.1.1 generate -c odd-platform-ui/openapi-config.yaml",
"generate": "chmod u+x ./generate.sh && ./generate.sh",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try to run pnpm build or gradle build to make sure that gradle can generate models and build ui too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, both pnpm build and gradle build work

@@ -9,12 +9,12 @@
"build": "pnpm generate && tsc --noEmit && vite build",
"test": "vitest",
"tsc": "tsc",
"generate": "docker run -v `pwd`/..:/mnt -w /mnt --rm openapitools/openapi-generator-cli:v5.1.1 generate -c odd-platform-ui/openapi-config.yaml",
"generate": "chmod u+x ./generate.sh && ./generate.sh",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm. Running bash scripts is not looks safe from contributor's prospective.

@anatolii-yemets anatolii-yemets merged commit 6b0a1cf into main Feb 6, 2024
7 checks passed
@anatolii-yemets anatolii-yemets deleted the fix-ui-build-for-windows branch February 6, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working kind: documentation Improvements or additions to documentation scope: frontend Frontend task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants