@evjs/create-app

中文文档
0.3.30发布于 2026/11/14MITTypeScriptES Module构建来源已验证近 30 天下载 2126

Scaffold a new evjs project

原始使用文档
文档目录6 节
  1. Commands
  2. npx @evjs/create-app
  3. Options
  4. Templates
  5. Quick Start via npx
  6. License

@evjs/create-app

Scaffolding tool for the evjs fullstack framework.

Commands

npx @evjs/create-app

The primary interactive CLI for creating new projects.

npx @evjs/create-app [name] [options]

Options

  • [name] (string): Project name and directory.
  • --template <name>: Specify a template (see Templates).
  • --help: Show usage info.

Templates

Every template uses the same Page-and-Route authoring model: page.tsx anchors, optional build-time page.config.ts for static title/named metadata and rendering, and directory-derived URLs. routing.mode is the only routing-mode configuration; SPA and MPA materialize the same Page tree differently.

NameDescription
basicBasic full-stack SPA with routing, page.config.ts, and server functions.
mpaThe same Page/config model materialized as separate documents.
api-routesREST API routes via positive src/apis/**/api.* anchors.
complex-routingAdvanced Page routes with a root layout, params, redirects, and nested paths.
custom-ws-transportCustom transport example using WebSockets.
plugin-authoringStarter focused on plugin authoring and bundler hooks.
with-sqliteFull-stack CRUD example backed by SQLite.
with-tailwindReady-to-go Tailwind CSS integration.
with-trpcExample interoperating with tRPC.

Quick Start via npx

npx @evjs/create-app my-new-app

Follow the interactive prompts to select your features and get started in seconds.

Generated framework files such as src/route-types.d.ts and src/plugin-types.d.ts are never copied from templates and remain ignored by source control. They deliberately live under src rather than .ev: standard project TypeScript configs include src, while .ev is generated framework IR and is normally outside the TypeScript program.

page.config.ts is evaluated by evjs during graph construction. It is not a browser entry: plugins must explicitly project any configured Page plugin settings that their runtime needs.

License

MIT

版本与发布记录

@evjs/create-app 共发布 97 个版本,首次发布于 2026/03/24;过去 12 个月发布了 97 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.3.30latest2026/11/14今天
0.3.30-alpha.1alpha2026/11/122 天前
0.3.30-alpha.02026/11/113 天前
0.2.18legacy2026/11/0212 天前
0.3.292026/11/0113 天前
0.3.282026/10/3114 天前

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

@evjs/create-app 是什么?

Scaffold a new evjs project

如何安装 @evjs/create-app?

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

@evjs/create-app 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

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

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

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

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

@evjs/create-app 的下载量有多少?

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

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

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