@fleetbase/valhalla-engine

中文文档
0.0.5发布于 2026/10/27AGPL-3.0-or-later近 30 天下载 2654

Valhalla routing engine extension for Fleetbase

原始使用文档
文档目录10 节
  1. Overview
  2. Structure
  3. Installation
  4. Backend
  5. Frontend
  6. Usage
  7. Backend
  8. Frontend
  9. Contributing
  10. License

Starter Extension for Fleetbase


Overview

This monorepo contains both the frontend and backend components for a Skeleton/Starter extension for Fleetbase. The frontend is built using Ember.js and the backend is implemented in PHP.

  • PHP 8.2 or above
  • Ember.js v5.4 or above
  • Ember CLI v5.4 or above
  • Node.js v18 or above

Structure

├── addon
├── app
├── assets
├── translations
├── config
├── node_modules
├── server
│ ├── config
│ ├── data
│ ├── migrations
│ ├── resources
│ ├── src
│ ├── tests
│ └── vendor
├── tests
├── testem.js
├── index.js
├── package.json
├── phpstan.neon.dist
├── phpunit.xml.dist
├── pnpm-lock.yaml
├── ember-cli-build.js
├── composer.json
├── CONTRIBUTING.md
├── LICENSE.md
├── README.md

Installation

Backend

Install the PHP packages using Composer:

composer require fleetbase/core-api
composer require fleetbase/starter-api

Frontend

Install the Ember.js Engine/Addon:

pnpm install @fleetbase/starter-engine

Usage

Backend

🧹 Keep a modern codebase with PHP CS Fixer:

composer lint

⚗️ Run static analysis using PHPStan:

composer test:types

✅ Run unit tests using PEST

composer test:unit

🚀 Run the entire test suite:

composer test

Frontend

🧹 Keep a modern codebase with ESLint:

pnpm lint

✅ Run unit tests using Ember/QUnit

pnpm test
pnpm test:ember
pnpm test:ember-compatibility

🚀 Start the Ember Addon/Engine

pnpm start

🔨 Build the Ember Addon/Engine

pnpm build

Contributing

See the Contributing Guide for details on how to contribute to this project.

License

This project is licensed under the MIT License.

版本与发布记录

@fleetbase/valhalla-engine 共发布 5 个版本,首次发布于 2025/06/04;过去 12 个月发布了 4 个版本。

版本发布日期距今
0.0.5latest2026/10/2719 天前
0.0.42026/05/056 个月前
0.0.32025/12/0611 个月前
0.0.22025/12/0511 个月前
0.0.12025/06/041.4 年前

关于 @fleetbase/valhalla-engine 的常见问题

@fleetbase/valhalla-engine 是什么?

Valhalla routing engine extension for Fleetbase

如何安装 @fleetbase/valhalla-engine?

在项目目录运行 npm install @fleetbase/valhalla-engine,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:ember-engines(^0.9.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@fleetbase/valhalla-engine 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/fleetbase__valhalla-engine 是否存在。

@fleetbase/valhalla-engine 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >= 18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@fleetbase/valhalla-engine 可以商用吗?

@fleetbase/valhalla-engine 使用 AGPL-3.0-or-later 许可。最严格的 Copyleft:除分发外,通过网络向用户提供基于它的服务也需要开源对应源码。闭源 SaaS 使用前务必评估。以上为概括,不构成法律意见,请以许可原文为准。

@fleetbase/valhalla-engine 的下载量有多少?

根据 npm 官方下载统计,@fleetbase/valhalla-engine 在 2026/10/15 – 2026/11/13 这 30 天内被下载 2,654 次,日均约 88 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fleetbase/valhalla-engine 还在维护吗?

最新版本 0.0.5 发布于 2026/10/27(19 天前);至今共发布 5 个版本,其中过去 12 个月发布了 4 个;首次发布于 2025/06/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。