fastn scripts #2090
Closed
amitu
started this conversation in
Ideas & RFCs
fastn scripts
#2090
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Note: fastn xtask crate is how we can implement this.
Every fastn powered app is going to need some common scripts etc, how much can we reduce that by adding some basic stuff in fastn is the topic / motivation of this discussion.
fastn launchersOur main scripts are
fastnlaunchers, e.g.,run-uiorrun-template, theycdinto respective folders, as a single repo often contains multiple folders.We can reduce that need by doing
fastn <app>where<app>may belets-auth.fifthtry.site, without even needing to write the entire name out. So eg iffastn <unknown-word>is used, we cd into the<unknown-word>and do fastn serve from that folder.Automatic Wasm Compilation
If the current folder has a folder named
backend, orCargo.tomletc, we runcargo buildfrom backend folder or current folder, depending on presence ofbackendfolder.We do not optimise wasm as it does not make sense to do that on dev machines most of the time.
Github Actions
If we have a github action,
fastn-releaseor something, it can check if file in any of the packages in current folder has been modified, of so it doesfastn uploadfrom that folder. It automatically sets rust-cache github action.Beta Was this translation helpful? Give feedback.
All reactions