@dpuse/dpuse-development

中文文档
1.0.151发布于 2026/11/13MITTypeScriptES Module构建来源已验证近 30 天下载 4700

Actions for managing DPUse projects.

原始使用文档
文档目录15 节
  1. About DPUse
  2. Introduction
  3. Usage
  4. API Reference
  5. Dependency Licenses
  6. Bundle Analysis
  7. Quality & Security
  8. Testing
  9. Code Quality
  10. Security Analysis
  11. Dependencies
  12. OpenSSF 🚧
  13. Reporting Vulnerabilities
  14. Contributing
  15. License

DPUse Development

License: MIT npm version CI

Actions for managing DPUse projects.

Report a Vulnerability · Open an Issue

About DPUse

DPUse (Data Positioning & Use) is an in-browser application that positions your data for use through three core activities: sourcing, contextualising, and publishing.

Sourcing uses a library of Connectors to establish Connections to applications, databases, file stores, and curated datasets; these connections are subsequently used to configure structured Data Views from the underlying sources.

Contextualising extracts chronological events from those Data Views and maps them into comprehensive Context Models. This gives the DPUse Engine the structural framework needed to generate deterministic transactions, facts, or observations.

Publishing uses a library of Presenters to render standard Presentations immediately using the contextualised data; additionally, Cookbooks of Recipes let you build Data Apps using your preferred tools.

In addition, DPUse provides Tools used by the application, and you can use them to construct connectors and presenters.

Introduction

The package implements a common set of actions used to manage DPUse repositories. All actions are designed to be run from package.json scripts and assume that the project follows the standard DPUse directory structure and that it includes a config.json file in the root directory. See API Reference.

Usage

This package is available on npm. Install it with:

npm install @dpuse/dpuse-development

[!WARNING] This project is not designed for general use. It is custom built for the DPUse CI/CD process. You are welcome to clone and customise it for your own purposes, but you will need to adapt it to your own project structure and tooling.

To work on the source instead, clone this repository.

git clone https://github.com/dpuse/dpuse-development.git
cd dpuse-development
npm install

Requires Node.js 24 or later, npm 12 or later, and TypeScript 6.0.3 or later.

This repository manages itself using the actions it implements. See the scripts block in package.json for details.

API Reference

See API_REFERENCE.md for the complete API reference, including every exported action and type.

Dependency Licenses

[!WARNING] Dependency licenses are not documented here: @dpuse/dpuse-development is a development-only tool and is never part of a production release.

Bundle Analysis

This report is updated with each release, from the bundle the release builds, using Sonda, which analyses final source maps to reveal the actual effects of tree-shaking and minification rather than relying on pre-build estimates.

Note: Sonda's Vite reports currently exclude CSS files, since Vite does not generate source maps for CSS.

Chunk/Module/FileComposition
dist/dpuse-development.es.js65.9 kB · gzip 21.0 kB · 63.4% of the build
    src → documentDependencies.ts + 22 more██████████████████░░ 87.6% · 57.7 kB
        ↳ documentDependencies.ts▒▒▒░░░░░░░░░░░░░░░░░ 17.3% · 11.4 kB
        ↳ documentQualitySecurity.ts▒▒▒░░░░░░░░░░░░░░░░░ 15.1% · 9.9 kB
        ↳ documentBundleSizes.ts▒▒▒░░░░░░░░░░░░░░░░░ 13.7% · 9.0 kB
        ↳ checkConfigFiles.ts▒░░░░░░░░░░░░░░░░░░░ 5.7% · 3.8 kB
        ↳ rustCrates.ts▒░░░░░░░░░░░░░░░░░░░ 5.2% · 3.4 kB
        ↳ documentUsage.ts▒░░░░░░░░░░░░░░░░░░░ 4.1% · 2.7 kB
        ↳ checkDependencies.ts▒░░░░░░░░░░░░░░░░░░░ 4.0% · 2.6 kB
        ↳ cloudflare.ts▒░░░░░░░░░░░░░░░░░░░ 3.4% · 2.2 kB
        ↳ documentOpening.ts▒░░░░░░░░░░░░░░░░░░░ 3.1% · 2.0 kB
        ↳ auditDependencies.ts▒░░░░░░░░░░░░░░░░░░░ 3.0% · 2.0 kB
        ↳ documentActions.ts▒░░░░░░░░░░░░░░░░░░░ 2.7% · 1.8 kB
        ↳ documentContributingLicense.ts░░░░░░░░░░░░░░░░░░░░ 1.9% · 1.2 kB
        ↳ publishProject.ts░░░░░░░░░░░░░░░░░░░░ 1.7% · 1.1 kB
        ↳ releaseProject.ts░░░░░░░░░░░░░░░░░░░░ 1.4% · 972 B
        ↳ testProject.ts░░░░░░░░░░░░░░░░░░░░ 1.2% · 799 B
        ↳ 8 smaller files▒░░░░░░░░░░░░░░░░░░░ 4.3% · 2.8 kB
    (inlined worker)░░░░░░░░░░░░░░░░░░░░ 0.0% · 17 B
    (bundler output, whitespace & JSON)██░░░░░░░░░░░░░░░░░░ 12.4% · 8.2 kB
dist/utilities-BJfQ3vEr.js27.2 kB · gzip 7.3 kB · 26.1% of the build
    @dpuse/dpuse-shared → dist/dpuse-shared.es.js███████████░░░░░░░░░ 54.7% · 14.9 kB
    src → index.ts███████░░░░░░░░░░░░░ 32.7% · 8.9 kB
    valibot → dist/index.mjs░░░░░░░░░░░░░░░░░░░░ 1.5% · 413 B
    (bundler output, whitespace & JSON)██░░░░░░░░░░░░░░░░░░ 11.1% · 3.0 kB
dist/apiReference-aFk9cwH0.js8.4 kB · gzip 3.1 kB · 8.1% of the build
    src → apiReference.ts███████████████████░ 95.3% · 8.0 kB
    (bundler output, whitespace & JSON)█░░░░░░░░░░░░░░░░░░░ 4.7% · 407 B
dist/vite.es.js2.5 kB · gzip 1.1 kB · 2.4% of the build
    src → vite.ts██████████████████░░ 87.7% · 2.2 kB
    (bundler output, whitespace & JSON)██░░░░░░░░░░░░░░░░░░ 12.3% · 314 B

Bars show each row's share of its output file. ↳ rows are part of the row above.

  • n more = the row also holds n more files from the same package or folder, each no larger than the one named. A package can appear under several output files, each holding different files, never the same file twice.

(inlined worker) = a Web Worker built separately and embedded in its output file as text. Where the build records what it contains, its rows list that; any few bytes over are the escaping needed to embed it.

(bundler output, whitespace & JSON) = bytes Sonda can't trace to a source file: whitespace (indentation and line breaks), code the bundler generates (region comments, the combined import/export lines, its small runtime helper and wrappers), and imported JSON such as config.json, which the bundler doesn't map. The JSON and the generated code are real bytes that ship; the whitespace mostly disappears once compressed.

Quality & Security

This section is updated each time npm run document is run. Settings come from the repository's workflow files and GitHub. Test coverage and the Fallow score are measured at the same time.

Testing

CheckStatusWhat it does
Unit tests✅ OnVitest runs the unit tests. Part of the CI workflow on every push and pull request to main.
Property-based tests✅ Onfast-check runs many random inputs per test to find edge cases, alongside the unit tests. Part of the CI workflow on every push and pull request to main.
Test coverage✅ OnCoverage Vitest's V8 coverage measures the share of source lines the unit tests run. The target is 80%.

Code Quality

CheckStatusWhat it does
Code health✅ OnFallow code health Fallow finds unused code, duplication, complexity and dependency problems.
Code analysis✅ OnQuality Gate Status SonarCloud checks every push for bugs, code smells and vulnerabilities.
Linting✅ OnESLint checks the code for errors and style problems. Part of the CI workflow on every push and pull request to main.

Security Analysis

CheckStatusWhat it does
Push protection✅ OnGitHub push protection blocks pushes that contain credentials.
Static analysis✅ OnCodeQL CodeQL scans GitHub Actions and JavaScript/TypeScript for security vulnerabilities, using the extended security queries, on every push and pull request to main and weekly.
Secret scanning✅ OnGitHub secret scanning detects credentials, such as API keys and tokens, committed to the repository.

Dependencies

CheckStatusWhat it does
Vulnerability audit✅ Onnpm audit fails when a shipped dependency has any known vulnerability, or a development dependency has a high or critical one. Part of the CI workflow on every push and pull request to main.
Supply chain risk✅ OnSocket flags malicious packages, typosquatting and suspicious behaviour that may not yet have a CVE.
Security alerts✅ OnDependabot alerts when a dependency has a known vulnerability, using the GitHub Advisory Database.
Security updates❌ OffDependabot opens pull requests that update vulnerable dependencies. These are handled manually.
Version updates❌ OffDependabot opens pull requests for new dependency versions. These are handled manually.

OpenSSF 🚧

OpenSSF Scorecard

This project is working towards the OpenSSF Best Practices Passing badge, a self-certification covering security policy, vulnerability reporting, build processes, code quality, and more. Currently the OpenSSF Scorecard provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.

Reporting Vulnerabilities

Please do not open public GitHub issues for security vulnerabilities. Use GitHub private vulnerability reporting instead. See SECURITY.md for the full disclosure policy, contact details, and expected response times.

Contributing

This repository is maintained solely by its owner and does not, at present, accept external contributions into the canonical repo. Its source is published openly under the MIT License — every DPUse project is fully open source except DPUse Engine, which remains closed and proprietary.

For security vulnerabilities, see Reporting Vulnerabilities. For bugs, inconsistencies, or other feedback, open a GitHub issue — feedback is read, but responses and fixes are at the maintainer's discretion.

License

This project is licensed under the MIT License, permitting free use, modification, and distribution.

MIT © 2026 Jonathan Terrell

版本与发布记录

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

版本发布日期距今
1.0.151latest2026/11/13今天
1.0.1492026/11/103 天前
1.0.1482026/11/076 天前
1.0.1472026/11/058 天前
1.0.1452026/11/0211 天前
1.0.1442026/11/0211 天前

关于 @dpuse/dpuse-development 的常见问题

@dpuse/dpuse-development 是什么?

Actions for managing DPUse projects.

如何安装 @dpuse/dpuse-development?

在项目目录运行 npm install @dpuse/dpuse-development,或使用 pnpm add / yarn add / bun add。

@dpuse/dpuse-development 支持 TypeScript 吗?

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

@dpuse/dpuse-development 支持 ESM 还是 CommonJS?

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

@dpuse/dpuse-development 需要什么版本的 Node.js?

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

@dpuse/dpuse-development 可以商用吗?

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

@dpuse/dpuse-development 的下载量有多少?

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

@dpuse/dpuse-development 还在维护吗?

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