Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

[RHDX-131][RHDX-237] Add CSS and JS sourcemaps & remove Hugo from rhdp2 #3486

Merged

Conversation

jordanpagewhite
Copy link
Contributor

@jordanpagewhite jordanpagewhite commented Jan 30, 2020

This adds CSS and JS sourcemaps to our rhdp2/rhd-frontend assets/build
process. This required removing some build logic that was moving dist
files around in Dockerfile.mp and dev/build-rhdp2-theme.sh, updating
paths across various FE build and config files and of course adding
to the existing node-sass command(s) in package.json to include the
building of sourcemaps.

JIRA Issue Link

Verification Process

  • The build is successful
  • Tests are green
  • You can use CSS and JS sourcemaps in the PR environment and your local environment (if you build this branch locally)

You should see a directory structure like this in your Source tab:

Screen Shot 2020-02-04 at 10 03 37 PM

This adds CSS and JS sourcemaps to our rhdp2/rhd-frontend assets/build
process. This required removing some build logic that was moving dist
files around in Dockerfile.mp and dev/build-rhdp2-theme.sh, updating
paths across various FE build and config files and of course adding
to the existing node-sass command(s) in package.json to include the
building of sourcemaps.
@jordanpagewhite
Copy link
Contributor Author

I need to push up another commit with changes to the rhd.settings.php file to disable Drupal's CSS and JS preprocessing on local environments. I am testing that on my local environment now and will push up a commit in a moment.

@jordanpagewhite jordanpagewhite changed the title [DO NOT MERGE] RHDX-131: Add CSS and JS sourcemaps [DO NOT MERGE] [RHDX-131] Add CSS and JS sourcemaps Jan 30, 2020
This disables Drupal's CSS and JS preprocessing and enables verbose
logging on local environments.
@jordanpagewhite
Copy link
Contributor Author

retest this please

7 similar comments
@jordanpagewhite
Copy link
Contributor Author

retest this please

@jordanpagewhite
Copy link
Contributor Author

retest this please

@jordanpagewhite
Copy link
Contributor Author

retest this please

@jordanpagewhite
Copy link
Contributor Author

retest this please

@jordanpagewhite
Copy link
Contributor Author

retest this please

@jordanpagewhite
Copy link
Contributor Author

retest this please

@jordanpagewhite
Copy link
Contributor Author

retest this please

@jordanpagewhite
Copy link
Contributor Author

There was some change made in this PR that breaks the Log in (Keycloak only) link in the top-right corner of of the top navbar. @jordanpagewhite to investigate. To clarify, the actual authentication process, etc. works, but the e2e tests cannot successfully get to sso.stage.redhat.com via that link.

@jordanpagewhite
Copy link
Contributor Author

rebuild this please

@staceymosier staceymosier self-requested a review February 11, 2020 23:12
@jordanpagewhite
Copy link
Contributor Author

Screen Shot 2020-02-12 at 11 16 55 AM

I fixed the issue you pointed out (above) @staceymosier with the PFE dist filepaths. You should no longer see those console errors, and you should be able to see the src files in the Source tab of your Chrome inspector

@staceymosier staceymosier self-requested a review February 14, 2020 14:09
@jordanpagewhite jordanpagewhite merged commit bf6d658 into redhat-developer:master Feb 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants