- Delete any DNN skins for other clients
- Delete any React override skins for other clients
- Delete the service applications this client isn't using (BrandAdmin, etc.)
- Strip any provider implementations the client isn't using
- For example if they're using BridgePay for payments, inside the payments provider, delete the other payment provider code
- Once the provider code has been removed, you will need to go into the Registry file inside that provider project to remove references to that project
- It may also be valuable to audit and remove Nuget references inside the csproj file so it's not pulling DLLs we're not using
- Review all config files to remove any credentials from the DefaultValue attributes. Also review the app settings files to remove any non-client credentials inside those files
- Search the code for TODOs or other comments with unsavory language like "HACK/BUG", "dumb", "stupid", swear words, etc.
- Once all of the above is cleared, prepare some app settings files with the required settings enabled for the site to work. Then do a full rebuild of the frontend and backend and a comprehensive test of the site
- Finally, copy your entire Solution Items folder out of the CEF folder, close any editors for the project, then go back into the CEF folder and run
git clean -fdx to delete all build artifacts, node modules, etc. that are not part of our code.
- Copy the solution items back in, delete the .git folder, and then zip up the folder