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

MC-9766 - Reorganise the repo to support multiple Angular projects #435

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

pjmonks
Copy link
Contributor

@pjmonks pjmonks commented Jan 19, 2022

The source code for the mdm-ui application has been reorganised to support multiple Angular projects within the same workspace. This will prepare the repo to contain further UI applications/projects.

image

Changes made:

  • Original files from the src folder have been moved to projects/mdm-ui/src. Files have been moved using git mv command to only rename files and maintain original commit history.
  • All configuration files have been updated to support the change in file locations, particularly the angular.json file which is now responsible for all Angular projects inside this workspace.
  • Verified that existing npm scripts still work. The default workspace project is still mdm-ui, so existing commands like npm start will still default to serving mdm-ui. Other scripts like test, eslint, dist etc have been updated to work with the new structure.
  • The Jenkinsfile has been updated to ensure that any file references now point to new locations.

@olliefreeman - I have asked for your review also specifically to check the Jenkinsfile. I've seen that a Jenkins branch build passes still, and because npm run dist is used and still outputs the build output to dist/mdm-ui-<version>,tgz then there should not be any major changes with deployments.

@pjmonks pjmonks added the maintenance General maintenance on this repo or application label Jan 19, 2022
Moved into an Angular project folder to rework the workspace. Committed files are only renamed, commit history is maintained.
Tested that existing eslint and license-check commands work with new project structure
* Run through `ng test` Angular builder now
* Update config files and Jenkins build file
* Make sure distribution build still works
* Update jest reporters to output report files to new locations
* Update Jenkins build to reference correct file locations
* Update npm scripts
* Clean up redundant files
@CLAassistant
Copy link

CLAassistant commented Feb 2, 2022

CLA assistant check
All committers have signed the CLA.

@pjmonks pjmonks marked this pull request as draft February 9, 2022 15:16
@pjmonks
Copy link
Contributor Author

pjmonks commented Feb 9, 2022

Marking this as a draft PR for now. Due to the way some other planned work has panned out, this re-organisation of mdm-ui may not be strictly necessary, or at least not urgent for now. Will keep open though in case it is needed.

@pjmonks pjmonks added the on hold Issue has been placed on hold to resolve later label Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance General maintenance on this repo or application on hold Issue has been placed on hold to resolve later
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants