-
Notifications
You must be signed in to change notification settings - Fork 416
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
Exclude .zip files from repository & CI #171
Comments
This is actually something we've been investigating and we're hoping to do. There are just a few technical difficulties we're trying to solve before we can do this.
Building the CI script is probably going to be the most time-consuming part here 'cause there's many edge-cases and things to consider, but we're hoping to do it soon because you're right, the current structure is sub-optimal. 👍 That being said, the current implementation may not be perfect but it works and we're therefore prioritizing dev tasks on the theme & builder. This will be done, but I don't have an ETA. |
@aristath So, the whole API "logic" is the repository code and the client's update checks are done via JSON checksum, am I right? From my point of view, it is not best practice to process artifacts this way (store them in a GIT repo). What do you think about the (npm package) scenario below?
You can then set up your current API as a proxy to unpkg.com/:package If you want I can try to implement it. |
The "API" is basically just this: https://raw.githubusercontent.com/Theme-Fusion/Localization-l10n/master/api-Avada.json Each language in that JSON has as To be honest I haven't worked that much with npm packages or unpkg so I'm not sure how involved implementing the CI for them would be. 🤔 Changing the client API in Avada, Fusion-Builder etc will be relatively easy, all we'll need to do it change the remote URLs they check and use the new ones instead of the ones from this repo. |
I would propose to set up a CI pipe to build artifacts like .zip/.json files are (and exclude them from this repo), because .zip files are treated by GIT as a blob and .json files are only artifacts.
Why?
At this time it is very slow to clone the repo because it contains many .zip files. Each time you change the .zip file, the repo size will grow by the size of the .zip file.
It would be also easier for a maintainer, because he would no longer need to run grunt commands manually and commit the changes back to the repo.
CI pipe can build it and upload it to API automatically.
The text was updated successfully, but these errors were encountered: