-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): add support for
extends
field (#3425)
- Loading branch information
Showing
14 changed files
with
200 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rnx-kit/config": patch | ||
--- | ||
|
||
Add support for `extends` field |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
* text=auto | ||
*.pbxproj -text | ||
/.yarn/releases/* binary | ||
* text=auto | ||
**/test/__fixtures__/** linguist-generated=false | ||
*.pbxproj -text | ||
/.yarn/releases/* binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
packages/config/test/__fixtures__/node_modules/kit-test-configured/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/config/test/__fixtures__/node_modules/kit-test-extends-file/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"private": true, | ||
"name": "kit-test-extends-file", | ||
"version": "0.0.1", | ||
"description": "Package with rnx-kit configuration extending a file", | ||
"rnx-kit": { | ||
"extends": "./rnx-kit.config.js" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/config/test/__fixtures__/node_modules/kit-test-extends-file/rnx-kit.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
"bundle": { | ||
"id": "core", | ||
"entryFile": "./core-entry.js", | ||
"bundleOutput": "./app.bundle", | ||
"targets": [ | ||
"ios", | ||
"android", | ||
"macos", | ||
"windows" | ||
], | ||
"platforms": { | ||
"android": { | ||
"assetsDest": "./build-out/res" | ||
} | ||
} | ||
} | ||
}; |
9 changes: 9 additions & 0 deletions
9
packages/config/test/__fixtures__/node_modules/kit-test-extends-module/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"private": true, | ||
"name": "kit-test-extends-module", | ||
"version": "0.0.1", | ||
"description": "Package with rnx-kit configuration extending a module", | ||
"rnx-kit": { | ||
"extends": "rnx-kit-config" | ||
} | ||
} |
6 changes: 2 additions & 4 deletions
6
packages/config/test/__fixtures__/node_modules/kit-test-unconfigured/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
{ | ||
"private": true, | ||
"name": "kit-test-unconfigured", | ||
"version": "0.0.1", | ||
"description": "Package with no rnx-kit configuration", | ||
"private": true, | ||
"author": "", | ||
"license": "MIT" | ||
"description": "Package with no rnx-kit configuration" | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/config/test/__fixtures__/node_modules/rnx-kit-config/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
"bundle": { | ||
"id": "core", | ||
"entryFile": "./core-entry.js", | ||
"bundleOutput": "./app.bundle", | ||
"targets": [ | ||
"ios", | ||
"android", | ||
"macos", | ||
"windows" | ||
], | ||
"platforms": { | ||
"android": { | ||
"assetsDest": "./build-out/res" | ||
} | ||
} | ||
} | ||
}; |
8 changes: 8 additions & 0 deletions
8
packages/config/test/__fixtures__/node_modules/rnx-kit-config/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"private": true, | ||
"name": "rnx-kit-config", | ||
"version": "0.0.1", | ||
"description": "Base rnx-kit configuration", | ||
"main": "index.js" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.