Package specific configuration (for apps and libraries)
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- nodejs, react-native, typescript
- 領域
- build-system, tooling
調査の方向性
実装ファイルやテストは指定されていません。まず、ここで提案されている設定スキーマ、検索動作、依存関係スキャンのルール、プラットフォーム固有のパス処理を整理してください。プロジェクトで合意済みかつ文書化された設定設計が確立され、各オプションの動作が明確になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
We've actively worked towards putting as few restrictions on the packages bringing Node-API modules as possible, to make it more likely to migrate / re-use existing packages intended for Node.js and we would like to continue to support packages providing Node-API modules without requiring package-specific configuration.
How to configure
We could rely on cosmiconfig (which is also used by the React Native Community CLI):
By default, Cosmiconfig will check the current directory for the following:
- a
package.jsonproperty- a JSON or YAML, extensionless "rc file"
- an "rc file" with the extensions
.json,.yaml,.yml,.js,.ts,.mjs, or.cjs- any of the above two inside a
.configsubdirectory- a
.config.js,.config.ts,.config.mjs, or.config.cjsfile
We could load this config starting from the "app" and then look for it in all direct dependencies of the app package and all transitive dependencies explicitly enumerated - see below.
What to configure
Possible configuration options which could optimise the experience:
Library name mapping to paths
We could allow library authors to provide explicit paths for the Node-API prebuilds bundled with their package:
{
// Alternative names for this property could be "addons" or "modules"? 🤔
"prebuilds": [
// Provide a path for a prebuild
"./build/Release/somthing.node",
// Which would be an alias for an object with the same path
{ "path": "./build/Release/somthing.node" },
// Allow overriding the name (default would be "my-lib--addon") used for the library files when linked into the app
{ "name": "addon", "path": "./build/Release/addon.node" },
// Allow specifying platform-specific paths
{
"name": "addon",
"path": {
"android": "./build/Release/addon.android.node",
"ios": "./build/Debug/addon.apple.node"
},
},
]
}
Control scanning
We could group options related to scanning for Node-API modules, either under a "scanning" (or simply "scan") key.
We could enable scanning of specific transitive dependencies (see #367 for use-case)
{
"scanning": {
"dependencies": ["name-of-lib-with-node-api-module"]
}
}
We could provide lists of glob patterns to include and exclude when scanning for modules
{
"scanning": {
"include": ["./build"],
"exclude": ["./node_modules"],
}
}
Or disable scanning all together:
{
"scanning": {
"disabled": true
}
}
- 主要言語
- TypeScript
- スター
- 188
- フォーク
- 10
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 3
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
callstackincubator/react-native-node-api のほかの issue
-
Android 🤖
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
Sanity check of Hermes source directory via environment variable, when building Android projects オープンAndroid 🤖 good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
callstackincubator/react-native-node-api#163 · コメント 1 件 ·
-
enhancement good first issue gyp-to-cmake
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
callstackincubator/react-native-node-api#161 · コメント 3 件 · リアクション 1 件 ·
-
enhancement Host 🏡
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
Automatable good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 15/100
callstackincubator/react-native-node-api#424 · コメント 1 件 ·
callstackincubator/react-native-node-api の issue をすべて見る
似ている issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100