tauri-apps / tauri-apps/tauri-docs

Add guide: Tauri + Rollup

Open
#432 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
MDX
Stars
1.1k
Forks
887
Avg merge
2d 8h
Merged PRs (30d)
48

Description

Setup

  • link to rollup setup
  • link to tauri setup
  • add tauri to rollup project
  • consider using babel with recommend target config
    "targets": {
         "esmodules": true
         "chrome": "97",
         "safari": "13"
    }
    

Development

  • link to React, Vue, Svelte guides

Building

  • explain rollup -c (short)
  • explain how tauri build will find the assets

SSR

Plugin recommendations

  • rollup is the sum of it's plugins
  • recommend some good plugins to use when developing native apps
    • rollup-plugin-visualizer, rollup-plugin-sizes or rollup-plugin-size-snapshot for tracking app size
    • rollup-plugin-terser - Minify code
    • rollup-plugin-serve - Development server
    • @rollup/plugin-node-resolve to bundle all node_module dependencies
    • @rollup/plugin-typescript just use typescript please
    • @rollup/plugin-replace to make use of TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG env variables
    • rollup-plugin-imagetools (shameless plug) or rollup-plugin-imagemin to optimize images

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No documentation file or test is named; start by locating the guide structure and existing Tauri, Rollup, and framework guides. Cover the requested setup, development, building, SSR, and plugin-recommendation sections, with links and examples where specified, and consider the SSR question resolved before calling the guide complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, rollup
Domain
desktop, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.