@inglorious/create-app

中文文档
1.8.0发布于 2026/11/01MITES Module

A scaffolding tool to quickly create a new app with Inglorious Web.

原始使用文档
文档目录4 节
  1. Usage
  2. Templates
  3. What it does
  4. License

@inglorious/create-app

License: MIT

The official scaffolding tool to quickly create a new web app with the @inglorious/web framework or a pre-rendered site, static or server-rendered, with @inglorious/ssx.

This package allows you to generate a new project from a set of pre-configured templates, so you can start developing your web app right away.

Usage

To create a new app, run one of the following commands in your terminal. You will be prompted to choose a project name and select a template.

# with npm
npm create @inglorious/app@latest

# with yarn
yarn create @inglorious/app

# with pnpm
pnpm create @inglorious/app

The CLI will guide you through the setup process, asking for a project name and which template you'd like to use.

For the JavaScript and TypeScript Vite templates, the CLI then asks about the app's features:

QuestionFlagAdds
Use Inglorious UI?--ui / --no-ui@inglorious/ui, its base styles and an app bar
Which theme?--theme=inglorious|material-ui|material-3|bootstrap|ios-18|ios-26The theme's stylesheet and class
Is it a mobile app?--mobile / --no-mobileCapacitor for Android and iOS; with Inglorious UI, a bottom tab bar and safe-area spacing
Add routing?--routing / --no-routingThe Router, a home and an about page, and navigation between them
Animate page transitions?--transitions / --no-transitionsView transitions between pages (with routing and Inglorious UI)
Which icon packs?--icons=material,fontawesome,lucide / --no-iconsIconify icon sets, drawn by Inglorious UI's Icon (with Inglorious UI)
Translate the app?--i18n / --no-i18n, --languages=en,it@inglorious/i18n, a catalogue per language and a language picker; the first language is the default
Add analytics?--analytics / --no-analyticsGoogle Analytics for Firebase behind a consent prompt, on the web and in the native apps
Add push notifications?--push / --no-pushFirebase Cloud Messaging, a permission prompt and the Supabase side of sending; turns on PWA support
Enable PWA support?--pwa / --no-pwavite-plugin-pwa, a manifest, icons, and a service worker that keeps installed apps on the latest version

Every template except minimal then asks whether to add agent skills (--skills / --no-skills). Saying yes runs the skills CLI in the new project. It asks which coding agents to install for, and installs the Inglorious Forge skills that match your choices: forge, forge-best-practices, store, web and web-best-practices always, plus ssx, vite-plugin-jsx or vite-plugin-vue, ui and ui-best-practices, i18n, firebase and supabase when the project uses them. If the install fails, the CLI prints the command to retry it.

The app is generated in the syntax you chose: lit-html, JSX or Vue. Every question answered on the command line is skipped, so a project can be created without any prompt:

QuestionArgument or flag
What is your project named?The first argument, such as my-app
Select a template--template=minimal|js|ts|ssx-js|ssx-ts
Select a rendering syntax--syntax=lit-html|jsx|vue
npm create @inglorious/app@latest -- my-app --template=ts --syntax=jsx --ui --theme=material-3 --routing --transitions --icons=material --languages=en,it --no-mobile --no-analytics --no-push --no-pwa --skills

Analytics and push generate their setup steps into the new project's README, and a .env.example. Push also generates a Supabase migration, the push-notify edge function and a service worker: a push is sent by inserting a row in notifications. It needs a Firebase project, a Supabase project and a sign-in screen, since the permission prompt appears once someone is signed in with Supabase Auth.

Templates

The following templates are available to get you started:

  • minimal: A minimal starter template that requires no bundling: just HTML, CSS, and JS.
  • js: A starter template for a plain JavaScript project, bundled with Vite.
  • ts: A starter template for a plain TypeScript project, bundled with Vite.
  • ssx-js: A starter template for a Static Site Xecution (SSX) project using JavaScript.
  • ssx-ts: A starter template for a Static Site Xecution (SSX) project using TypeScript.

What it does

The tool will create a new directory with your chosen project name and copy the template files into it. It will also automatically update the package.json with your project's name.

After the project is created, you can navigate into the directory and install the dependencies.

# 1. Change into your new project directory
cd my-awesome-app

# 2. Install dependencies
pnpm install

# 3. Start the development server
pnpm dev

When mobile support is enabled, initialize the native platforms once, then build and sync them with:

# Run one or both commands once, depending on the platforms you need
pnpm mobile:init:android
pnpm mobile:init:ios

pnpm mobile:sync

# Build and open the native app
pnpm mobile:android
# or
pnpm mobile:ios

For Android and iOS builds, install Android Studio with the Android SDK and a Java runtime compatible with Capacitor. Capacitor currently works reliably with JDK 21, so prefer JDK 21 over newer Java versions if you hit Java compatibility issues. Set JAVA_HOME to your JDK 21 install and ANDROID_HOME to your Android SDK path before running the native app. See the official Capacitor setup guides for platform-specific instructions:

License

MIT License - Free and open source

Created by Matteo Antony Mistretta

You're free to use, modify, and distribute this software. See LICENSE for details.

版本与发布记录

@inglorious/create-app 共发布 32 个版本,首次发布于 2025/12/08;过去 12 个月发布了 32 个版本。

版本发布日期距今
1.8.0latest2026/11/012 天前
1.7.12026/10/286 天前
1.7.02026/10/286 天前
1.6.02026/10/268 天前
1.5.02026/10/268 天前
1.4.32026/10/268 天前

关于 @inglorious/create-app 的常见问题

@inglorious/create-app 是什么?

一个脚手架工具,快速创建一个新的应用程序与Inglorious Web。

如何安装 @inglorious/create-app?

在项目目录运行 npm install @inglorious/create-app,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 create-app,可以用 npx create-app 直接运行。

@inglorious/create-app 支持 TypeScript 吗?

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

@inglorious/create-app 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@inglorious/create-app 可以商用吗?

@inglorious/create-app 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@inglorious/create-app 还在维护吗?

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