I am working on usercript for Firefox, so I use GreaseMonkey . Moreover, to facilitate development, I use git to update various versions of my code.
Now let me try to explain the problem.
When I add usercript to GreaseMonkey from my local git directory, new files are created in the gm_scripts folder of my Firefox profile.
GreaseMonkey uses these files as a source, not my git directory, so if I want to change my code and test some things, I need to change the files inside gm_scripts. This means that I cannot perform the modification, first I need to copy the files from gm_scripts to the git directory. This is really inconvenient.
There is another solution. I can also change the script from my git directory and then reinstall it in GreaseMonkey using a bookmark pointing to these local files. But again, this is not at all convenient.
What I considered third was to define the folder inside gm_scripts as my git directory. Unfortunately, my project contains many files that I ordered in folders, and I want to keep it clean. But adding usercript to GreaseMonkey makes all files extractable from their folder.

In addition, my git project does not contain only the usercript folder, there are other things. Therefore, it is probably not recommended to declare the gm_script directory as the source for git, putting many files in gm_scripts, while they have nothing to do with usercript, this is not a good method. And itβs wrong to be forced to work in a folder lost in the depths of my Firefox profile.
I would like to know if there is a way to work efficiently and easily on a project, including GreaseMonkey and git.
git github greasemonkey project-management userscripts
Delgan
source share