github-tools / github-tools/github

How to require a single class

未关闭
#442 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
3.8k
派生
809
PR 合并指标
30 天内没有已合并 PR

描述

Hello,

Thank you very much for this library, it has worked very well.
However, for some projects I don't need all the features it provides.
For example, for a small script I wrote, all I need is the Issue class. There is no documentation about how to require a particular class/component. It would be ideal also to be able to independently install the required parts.

I ended doing this:

```js
const Issue = require( 'github-api/dist/components/Issue' );
```

If there is a better approach I would love to know about it.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by reviewing the documented entry point `github-api/dist/components/Issue` and the package's existing usage documentation. Clarify the supported way to require a single component and whether independently installing parts is in scope; done means the documentation explains the approach and its limitations.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
documentation
Issue 类型
文档
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。