-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Bi-directional link to Github #288
Comments
When source code mirroring is used, the style is replaced by the mirror version if versions don't match. It wasn't supposed to be used with manual code code updates out of sync with mirror updates.
I really like the idea of letting users set up such connectivity between software. It may not be reliable and it won't be easy to set up, but it will provide those who desire with the ability to do so. I think we can let users set up simple POSTs that will be sent on code updates, and that should be enough to update some file via GitHub API or on some other place. The only tricky part I see is what would happen if the target website (GitHub) was unavailable at the moment of POST. Retry logic sounds complicated. Also, I think Stylus should have functional to publish styles to various places, not just USw. That would allow styles to be pushed to GitHub and then be pulled by USw, or allow to skip USw entirely if some Stylus users don't want to use it, while keeping Stylus as IDE.
You can develop userstyles with any text editor as files on your disk, then drag the file in the browser's tab bar, which would trigger Stylus style installation, and then publish both new version from Stylus and push a git commit. But that would be a double work, which is why I personally just use git and not Stylus for development and publication. Maybe for now this workflow can work for you too. There's also a nice "Mirror" button when mirroring is enabled, that allows to pull the new style version from the git instantly, but can only be used once in an hour. |
Yes, this was my first thought exactly. But it seems the upload/publish feature is not considered a priority or necessity by Stylus devs: So it seems we should be happy we have at least the option to upload to USw. There are two options to fix this issue.
As an author, if I can't fix an issue in one minute, I'll postpone it, possibly even forever. I think the possibility to quickly fix a style is crucial for good quality of styles globally.
There is more to the issue of generic site publish. Next That's why my suggestion for bast way forward was, to develop a full two-way mirror with git. |
Describe the change you'd like: We can link a style to Github, or other source, but when such the style is updated from Stylus plugin, it results in unexpected/undesired behavior. I guess this could also be defined as a bug.
Additional context: Would be nice if git sourced styles were linked to git, maybe using webhooks like on https://greasyfork.org/, and when a new one is uploaded, it's pushed to the git as a commit.
Otherwise, we can't use both git and upload button in Stylus.
And git is nice for bug report and collaboration features.
The text was updated successfully, but these errors were encountered: