fluid-lab / gamepad-navigator

GSoC 2020 project
Other
6 stars 10 forks source link

Build process is now split between Grunt and npm script. #127

Open duhrer opened 7 months ago

duhrer commented 7 months ago

In trying out the grunt "archive" task that packages up our dist directory, I can see that the grunt scripts are not aware of our npm scripts that handle SVG and CSS bundling. Although we can perform a multi-stage build when testing with an unpacked extension, we can't use Grunt to create a zip file, as its archive task will start by blowing away the current contents of dist, including the SVG and CSS bundles.

Long term, we should move away from Grunt. There seem to be a few npm modules to create CRX files, although the most used is very old and doesn't seem well maintained. There are newer forks.

We should also see if there are services that can assist, for example that integrate with GitHub actions.

jobara commented 6 months ago

@duhrer another option would be to evaluate if the CRX file is still needed. For example with UIO+ I just use an unpacked extension for testing, and then manually create the zip file for the release. I think you could automate that zip file creation though.

duhrer commented 6 months ago

I haven't tried installing a manually zipped release myself, I should. If it's possible to do that there are certainly enough ways to make a ZIP file.

duhrer commented 4 months ago

@dmahajan980, here is the issue I mentioned where we're tracking replacing the build process with something uniform.