![]() * #331 show banner if Tea cli is not installed - adjustments of notification: show only if tea is not latest --------- Co-authored-by: neil molina <neil@neils-MacBook-Pro.local> |
||
---|---|---|
.. | ||
electron | ||
scripts | ||
src | ||
static | ||
.eslintignore | ||
.eslintrc.cjs | ||
.gitignore | ||
.npmrc | ||
.prettierignore | ||
.prettierrc | ||
electron-builder.config.cjs | ||
icon.png | ||
package.json | ||
playwright.config.ts | ||
pnpm-lock.yaml | ||
postcss.config.cjs | ||
README.md | ||
screenshot.png | ||
setupTest.js | ||
svelte.config.js | ||
tailwind.config.ts | ||
tsconfig.json | ||
vite.config.ts |
@tea/desktop
Desktop app of tea for installing packages/softwares
More interesting and possibly updated documentations are at this NOTION page. It is ideal to review it also, its more updated.
Developing
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
# use if you need interaction with the rust handlers
pnpm dev
Building
To create a production version of your app:
pnpm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
Testing
pnpm playwright install
pnpm test
i18n
Default locale is english
it is defined in src/libs/translations/translations.json
. Include all new keys there then this will automatically sync to crowdin once merged to main
.
Data from crowdin our translation app/community will only be loaded when env var SYNC_I18N
exists. Currently only configured on top of the GHA CI/CD workflows.
Intuition Building Links
A minimal project template for Electron and SvelteKit configured with adapter-static.
Screenshot
Commands
pnpm dev
: Runs SvelteKit in dev modepnpm preview
: Runs SvelteKit in production modepnpm electron
: Runs SvelteKit with electron in dev modepnpm build
: Runs SvelteKit compilerpnpm dev:package
: Creates an Electron package (you can inspect the contents)pnpm package
: Creates a distributable Electron package