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

don't stash the node_modules folder #94

Merged
merged 1 commit into from Nov 9, 2022

Conversation

stefan0xC
Copy link
Contributor

I was wondering why make checkout always takes so long and it's because we are using git stash --all which stashes also ignored files, i.d. the node_modules folder, too. Not sure if this is necessary, since we use npm ci to build the web-vault so we don't really need to stash it, because it will always start with a clean build anyway.

@BlackDex
Copy link
Collaborator

BlackDex commented Nov 2, 2022

I actually never use the host provide tools, and always use the docker commands. That way my host keeps clean and those files never appear.

Not sure if this will work fully. I'll need to check.

currently, if you built the web-vault the `node_modules` folder is
stashed which takes a long time. since this is an ignored folder and we
use `npm ci` to build the web-vault we don't really need to stash it.

`npm ci` will always start with a clean build anyway.
see https://docs.npmjs.com/cli/v8/commands/npm-ci
@tessus

This comment was marked as off-topic.

@tessus

This comment was marked as off-topic.

@stefan0xC

This comment was marked as off-topic.

@tessus

This comment was marked as off-topic.

@BlackDex

This comment was marked as off-topic.

@tessus

This comment was marked as off-topic.

@stefan0xC

This comment was marked as off-topic.

@stefan0xC
Copy link
Contributor Author

I've made a separate #95 to keep the discussion on topic.

Copy link
Collaborator

@BlackDex BlackDex left a comment

Choose a reason for hiding this comment

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

I think this is ok.
Since we do not add custom files by default this should be ok.
If we were to add custom files, then this will cause an issue though.

@dani-garcia dani-garcia merged commit e7f8ac6 into dani-garcia:master Nov 9, 2022
@stefan0xC stefan0xC deleted the dont-stash-ignored branch November 9, 2022 21:20
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.

None yet

4 participants