@firestitch/codegenerator

中文文档
18.0.13发布于 2025/10/03MIT近 30 天下载 2190

Installation

原始使用文档
文档目录9 节
  1. Installation
  2. Development
  3. Api Project
  4. Code-generator
  5. Playground
  6. Where is Schematics code?
  7. How to run Dev Server?
  8. Build & Publish
  9. Debug Schematics

Running Code Generator and Schematics From Source

Installation

  1. Clone repo git clone [email protected]:Firestitch/ngx-code-generator.git

  2. npm install

  3. At this step we have to build our package for future using inside this project npm run package

  4. When package build finishes we need to start using dist folder as schematic source

    • cd dist
    • npm link
    • cd ..
    • npm link @firestitch/codegenerator
  5. All done!

Development

In /apps folder we have 3 different projects:

  • api
  • code-generator
  • playground

Api Project

This project constains backend part of code generator. It receives API calls from CodeGenerator in browser and run schematics with passed parameters.

Its just simple NodeJS server

Code-generator

This is frontend part of code generator. Contains Angular application

Playground

Playground is a sandbox project where actual code generator can be tested.

Where is Schematics code?

Schematics code placed in /libs/schematics

How to run Dev Server?

Dev server is not single application and you have to start 3 different servers

  1. npx nx serve code-generator
  2. npx nx serve api '--args=--root=project' --verbose=true
  3. npm run watch:schematics

Manual generation of schematics if you are not watching run on every change

  1. npm run package

Build & Publish

Use npm run package for build and npm run package:publish for publishing your changes

Debug Schematics

  1. node --inspect-brk ./node_modules/.bin/schematics .:dialog --name=testa --module=common.module.ts --path=project/common --included-module-exports=false --routable-component=undefined --route-observer=undefined --titled-component=false --dry-run=false
  2. open in browser chrome://inspect

版本与发布记录

@firestitch/codegenerator 共发布 101 个版本,首次发布于 2018/08/14;过去 12 个月发布了 0 个版本。

版本发布日期距今
18.0.13latest2025/10/031.1 年前
18.0.122025/10/031.1 年前
18.0.112025/03/131.7 年前
18.0.102025/03/131.7 年前
18.0.92025/03/121.7 年前
18.0.82025/03/121.7 年前

其他发布通道:beta → 7.4.0-beta.2。

关于 @firestitch/codegenerator 的常见问题

@firestitch/codegenerator 是什么?

Installation

如何安装 @firestitch/codegenerator?

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

@firestitch/codegenerator 支持 TypeScript 吗?

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

@firestitch/codegenerator 可以商用吗?

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

@firestitch/codegenerator 的下载量有多少?

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

@firestitch/codegenerator 还在维护吗?

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