Skip to content

Scripts ​

Every Vite app ​

ScriptWhat it does
pnpm devStarts the dev server
pnpm buildBuilds the app into dist/
pnpm previewServes the build, with its service worker
pnpm lintLints
pnpm formatFormats with Prettier
pnpm changesetDescribes a change for the next release
pnpm release:versionRaises the version and writes CHANGELOG.md

With --mobile ​

ScriptWhat it does
pnpm mobile:init:androidCreates android/, with icons and splash screens
pnpm mobile:init:iosCreates ios/, with icons and splash screens
pnpm mobile:syncBuilds and copies the app into both native projects, applying the native settings
pnpm mobile:androidBuilds, syncs and runs on Android
pnpm mobile:iosBuilds, syncs and runs on iOS
pnpm mobile:dev:androidRuns on Android with live reload
pnpm mobile:dev:iosRuns on iOS with live reload
pnpm mobile:assetsMakes icons and splash screens from the logo
pnpm mobile:listing-assetsMakes store screenshots and promotional images
pnpm mobile:releaseCopies the version, raises the build number (inglorious-capacitor version), builds for production and syncs (Releasing)
pnpm build:releaseBuilds with .env, ignoring .env.local
pnpm capThe Capacitor CLI

With --push ​

ScriptWhat it does
pnpm secrets:pushSets the function secrets in supabase/functions/.env on the hosted project, and checks them
pnpm vault:pushTells the database how to reach the push-notify function

With --mobile --push ​

ScriptWhat it does
pnpm live:keysMakes the live update signing keys, once
pnpm live:releaseBuilds, signs and publishes a live update

Released under the MIT License.