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 production and development JS builds in gulp watch #63

Merged
merged 23 commits into from
Feb 19, 2021

Conversation

Niq1982
Copy link
Contributor

@Niq1982 Niq1982 commented Feb 19, 2021

As decided earlier this year in our dev-retreat: Change JS builds so they build development and production bundles and load them in WP according to the WP_ENV variable.

Also, added the possibility to use URL parameter ?load_production_builds for testing production builds (Both JS and CSS) in development environment.

@timiwahalahti
Copy link
Contributor

👍

@ronilaukkarinen
Copy link
Member

ronilaukkarinen commented Feb 19, 2021

First thing I notice is that eslint fails tests. Need to add prod to excludes in unit tests but also many dev files cause eslint errors. Also phpcs doesn't pass through. Can you check these to be failsafe @Niq1982? I'll test the other JS build processes soon-ish.

inc/hooks/scripts-styles.php Outdated Show resolved Hide resolved
@ronilaukkarinen ronilaukkarinen merged commit f6a5758 into master Feb 19, 2021
Copy link
Member

@ronilaukkarinen ronilaukkarinen left a comment

Choose a reason for hiding this comment

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

All good, merged.

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