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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: cleanup site scripts #1216

Merged
merged 2 commits into from
Sep 9, 2020
Merged

chore: cleanup site scripts #1216

merged 2 commits into from
Sep 9, 2020

Conversation

erezrokah
Copy link
Contributor

- Summary

Fixes #1191

- Test plan

Not relevant

- Description for the changelog

Moved relevant site scripts under site/scripts and removed the unused (so it seems) algolia.js script

- A picture of a cute animal (not mandatory but encouraged)

馃悎

@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Sep 8, 2020
"build": "run-s build:*",
"build:site": "cd site && npm install && npm run build",
"ci": "run-s test build",
"build:site": "cd site && npm ci && npm run build",
Copy link
Contributor

Choose a reason for hiding this comment

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

Would npm install be better than npm ci when running this locally?

Copy link
Contributor Author

@erezrokah erezrokah Sep 9, 2020

Choose a reason for hiding this comment

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

I would actually always opt for npm ci (so developers always have the same dependencies installed), unless one is explicitly trying to update dependencies.
npm install will update the lock file if it doesn't match with package.json. I prefer to fail in that case.

Copy link
Contributor

Choose a reason for hiding this comment

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

This makes sense. 馃憤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chore: cleanup docs sites scripts
2 participants