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

Update build script to generate production scripts individually #6601

Closed
Tabrisrp opened this issue Apr 29, 2024 · 2 comments · Fixed by #6625
Closed

Update build script to generate production scripts individually #6601

Tabrisrp opened this issue Apr 29, 2024 · 2 comments · Fixed by #6625
Assignees

Comments

@Tabrisrp
Copy link
Contributor

Context
The current build command generates multiple production scripts at the same time.

Expected beavhior
We should have a command to build each script individually, and one command to build everything.

@wordpressfan
Copy link
Contributor

I created this PR: #6625 to validate the idea with you before completing the code there.

As u can see, I created a new directory for gulp inside src/js with the following structure:

image

and as an example, I created a simple task module css which defines gulp tasks based on the data passed from the gulpconfig.js file.

We can do another task module for js, also I need to enhance the watch and build params so if we built the code many times to only get one version without any other changes until a change in the source file happens.

@Miraeld
Copy link
Contributor

Miraeld commented May 9, 2024

Looks ok to me

@wordpressfan wordpressfan self-assigned this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants