@diia-inhouse/scaffold

中文文档
2.60.25发布于 2026/11/11SEE LICENCE IN LICENCE.mdCommonJS近 30 天下载 4023

Hygen-based CLI that scaffolds Diia services, packages and code templates

原始使用文档
文档目录9 节
  1. Useful Links
  2. Getting Started
  3. Build Process
  4. 1. Clone codebase via git clone command
  5. 2. Go to code base root directory
  6. 3. Install npm dependencies
  7. 4. Build package
  8. How to contribute
  9. Licensing

Diia

This repository provides an overview over the flagship product Diia developed by the Ministry of Digital Transformation of Ukraine.

Diia is an app with access to citizen’s digital documents and government services.

The application was created so that Ukrainians could interact with the state in a few clicks, without spending their time on queues and paperwork - Diia open source application will help countries, companies and communities build a foundation for long-term relationships. At the heart of these relations are openness, efficiency and humanity.

We're pleased to share the Diia project with you.

TopicLinkDescription
Ministry of Digital Transformation of Ukrainehttps://thedigital.gov.ua/The Official homepage of the Ministry of Digital Transformation of Ukraine
Diia Apphttps://diia.gov.ua/The Official website for the Diia application

Getting Started

This repository contains the package which provides capabilities to generate codebase.

Build Process

1. Clone codebase via git clone command

Example:

git clone https://github.com/diia-open-source/be-scaffold.git scaffold

2. Go to code base root directory

cd ./scaffold

3. Install npm dependencies

The installation of dependencies consists of the following 2 steps:

Each Diia service depends on dependencies from @diia-inhouse/<package> scope which are distributed across different repositories, are built separately, and aren't published into public npm registry.

The full list of such dependencies can be found in the target service package.json file in dependencies and devDependencies sections respectively.

Detailed instructions on how to link dependencies from @diia-inhouse/<package> scope are described in LINKDEPS.md which can be found here https://github.com/diia-open-source/diia-setup-howto/tree/main/backend

2. Install public npm dependencies and use those linked from @diia-inhouse scope

In order to install and use the linked dependencies for scaffold the following command can be used:

$ cd ./scaffold
$ npm link @diia-inhouse/db @diia-inhouse/redis ... @diia-inhouse/<package-name>

In case all dependencies from @diia-inhouse scope are linked, and can be resolved, you will then have a complete list of dependencies installed for the service code base.


4. Build package

In order to build the service you have to run the command npm run build inside the root directory of service code base as per:

$ cd ./scaffold
$ npm run build

How to contribute

The Diia project welcomes contributions into this solution; please refer to the CONTRIBUTING.md file for details

Licensing

Copyright (C) Diia and all other contributors.

Licensed under the EUPL (the "License"); you may not use this file except in compliance with the License. Re-use is permitted, although not encouraged, under the EUPL, with the exception of source files that contain a different license.

You may obtain a copy of the License at https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.

Questions regarding the Diia project, the License and any re-use should be directed to [email protected].

This project incorporates third party material. In all cases the original copyright notices and the license under which these third party dependencies were provided remains as so. In relation to the Typescript dependency you should also review the Typescript Third Party Notices.

版本与发布记录

@diia-inhouse/scaffold 共发布 95 个版本,首次发布于 2024/06/07;过去 12 个月发布了 90 个版本。

版本发布日期距今
2.60.25latest2026/11/111 天前
2.60.242026/11/066 天前
2.60.232026/11/056 天前
2.60.222026/11/057 天前
2.60.212026/11/057 天前
2.60.202026/11/048 天前

关于 @diia-inhouse/scaffold 的常见问题

@diia-inhouse/scaffold 是什么?

Hygen-based CLI that scaffolds Diia services, packages and code templates

如何安装 @diia-inhouse/scaffold?

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

@diia-inhouse/scaffold 支持 TypeScript 吗?

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

@diia-inhouse/scaffold 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@diia-inhouse/scaffold 需要什么版本的 Node.js?

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

@diia-inhouse/scaffold 可以商用吗?

@diia-inhouse/scaffold 使用 SEE LICENCE IN LICENCE.md 许可。声明的许可为 SEE LICENCE IN LICENCE.md,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@diia-inhouse/scaffold 的下载量有多少?

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

@diia-inhouse/scaffold 还在维护吗?

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