@diia-inhouse/cms

中文文档
3.3.180发布于 2026/11/01SEE LICENSE IN LICENSE.mdTypeScriptES Module

Cms utils

原始使用文档
文档目录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 cms capabilities.

Build Process

1. Clone codebase via git clone command

Example:

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

2. Go to code base root directory

cd ./pkg-cms

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 pkg-cms the following command can be used:

$ cd ./pkg-cms
$ 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 ./pkg-cms
$ 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/cms 共发布 210 个版本,首次发布于 2024/06/10;过去 12 个月发布了 209 个版本。

版本发布日期距今
3.3.180latest2026/11/012 天前
3.3.1792026/10/313 天前
3.3.1782026/10/313 天前
3.3.1772026/10/313 天前
3.3.1762026/10/304 天前
3.3.1752026/10/304 天前

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

@diia-inhouse/cms 是什么?

Cms跑龙套

如何安装 @diia-inhouse/cms?

在项目目录运行 npm install @diia-inhouse/cms,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@diia-inhouse/http(>=5.0.0)、@diia-inhouse/types(>=13.0.0)、@diia-inhouse/errors(>=2.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@diia-inhouse/cms 支持 TypeScript 吗?

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

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

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

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

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

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

@diia-inhouse/cms 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

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

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