1.8 KiB
date | title | description | tags | ||
---|---|---|---|---|---|
2024-01-26 | Mobile web development with Codespaces | Wherein the author describes making code changes on a mobile device (iOS) and pushing them live. |
|
I was on vacation recently and, because I'm exactly that nerd, I ended up wanting to add an npm
package and postbuild
step to this site.1
To do this, what I did was:
- Spin up a GitHub Codespace for this project.
- Add the Codespace to Secure Shellfish2
- Access the Codespace in Secure Shellfish and run the appropriate
npm install
command. - Add the secrets my site requires to run per GitHub's instructions.
- Run
npm start
and verify the build in the Codespace URL produced for the application running onlocalhost:<PORT NUMBER>
3 - Push up the changes from the Codespace.
An alternative approach would be to make edits to the code locally on iOS using Secure Shellfish's Files.app
integration — this would expose the application files as a folder inside of the Secure Shellfish provider in Files.app
. You could make the edits using Runestone which also integrates nicely with Files.app
.
This isn't approach I'd use for long, focused dev sessions (or critical applications/changes) but it'll do for quick, low-stakes changes on mobile.
-
To send outbound webmentions. See Remy's docs. ↩︎
-
Which is an awesome ssh client — and a terminal on macOS (I only use it on iOS though). ↩︎