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

chore: restructure into a monorepo using pnpm #2140

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from
Open

Conversation

Elessar1802
Copy link
Contributor

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@eshankvaish
Copy link
Contributor

  • Remove linter.py, sentry.sh
  • Common out custom.d.ts
  • vite-env

package.json Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
Dockerfile.web Outdated Show resolved Hide resolved
Dockerfile.storybook Outdated Show resolved Hide resolved
Dockerfile.web Outdated Show resolved Hide resolved
@@ -0,0 +1,69 @@
.eslintrc.cjs
Copy link
Contributor

Choose a reason for hiding this comment

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

  • Move eslint to the top level along with these files
  • What about linting for fe-lib

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will be doing it with your guidance :)

@@ -0,0 +1,62 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

  • clean up tsconfig
  • add the tsconfig at the root by extending the one from dashboard
  • Check for alias at the root level

Copy link
Contributor Author

@Elessar1802 Elessar1802 Nov 12, 2024

Choose a reason for hiding this comment

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

Can't clean up tsconfig since it is coupled with vite. Any ways we use tsconfig only to check typings and never use any of the compiled code directly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's common out the tsconfig and extend each of the package

packages/devtron-fe-common-lib/package.json Show resolved Hide resolved
apps/web/vite.config.mts Outdated Show resolved Hide resolved
packages/devtron-fe-common-lib/package.json Show resolved Hide resolved
@Elessar1802 Elessar1802 marked this pull request as ready for review October 24, 2024 07:08
Dockerfile.storybook Show resolved Hide resolved
apps/web/vite.config.mts Outdated Show resolved Hide resolved
@@ -153,22 +152,26 @@ if (!window || !window._env_) {
SYSTEM_CONTROLLER_LISTING_TIMEOUT: 60000 * 5,
FEATURE_STEP_WISE_LOGS_ENABLE: true,
FEATURE_IMAGE_PROMOTION_ENABLE: false,
FEATURE_CD_MANDATORY_PLUGINS_ENABLE: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

custom env is breaking

Dockerfile Show resolved Hide resolved
.gitignore Show resolved Hide resolved
apps/web/src/Pages/index.ts Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
apps/web/vite.config.mts Outdated Show resolved Hide resolved
COPY --from=builder /app/./env.sh .
COPY --from=builder /app/.env .
COPY --from=builder /app/apps/web/./env.sh .
COPY --from=builder /app/apps/web/.env .
COPY --from=builder /app/health.html .

RUN chown -R devtron:devtron /usr/share/nginx/html
Copy link
Contributor

Choose a reason for hiding this comment

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

Cases to be tested:

  • Local: OSS / Ent
  • OSS / Ent Deployed
  • EA OSS / ENT Deployed

Copy link
Contributor

@eshankvaish eshankvaish Nov 12, 2024

Choose a reason for hiding this comment

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

  • Dashboard CI
  • Remove the deprecated action yamls

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • Removed the deprecated action yamls
  • Dashboard CI

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
24 Security Hotspots
4.0% Duplication on New Code (required ≤ 3%)
E Security Rating on New Code (required ≥ A)
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

storybook-static
storybook-static/

pnpm-lock.yaml
Copy link
Contributor

Choose a reason for hiding this comment

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

lock file should be removed

Copy link
Contributor

Choose a reason for hiding this comment

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

Add fe-lib script in dummy repo

Copy link
Contributor

Choose a reason for hiding this comment

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

Update readme

Copy link
Contributor

Choose a reason for hiding this comment

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

Fix the OSS build

Copy link
Contributor

Choose a reason for hiding this comment

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

eslint ignore

Copy link
Contributor

Choose a reason for hiding this comment

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

HMR not working for scss

Copy link
Contributor

Choose a reason for hiding this comment

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

ent to OSS and OSS to ent switch back

Copy link
Contributor

Choose a reason for hiding this comment

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

issue with importComponentFromFELIb in case of direct redirection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants