Big codebase renaming
This codebase is doing a few things that aren't in line with the broader open source community, and I want to make it easier for people who contribute to many projects to hack on Soapbox with muscle memory. Here's what I'm thinking:
- Change the default branch from
developtomain. This is what all projects use nowadays. Nobody usesdevelop, and we aren't doing anything special. So it just requires extra git configuration and goes against muscle memory. - Rename
apptosrc. Most tools like Webpack, Vite, etc assume your source directory is calledsrcby default, and require extra configuration to call itapp. Sincesrcis well-known, it will improve the ability to contribute to Soapbox. - Rename
statictodist. The namestaticas an output directory never made sense, and once againdistis in line with the existing tooling as the counterpart tosrc. - Make the zip artifact contain the root of the frontend files, rather than being inside a subfolder. This corresponds with the change above, and offers more flexibility about the directory you unzip into. It also makes it match other Pleroma frontends. We would change the CI job from
build-productionto simplybuild, so scripts using the old URL would still work, just wouldn't get updated.
This probably won't break a lot. A few people have custom scripts where this might matter, but I know them personally and can reach out about updating scripts. I think it will be worth it to make this change even though it will be just a tad bit painful. And it's definitely better to do it all at once and get it over with.