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

Build: Clean up workspace on deploy #835

Merged
merged 2 commits into from
Sep 25, 2019
Merged

Build: Clean up workspace on deploy #835

merged 2 commits into from
Sep 25, 2019

Conversation

molant
Copy link
Member

@molant molant commented Sep 20, 2019

Pull request checklist

Make sure you:

Short description of the change(s)

Deletes node_modules and package-lock.json before running npm install --production on the deployment server.

Even though it has package-lock=false we need to remove the previous version.

I've tested this on sonarwhal-tests.azurewebsites.net and folders and files are deleted so it should be safe to merge.

Fix #783

@molant
Copy link
Member Author

molant commented Sep 20, 2019

update-site.sh will break with the removal of package-lock.json. Going to do #717 at the same time while I'm at it

@molant
Copy link
Member Author

molant commented Sep 20, 2019

This should be ready for a review.

@molant molant requested review from sarvaje and antross September 20, 2019 23:12
@@ -7,14 +7,10 @@
"express": "^4.17.1",
"globby": "^10.0.1",
"highlight.js": "^9.15.10",
"hint": "^5.2.3",
Copy link
Member Author

Choose a reason for hiding this comment

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

Need to install hint somewhere to test staging or we could use npx hint https://staging

@molant molant merged commit fc399d4 into webhintio:master Sep 25, 2019
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.

Consider delete staging during build.
3 participants