ViteReact启动器

forge-starter — Vite 启动器模板

作者 andrei-pisklenov

面向 Atlassian Forge 应用的启动模板,集成 Vite、React、TypeScript、Yarn 与测试工具,提供 Jira、Confluence、Bitbucket 三套工作区。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

1 个预览视图
作者提供的预览
作者提供的预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-03查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

Yarn 工作区同时容纳 Jira、Confluence、Bitbucket 三个 Forge 应用及共享包

02

按平台提供 build、forge:register、forge:deploy、forge:install 脚本,部署支持 -e 指定 staging 或 production

03

开发时可用 yarn dev:jira / yarn dev:conf 启动 Custom UI 热更新并建立 Forge 隧道

04

集成 ESLint、Vitest 与 Testing Library、Playwright,并提供 lint、test 等脚本

05

README 说明 UI Kit 仅官方支持 React 18,Custom UI 可使用其他 React 版本

模板详细介绍

ForgeStarter 是一个用于构建 Atlassian Forge 应用的启动模板,目标平台为 Jira、Confluence 和 Bitbucket,也支持在同一个仓库中同时维护三端应用。模板采用 Yarn 工作区组织代码,packages 下分别放置 forge-jira、forge-conf、forge-bitb 三个 Forge 应用、一个 shared 共享类型与常量包、一个供所有应用使用的 Custom UI 包,以及针对 UI 的 e2e 测试包。构建与部署按平台区分,通过 yarn build:jira、build:conf、build:bitb 生成初始构建,再以 forge:register、forge:deploy、forge:install 系列脚本完成注册、部署与安装,部署脚本支持通过 -e 参数指定 staging 或 production 环境。开发阶段可运行 yarn dev:jira 或 yarn dev:conf 启动 Custom UI 热更新并建立 Forge 隧道,将请求转发到本地。模板内置 ESLint、Vitest 与 Testing Library、Playwright,并提供 yarn lint、yarn test 等脚本。README 说明 UI Kit 目前仅官方支持 React 18,与 React 19 不兼容,但 Custom UI 资源可以使用其他 React 版本。仓库根目录还包含 bitbucket-pipelines.yml 作为自托管 runner 的流水线配置示例。

ViteReact启动器

适合你的项目吗?

适用场景

  • 为 Jira、Confluence 或 Bitbucket 创建 Forge 应用并需要现成的工程结构
  • 在同一个仓库中维护面向三个 Atlassian 产品的 Forge 应用并复用共享代码
  • 使用 Custom UI 与 Forge 隧道进行本地热更新开发
  • 为 Forge 应用配置单元测试与端到端测试
  • 参考 bitbucket-pipelines.yml 在自托管 runner 上搭建流水线

适合人群

  • 需要快速搭建 Atlassian Forge 应用骨架的开发者
  • 希望以 monorepo 方式组织多个 Forge 应用的团队
  • 使用 Vite、React、TypeScript 技术栈的前端开发者
  • 需要为 Forge 应用补充测试与 lint 配置的项目

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    前置条件为 Node.js、Yarn 和 Forge CLI,先执行 yarn install 安装依赖

  2. 2

    按目标平台运行 yarn build:jira、yarn build:conf 或 yarn build:bitb 生成初始构建

  3. 3

    依次执行对应平台的 forge:register、forge:deploy、forge:install 脚本完成注册、部署与安装

  4. 4

    部署到 staging 或 production 时在命令后追加 -e staging 或 -e production

  5. 5

    修改 manifest.yml 后需重新部署并执行带 --upgrade 的安装命令

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 使用该模板需要安装 Atlassian Forge CLI,并依赖 Atlassian 的 Forge 平台进行注册、部署与安装。
  • 应用必须先在 Atlassian Forge 平台注册,才能部署和安装到云实例。
  • 需要拥有 Atlassian 云实例(Jira、Confluence 或 Bitbucket)才能安装并运行该应用。
  • 部署到生产环境需使用 Forge 平台的生产环境,可能涉及 Atlassian 平台的使用条款与费用。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

3. [Forge CLI](https://developer.atlassian.com/platform/forge/getting-started/)

README 原文

#### Register the app with Forge:

README 原文

Install the app on your cloud instance by running:

README 原文

yarn forge:deploy:jira -e production

README 原文
https://github.com/andrei-pisklenov/forge-starter/blob/master/LICENSEhttps://github.com/andrei-pisklenov/forge-starter/blob/master/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 80 / 100
技术栈
Vite · React
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-01-24
截图检查日期
2026-10-03

目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。

目录记录的主要技术栈是 Vite。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: 40ce62e3eadf6edf3ebe2df3bf48a26a108726058617df36f20858f9605c98ea

2026-10-03T02:46:31.700Z

来源文件 / 仓库
# ForgeStarter

![Vite](https://img.shields.io/badge/Vite-gray?logo=vite)
![React](https://img.shields.io/badge/React-gray?logo=react)
![TypeScript](https://img.shields.io/badge/TypeScript-gray?logo=typescript)
![ESLint](https://img.shields.io/badge/ESLint-gray?logo=eslint)
![Vitest](https://img.shields.io/badge/Vitest-unit--tests-6E9F18?logo=vitest)
![Playwright](https://img.shields.io/badge/Playwright-e2e--tests-45BA6E)

![](./docs/assets/repo-banner-crop.png)

⚡️ A feature-packed, opinionated starter template for building Atlassian Forge apps. Includes Yarn, Vite, React 18, TypeScript, Vitest, Testing Library, Playwright, Eslint, and Atlaskit — everything you need to get started with modern tooling and best practices.

This repository follows the principle of **"Grab It All – Use Only What You Need"**.
It enables you to quickly start building Forge apps for **Jira, Confluence, Bitbucket**, or even a single app that integrates with all three applications.  


## Getting Started

### 0. Prerequisites

Before you begin, ensure you have the following installed:

1. [Node.js](https://nodejs.org/en/download/package-manager)
2. [Yarn](https://yarnpkg.com/)
3. [Forge CLI](https://developer.atlassian.com/platform/forge/getting-started/)

### 1. Install Dependencies

Run the following command to install the necessary dependencies:

```bash
yarn install
```

### 2. Initial Build

To create the initial build, run one of the following commands, depending on the app version you'd like to start with:
- `yarn build:jira` - For Jira app version
- `yarn build:conf` - For Confluence app version
- `yarn build:bitb` - For Bitbucket app version

### 3. Register, Deploy, Install

#### Register the app with Forge:
- `yarn forge:register:jira` - For Jira version
- `yarn forge:register:conf` - For Confluence version
- `yarn forge:register:bitb` - For Bitbucket version

#### Deploy to Forge

Deploy the app to the development environment:
- `yarn forge:deploy:jira` - For Jira version
- `yarn forge:deploy:conf` - For Confluence version
- `yarn forge:deploy:bitb` - For Bitbucket version

#### Install the App on Your Cloud Instance

Install the app on your cloud instance by running:
- `yarn forge:install:jira` - For Jira version
- `yarn forge:install:conf` - For Confluence version
- `yarn forge:install:bitb` - For Bitbucket version

Follow the on-screen instructions to complete the process. 
The Forge app should now be installed from the development environment and available on your cloud instance.


## Available Scripts and additional parameters

### Deploy

To deploy to another environment (e.g., staging or production), append the environment flag:
- `yarn forge:deploy:jira -e staging`    - For staging
- `yarn forge:deploy:jira -e production` - For production
- `yarn forge:deploy:conf -e staging`    - For staging
- `yarn forge:deploy:conf -e production` - For production

### Test

`yarn test`


### Lint

- Check for linting issues:
  ```bash
  yarn lint
  ```
- Automatically fix linting issues:
  ```bash
  yarn lint:fix
  ```


# Development Workflow

Once the app is installed (see Getting Started), follow this development loop:

1. Start the Custom UI with hot reloading and establish a Forge tunnel to redirect requests to localhost:
    ```bash
    yarn dev:jira   # For Jira version
    ```

    or

    ```bash
    yarn dev:conf   # For Confluence version
    ```
2. Make changes to your app and enjoy instant feedback with hot-reloading.
3. After major changes to the `manifest.yml`, deploy and reinstall the app:
  - `yarn forge:deploy:jira` - For Jira version
  - `yarn forge:install:jira --upgrade` - For Jira version

    or
  
  - `yarn forge:deploy:conf` - For Confluence version
  - `yarn forge:install:conf --upgrade` - For Confluence version

# Folders structure

```bash
└── packages # all workspaces of your monorepo project
    └── forge-jira # Jira Forge app
        ├── manifest.yml # main manifest file
        └── src # Forge FAAS, resolvers, UI Kit modules, web triggers, custom fields, workflow postfunctions, and so on
        └── ...
    └── forge-conf # Confluence Forge app
        ├── manifest.yml # main manifest file
        └── src # Forge FAAS, resolvers, UI Kit modules, web triggers and so on
        └── ...
    └── forge-bitb # Bitbucket Forge app
        ├── manifest.yml # main manifest file
        └── src # Forge FAAS, resolvers, UI Kit modules, and so on
        └── ...
    └── shared # shared types, consts
        └── ...
    └── ui # Custom UI for all apps
        └── ...
    └── e2e # E2E tests for ui
        └── ...
└── .gitignore
└── bitbucket-pipelines.yml # Github pipelines configuration file example (self hosted runner)
└── eslint.config.js # Single eslint config file for all apps
└── tsconfig.base.json # Base TypeScript config file for all apps
└── package.json # overall workspace configuration and dependencies
```

# FAQ

<details>
  <summary><strong>Why is my app NOT eligible for the Runs on Atlassian program?</strong></summary>

  **Short answer:**  
  Your app's manifest file (`manifest.yml`) must not include any entries under the `permissions -> external` section.

  For more details about the Runs on Atlassian program, please visit the [https://go.atlassian.com/runs-on-atlassian](https://go.atlassian.com/runs-on-atlassian).
</details>

<details>
  <summary><strong>Dev Routines</strong></summary>

   1. **Upgrade dependencies interactively**  
    Use [`yarn upgrade-interactive`](https://classic.yarnpkg.com/en/docs/cli/upgrade-interactive/) to update your dependencies to the latest versions in a controlled way.
   2. **Find unused files, dependencies, and exports**  
    Use `yarn knip` to detect unused code. ⚠️ *Note: There may be false positives — review the results carefully before removing anything.*
   3. **Refresh the lockfile**  
    Run `yarn install --refresh-lockfile` to regenerate the `yarn.lock` file.  
    This is helpful for:
      - Upgrading Yarn versions
      - Fixing "ghost" dependencies stuck in the lockfile
   4. **Visualize your Vite bundle**  
    Use `npx vite-bundle-visualizer` to analyze and optimize your Vite build output. 

</details>

<details>
  <summary><strong>UI Kit is not compatible with React 19</strong></summary>

  This is a known issue — Atlassian is gradually updating UI Kit to support newer versions of React, but as of now, only React 18 is officially supported. 

  The good news is that you can still use React 18 for your UI Kit-based frontend resources, while using a different React version (including React 19) for any Custom UI resources in your app.
</details>


# License

This project is licensed under the MIT License.
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。