Skip to content

Conversation

piggito
Copy link
Contributor

@piggito piggito commented Aug 31, 2020

Speed up front jobs both on local and gitlab CI by keeping yarn cache in local directory

only:
variables:
- $THEME_PATH
- $YARN_CACHE_FOLDER
Copy link
Contributor

Choose a reason for hiding this comment

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

This line should be removed imho, cause front jobs should be triggered only by theme defined, and nothing else (currently front job will try to run even if theme is not initialized yet, because YARN_CACHE_FOLDER is defined)

- web/themes/custom/XXX/package.json # ... this path has to be hardcoded
- web/themes/custom/XXX/yarn.lock # ... this path has to be hardcoded
paths:
- ${THEME_PATH}/node_modules/ # Populated during yarn install
Copy link
Contributor

@davidferlay davidferlay Sep 3, 2020

Choose a reason for hiding this comment

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

I don't see reason to move this to "only_var_theme" anchor
Can you please explain motivation ?

@@ -53,6 +56,7 @@ front-build:
docker pull $(IMAGE_FRONT); \
$(call frontexec, node -v); \
$(call frontexec, yarn -v); \
$(call frontexec, yarn install --ignore-optional --check-files --prod); \
Copy link
Contributor

Choose a reason for hiding this comment

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

bad idea to keep it in the same dir as theme

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.

3 participants