run hooks
as a CI process instead of using the browser to do it
#356
Replies: 2 comments 1 reply
-
Here is a maintainer expressing the desire to run prettier MagicMirrorOrg/MagicMirror#3025 (comment). |
Beta Was this translation helpful? Give feedback.
-
My gut tells me that adding a But, how could we foster the development of GitHub actions and CI/CD "apps" that leverage |
Beta Was this translation helpful? Give feedback.
-
Once the editor saves a Resource, it could potentially not match the style guide of that project. @samuelstroschein and I have spoken about adding a
afterResourceWrite
hook to theinlang.config.js
file that would get executed in the browser after a Resource was written to disk.Problem:
eslint
,tsc
,prettier
and other tools need to download a few MB of code and have problems running in the browser or don't run at all.Solution:
Run them in a CI process after the editor makes a commit (using Github Plugin, Action or similar tools for other hosting provider).
If no CI is set up a husky git hook could be added or a simple cli command can be used.
Beta Was this translation helpful? Give feedback.
All reactions