@nx/react-native 17.0.0-beta.2 → 17.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/executors.json +0 -52
- package/generators.json +0 -52
- package/package.json +11 -11
- package/plugins/with-nx-metro.d.ts +0 -4
- package/src/executors/build-android/schema.d.ts +0 -19
- package/src/executors/build-android/schema.json +0 -27
- package/src/executors/build-ios/schema.d.ts +0 -8
- package/src/executors/build-ios/schema.json +0 -18
- package/src/executors/run-android/run-android.impl.js +1 -1
- package/src/executors/run-android/run-android.impl.ts +1 -1
- package/src/executors/run-android/schema.d.ts +0 -11
- package/src/executors/run-android/schema.json +0 -12
- package/src/executors/run-ios/run-ios.impl.js +1 -1
- package/src/executors/run-ios/run-ios.impl.ts +1 -1
- package/src/executors/run-ios/schema.d.ts +0 -5
- package/src/executors/run-ios/schema.json +0 -7
- package/src/executors/storybook/schema.d.ts +0 -4
- package/src/executors/storybook/schema.json +0 -6
- package/src/generators/application/application.d.ts +0 -1
- package/src/generators/application/application.js +1 -2
- package/src/generators/component/component.d.ts +0 -1
- package/src/generators/component/component.js +1 -2
- package/src/generators/component-story/component-story.d.ts +0 -1
- package/src/generators/component-story/component-story.js +1 -2
- package/src/generators/init/init.d.ts +0 -1
- package/src/generators/init/init.js +1 -2
- package/src/generators/library/library.d.ts +0 -1
- package/src/generators/library/library.js +1 -2
- package/src/generators/stories/stories.d.ts +0 -1
- package/src/generators/stories/stories.js +1 -2
- package/src/generators/storybook-configuration/configuration.d.ts +0 -1
- package/src/generators/storybook-configuration/configuration.js +1 -2
- package/src/generators/upgrade-native/upgrade-native.d.ts +0 -1
- package/src/generators/upgrade-native/upgrade-native.js +1 -2
- package/src/executors/build-android/compat.d.ts +0 -2
- package/src/executors/build-android/compat.js +0 -5
- package/src/executors/build-ios/compat.d.ts +0 -2
- package/src/executors/build-ios/compat.js +0 -5
- package/src/executors/bundle/compat.d.ts +0 -2
- package/src/executors/bundle/compat.js +0 -5
- package/src/executors/ensure-symlink/compat.d.ts +0 -2
- package/src/executors/ensure-symlink/compat.js +0 -5
- package/src/executors/pod-install/compat.d.ts +0 -2
- package/src/executors/pod-install/compat.js +0 -5
- package/src/executors/run-android/compat.d.ts +0 -2
- package/src/executors/run-android/compat.js +0 -5
- package/src/executors/run-ios/compat.d.ts +0 -2
- package/src/executors/run-ios/compat.js +0 -5
- package/src/executors/start/compat.d.ts +0 -2
- package/src/executors/start/compat.js +0 -5
- package/src/executors/storybook/compat.d.ts +0 -2
- package/src/executors/storybook/compat.js +0 -5
- package/src/executors/sync-deps/compat.d.ts +0 -2
- package/src/executors/sync-deps/compat.js +0 -5
package/executors.json
CHANGED
|
@@ -50,57 +50,5 @@
|
|
|
50
50
|
"schema": "./src/executors/pod-install/schema.json",
|
|
51
51
|
"description": "Run `pod install` in the `ios` directory."
|
|
52
52
|
}
|
|
53
|
-
},
|
|
54
|
-
"builders": {
|
|
55
|
-
"run-android": {
|
|
56
|
-
"implementation": "./src/executors/run-android/compat",
|
|
57
|
-
"schema": "./src/executors/run-android/schema.json",
|
|
58
|
-
"description": "Runs Android application."
|
|
59
|
-
},
|
|
60
|
-
"run-ios": {
|
|
61
|
-
"implementation": "./src/executors/run-ios/compat",
|
|
62
|
-
"schema": "./src/executors/run-ios/schema.json",
|
|
63
|
-
"description": "Runs iOS application."
|
|
64
|
-
},
|
|
65
|
-
"bundle": {
|
|
66
|
-
"implementation": "./src/executors/bundle/compat",
|
|
67
|
-
"schema": "./src/executors/bundle/schema.json",
|
|
68
|
-
"description": "Builds the JavaScript bundle for offline use."
|
|
69
|
-
},
|
|
70
|
-
"build-android": {
|
|
71
|
-
"implementation": "./src/executors/build-android/compat",
|
|
72
|
-
"schema": "./src/executors/build-android/schema.json",
|
|
73
|
-
"description": "Release Build for Android."
|
|
74
|
-
},
|
|
75
|
-
"build-ios": {
|
|
76
|
-
"implementation": "./src/executors/build-ios/compat",
|
|
77
|
-
"schema": "./src/executors/build-ios/schema.json",
|
|
78
|
-
"description": "Build iOS app"
|
|
79
|
-
},
|
|
80
|
-
"start": {
|
|
81
|
-
"implementation": "./src/executors/start/compat",
|
|
82
|
-
"schema": "./src/executors/start/schema.json",
|
|
83
|
-
"description": "Starts the Javascript server that communicates with connected devices."
|
|
84
|
-
},
|
|
85
|
-
"sync-deps": {
|
|
86
|
-
"implementation": "./src/executors/sync-deps/compat",
|
|
87
|
-
"schema": "./src/executors/sync-deps/schema.json",
|
|
88
|
-
"description": "Syncs dependencies to `package.json` (required for autolinking)."
|
|
89
|
-
},
|
|
90
|
-
"ensure-symlink": {
|
|
91
|
-
"implementation": "./src/executors/ensure-symlink/compat",
|
|
92
|
-
"schema": "./src/executors/ensure-symlink//schema.json",
|
|
93
|
-
"description": "Ensure workspace `node_modules` is symlink under app's `node_modules` folder."
|
|
94
|
-
},
|
|
95
|
-
"storybook": {
|
|
96
|
-
"implementation": "./src/executors/storybook/compat",
|
|
97
|
-
"schema": "./src/executors/storybook/schema.json",
|
|
98
|
-
"description": "Serve React Native Storybook."
|
|
99
|
-
},
|
|
100
|
-
"pod-install": {
|
|
101
|
-
"implementation": "./src/executors/pod-install/compat",
|
|
102
|
-
"schema": "./src/executors/pod-install/schema.json",
|
|
103
|
-
"description": "Run `pod install` in the `ios` directory."
|
|
104
|
-
}
|
|
105
53
|
}
|
|
106
54
|
}
|
package/generators.json
CHANGED
|
@@ -2,58 +2,6 @@
|
|
|
2
2
|
"name": "Nx React Native",
|
|
3
3
|
"version": "0.1",
|
|
4
4
|
"extends": ["@nx/workspace"],
|
|
5
|
-
"schematics": {
|
|
6
|
-
"init": {
|
|
7
|
-
"factory": "./src/generators/init/init#reactNativeInitSchematic",
|
|
8
|
-
"schema": "./src/generators/init/schema.json",
|
|
9
|
-
"description": "Initialize the `@nrwl/react-native` plugin.",
|
|
10
|
-
"hidden": true
|
|
11
|
-
},
|
|
12
|
-
"application": {
|
|
13
|
-
"factory": "./src/generators/application/application#reactNativeApplicationSchematic",
|
|
14
|
-
"schema": "./src/generators/application/schema.json",
|
|
15
|
-
"aliases": ["app"],
|
|
16
|
-
"x-type": "application",
|
|
17
|
-
"description": "Create a React Native application."
|
|
18
|
-
},
|
|
19
|
-
"library": {
|
|
20
|
-
"factory": "./src/generators/library/library#reactNativeLibrarySchematic",
|
|
21
|
-
"schema": "./src/generators/library/schema.json",
|
|
22
|
-
"aliases": ["lib"],
|
|
23
|
-
"x-type": "library",
|
|
24
|
-
"description": "Create a React Native library."
|
|
25
|
-
},
|
|
26
|
-
"component": {
|
|
27
|
-
"factory": "./src/generators/component/component#reactNativeComponentSchematic",
|
|
28
|
-
"schema": "./src/generators/component/schema.json",
|
|
29
|
-
"description": "Create a React Native component.",
|
|
30
|
-
"aliases": ["c"]
|
|
31
|
-
},
|
|
32
|
-
"storybook-configuration": {
|
|
33
|
-
"factory": "./src/generators/storybook-configuration/configuration#storybookConfigurationSchematic",
|
|
34
|
-
"schema": "./src/generators/storybook-configuration/schema.json",
|
|
35
|
-
"description": "Set up Storybook for a React-native application or library.",
|
|
36
|
-
"hidden": false
|
|
37
|
-
},
|
|
38
|
-
"component-story": {
|
|
39
|
-
"factory": "./src/generators/component-story/component-story#componentStorySchematic",
|
|
40
|
-
"schema": "./src/generators/component-story/schema.json",
|
|
41
|
-
"description": "Generate Storybook story for a React-native component.",
|
|
42
|
-
"hidden": false
|
|
43
|
-
},
|
|
44
|
-
"stories": {
|
|
45
|
-
"factory": "./src/generators/stories/stories#storiesSchematic",
|
|
46
|
-
"schema": "./src/generators/stories/schema.json",
|
|
47
|
-
"description": "Create stories for all components declared in an application or library.",
|
|
48
|
-
"hidden": false
|
|
49
|
-
},
|
|
50
|
-
"upgrade-native": {
|
|
51
|
-
"factory": "./src/generators/upgrade-native/upgrade-native#reactNativeUpgradeNativeSchematic",
|
|
52
|
-
"schema": "./src/generators/upgrade-native/schema.json",
|
|
53
|
-
"description": "Destructive command to upgrade native iOS and Android code to latest.",
|
|
54
|
-
"hidden": false
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
5
|
"generators": {
|
|
58
6
|
"init": {
|
|
59
7
|
"factory": "./src/generators/init/init#reactNativeInitGenerator",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react-native",
|
|
3
|
-
"version": "17.0.0-beta.
|
|
3
|
+
"version": "17.0.0-beta.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides: \n\n-Integration with libraries such as Jest, Detox, and Storybook.\n-Scaffolding for creating buildable libraries that can be published to npm.\n-Utilities for automatic workspace refactoring.",
|
|
6
6
|
"keywords": [
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
"node-fetch": "^2.6.7",
|
|
37
37
|
"tsconfig-paths": "^4.1.2",
|
|
38
38
|
"tslib": "^2.3.0",
|
|
39
|
-
"@nx/detox": "17.0.0-beta.
|
|
40
|
-
"@nx/devkit": "17.0.0-beta.
|
|
41
|
-
"@nx/jest": "17.0.0-beta.
|
|
42
|
-
"@nx/js": "17.0.0-beta.
|
|
43
|
-
"@nx/linter": "17.0.0-beta.
|
|
44
|
-
"@nx/react": "17.0.0-beta.
|
|
45
|
-
"@nx/workspace": "17.0.0-beta.
|
|
46
|
-
"@nrwl/react-native": "17.0.0-beta.
|
|
39
|
+
"@nx/detox": "17.0.0-beta.5",
|
|
40
|
+
"@nx/devkit": "17.0.0-beta.5",
|
|
41
|
+
"@nx/jest": "17.0.0-beta.5",
|
|
42
|
+
"@nx/js": "17.0.0-beta.5",
|
|
43
|
+
"@nx/linter": "17.0.0-beta.5",
|
|
44
|
+
"@nx/react": "17.0.0-beta.5",
|
|
45
|
+
"@nx/workspace": "17.0.0-beta.5",
|
|
46
|
+
"@nrwl/react-native": "17.0.0-beta.5"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react-native": ">= 0.72.0 < 0.73.0"
|
|
50
50
|
},
|
|
51
|
-
"
|
|
51
|
+
"executors": "./executors.json",
|
|
52
52
|
"ng-update": {
|
|
53
53
|
"requirements": {},
|
|
54
54
|
"migrations": "./migrations.json"
|
|
55
55
|
},
|
|
56
|
-
"
|
|
56
|
+
"generators": "./generators.json",
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
@@ -2,10 +2,6 @@ import type { MetroConfig } from 'metro-config';
|
|
|
2
2
|
interface WithNxOptions {
|
|
3
3
|
debug?: boolean;
|
|
4
4
|
extensions?: string[];
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated TODO(v17) in the metro.config.js, pass in to the getDefaultConfig instead: getDefaultConfig(__dirname)
|
|
7
|
-
*/
|
|
8
|
-
projectRoot?: string;
|
|
9
5
|
watchFolders?: string[];
|
|
10
6
|
}
|
|
11
7
|
export declare function withNxMetro(userConfig: MetroConfig, opts?: WithNxOptions): Promise<import("metro-config").ConfigT>;
|
|
@@ -5,29 +5,10 @@ import { ReactNativeStartOptions } from '../start/schema';
|
|
|
5
5
|
|
|
6
6
|
export interface ReactNativeBuildAndroidOptions
|
|
7
7
|
extends ReactNativeStartOptions {
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated, use tasks instead. e.g. tasks=['bundleRelease'] for aab, and tasks=['assembleRelease'] for apk. Will be removed in nx 17.
|
|
10
|
-
*/
|
|
11
|
-
apk?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated, use mode='debug' instead. Will be removed in nx 17.
|
|
14
|
-
*/
|
|
15
|
-
debug?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated, use tasks instead instead. Will be removed in nx 17.
|
|
18
|
-
*/
|
|
19
|
-
gradleTask?: string;
|
|
20
|
-
|
|
21
8
|
// react native options
|
|
22
9
|
mode: string; // default is debug
|
|
23
10
|
activeArchOnly: boolean; // default is false
|
|
24
11
|
tasks?: string | Array<string>;
|
|
25
12
|
extraParams?: Array<string>;
|
|
26
13
|
interactive: boolean;
|
|
27
|
-
|
|
28
|
-
// nx options
|
|
29
|
-
// @deprecated, no longer used
|
|
30
|
-
packager: boolean; // default is true
|
|
31
|
-
// @deprecated, add to sync-deps to dependsOn
|
|
32
|
-
sync: boolean;
|
|
33
14
|
}
|
|
@@ -26,21 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
],
|
|
28
28
|
"properties": {
|
|
29
|
-
"apk": {
|
|
30
|
-
"type": "boolean",
|
|
31
|
-
"description": "Generate apk file(s) rather than a bundle (`.aab`).",
|
|
32
|
-
"x-deprecated": "Use `tasks` option instead, e.g. `tasks=['bundleRelease']` to generate aab, `tasks=['assembleDebug']` to generate apk. Will be removed in Nx 17."
|
|
33
|
-
},
|
|
34
|
-
"debug": {
|
|
35
|
-
"type": "boolean",
|
|
36
|
-
"description": "Generate a debug build instead of a release build.",
|
|
37
|
-
"x-deprecated": "Use `mode` option instead, e.g. `mode='debug'`. Deprecated from @react-native-community/cli. Will be removed in Nx 17."
|
|
38
|
-
},
|
|
39
|
-
"gradleTask": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"description": "Override default gradle task incase of multi build variants",
|
|
42
|
-
"x-deprecated": "Use `tasks` option instead, e.g. `tasks=['assembleDebug']`. Will be removed in Nx 17."
|
|
43
|
-
},
|
|
44
29
|
"mode": {
|
|
45
30
|
"type": "string",
|
|
46
31
|
"description": "Specify your app's build variant",
|
|
@@ -48,12 +33,6 @@
|
|
|
48
33
|
"examples": ["debug", "release"],
|
|
49
34
|
"x-priority": "important"
|
|
50
35
|
},
|
|
51
|
-
"packager": {
|
|
52
|
-
"type": "boolean",
|
|
53
|
-
"description": "Launch packager while building",
|
|
54
|
-
"default": true,
|
|
55
|
-
"x-deprecated": "Run `nx run <project>:start` instead. Will be removed in Nx 17."
|
|
56
|
-
},
|
|
57
36
|
"port": {
|
|
58
37
|
"type": "number",
|
|
59
38
|
"description": "The port where the packager server is listening on.",
|
|
@@ -91,12 +70,6 @@
|
|
|
91
70
|
"type": "boolean",
|
|
92
71
|
"description": "Explicitly select build type and flavour to use before running a build"
|
|
93
72
|
},
|
|
94
|
-
"sync": {
|
|
95
|
-
"type": "boolean",
|
|
96
|
-
"description": "Syncs npm dependencies to `package.json` (for React Native autolink).",
|
|
97
|
-
"default": true,
|
|
98
|
-
"x-deprecated": "Add sync-deps to dependsOn instead"
|
|
99
|
-
},
|
|
100
73
|
"resetCache": {
|
|
101
74
|
"type": "boolean",
|
|
102
75
|
"description": "Resets metro cache.",
|
|
@@ -14,12 +14,4 @@ export interface ReactNativeBuildIosOptions extends ReactNativeStartOptions {
|
|
|
14
14
|
xcconfig?: string;
|
|
15
15
|
buildFolder?: string;
|
|
16
16
|
extraParams?: string;
|
|
17
|
-
|
|
18
|
-
// nx options
|
|
19
|
-
// @deprecated, no longer used
|
|
20
|
-
packager: boolean; // default is true
|
|
21
|
-
// @deprecated, add to pod-install to dependsOn
|
|
22
|
-
install: boolean; // default is true
|
|
23
|
-
// @deprecated, add to sync-deps to dependsOn
|
|
24
|
-
sync: boolean; // default is true
|
|
25
17
|
}
|
|
@@ -80,28 +80,10 @@
|
|
|
80
80
|
],
|
|
81
81
|
"description": "Custom params that will be passed to xcodebuild command."
|
|
82
82
|
},
|
|
83
|
-
"install": {
|
|
84
|
-
"type": "boolean",
|
|
85
|
-
"description": "Runs `pod install` for native modules before building iOS app.",
|
|
86
|
-
"x-deprecated": "Add pod-install to dependsOn in project.json for this target instead",
|
|
87
|
-
"default": true
|
|
88
|
-
},
|
|
89
|
-
"sync": {
|
|
90
|
-
"type": "boolean",
|
|
91
|
-
"description": "Syncs npm dependencies to `package.json` (for React Native autolink).",
|
|
92
|
-
"x-deprecated": "Add sync-deps to dependsOn in project.json for this target instead",
|
|
93
|
-
"default": true
|
|
94
|
-
},
|
|
95
83
|
"resetCache": {
|
|
96
84
|
"type": "boolean",
|
|
97
85
|
"description": "Resets metro cache.",
|
|
98
86
|
"default": false
|
|
99
|
-
},
|
|
100
|
-
"packager": {
|
|
101
|
-
"type": "boolean",
|
|
102
|
-
"description": "Launch packager while building",
|
|
103
|
-
"default": true,
|
|
104
|
-
"x-deprecated": "Run `nx run <project>:start` instead. Will be removed in Nx 17."
|
|
105
87
|
}
|
|
106
88
|
},
|
|
107
89
|
"required": [],
|
|
@@ -9,7 +9,7 @@ let childProcess;
|
|
|
9
9
|
async function* runAndroidExecutor(options, context) {
|
|
10
10
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
11
11
|
(0, chmod_android_gradle_files_1.chmodAndroidGradlewFiles)((0, path_1.join)(projectRoot, 'android'));
|
|
12
|
-
if (options.
|
|
12
|
+
if (options.mode !== 'Release') {
|
|
13
13
|
const startResults = (0, start_impl_1.default)({
|
|
14
14
|
port: options.port,
|
|
15
15
|
resetCache: options.resetCache,
|
|
@@ -21,7 +21,7 @@ export default async function* runAndroidExecutor(
|
|
|
21
21
|
context.projectsConfigurations.projects[context.projectName].root;
|
|
22
22
|
chmodAndroidGradlewFiles(join(projectRoot, 'android'));
|
|
23
23
|
|
|
24
|
-
if (options.
|
|
24
|
+
if (options.mode !== 'Release') {
|
|
25
25
|
const startResults = startExecutor(
|
|
26
26
|
{
|
|
27
27
|
port: options.port,
|
|
@@ -4,17 +4,6 @@ import { ReactNativeStartOptions } from '../start/schema';
|
|
|
4
4
|
// part of options from https://github.com/react-native-community/cli/blob/main/packages/cli-platform-android/src/commands/runAndroid/index.ts
|
|
5
5
|
export interface ReactNativeRunAndroidOptions
|
|
6
6
|
extends ReactNativeBuildAndroidOptions {
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated TODO(v17) use mode instead
|
|
9
|
-
*/
|
|
10
|
-
variant: string;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated TODO(v17) no longer supported in react native cli
|
|
13
|
-
* https://github.com/react-native-community/cli/commit/7c003f2b1d9d80ec5c167614ba533a004272c685
|
|
14
|
-
*/
|
|
15
|
-
jetifier: boolean;
|
|
16
|
-
|
|
17
|
-
// react native options
|
|
18
7
|
appId: string;
|
|
19
8
|
appIdSuffix: string;
|
|
20
9
|
mainActiviy: string;
|
|
@@ -22,18 +22,6 @@
|
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
24
|
"properties": {
|
|
25
|
-
"variant": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "Specify your app's build variant (e.g. `debug`, `release`).",
|
|
28
|
-
"default": "debug",
|
|
29
|
-
"examples": ["debug", "release"],
|
|
30
|
-
"x-deprecated": "Deprecated from @react-native-community/cli, use mode instead, e.g. mode=debug. Will be remove in Nx 17."
|
|
31
|
-
},
|
|
32
|
-
"jetifier": {
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"description": "Run Jetifier – the AndroidX transition tool. By default it runs before Gradle to ease working with libraries that don't support AndroidX yet.",
|
|
35
|
-
"x-deprecated": "Deprecated from @react-native-community/cli. Will be remove in Nx 17."
|
|
36
|
-
},
|
|
37
25
|
"appId": {
|
|
38
26
|
"type": "string",
|
|
39
27
|
"description": "Specify an `applicationId` to launch after build. If not specified, `package` from `AndroidManifest.xml` will be used."
|
|
@@ -10,7 +10,7 @@ async function* runIosExecutor(options, context) {
|
|
|
10
10
|
throw new Error(`The run-ios build requires Mac to run`);
|
|
11
11
|
}
|
|
12
12
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
13
|
-
if (options.
|
|
13
|
+
if (options.mode !== 'Release') {
|
|
14
14
|
const startResults = (0, start_impl_1.default)({
|
|
15
15
|
port: options.port,
|
|
16
16
|
resetCache: options.resetCache,
|
|
@@ -21,7 +21,7 @@ export default async function* runIosExecutor(
|
|
|
21
21
|
const projectRoot =
|
|
22
22
|
context.projectsConfigurations.projects[context.projectName].root;
|
|
23
23
|
|
|
24
|
-
if (options.
|
|
24
|
+
if (options.mode !== 'Release') {
|
|
25
25
|
const startResults = startExecutor(
|
|
26
26
|
{
|
|
27
27
|
port: options.port,
|
|
@@ -3,10 +3,5 @@ import { ReactNativeStartOptions } from '../start/schema';
|
|
|
3
3
|
|
|
4
4
|
// part of options form https://github.com/react-native-community/cli/blob/main/packages/cli-platform-ios/src/commands/runIOS/index.ts
|
|
5
5
|
export interface ReactNativeRunIosOptions extends ReactNativeBuildIosOptions {
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated TODO(v17) use mode instead, will be removed in nx 17.
|
|
8
|
-
*/
|
|
9
|
-
xcodeConfiguration?: string;
|
|
10
|
-
|
|
11
6
|
binaryPath?: string;
|
|
12
7
|
}
|
|
@@ -22,13 +22,6 @@
|
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
24
|
"properties": {
|
|
25
|
-
"xcodeConfiguration": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "Explicitly set the Xcode configuration to use.",
|
|
28
|
-
"default": "Debug",
|
|
29
|
-
"examples": ["Debug", "Release"],
|
|
30
|
-
"x-deprecated": "Use `mode` instead. Deprecated from @react-native-community/cli. Will be removed in Nx 17."
|
|
31
|
-
},
|
|
32
25
|
"simulator": {
|
|
33
26
|
"type": "string",
|
|
34
27
|
"description": "Explicitly set simulator to use. Optionally include iOS version between parenthesis at the end to match an exact version: \"iPhone 6 (10.0)\"",
|
|
@@ -23,12 +23,6 @@
|
|
|
23
23
|
"type": "string",
|
|
24
24
|
"description": "The pattern of files to look at. It can be a specific file, or any valid glob. Note: if using the CLI, globs with `**/*...` must be escaped with quotes",
|
|
25
25
|
"default": "**/*.stories.@(js|jsx|ts|tsx|md)"
|
|
26
|
-
},
|
|
27
|
-
"silent": {
|
|
28
|
-
"type": "boolean",
|
|
29
|
-
"description": "Silences output.",
|
|
30
|
-
"default": false,
|
|
31
|
-
"x-deprecated": "No longer used. It will be silent as default."
|
|
32
26
|
}
|
|
33
27
|
},
|
|
34
28
|
"required": ["searchDir", "outputFile", "pattern"]
|
|
@@ -3,4 +3,3 @@ import { Schema } from './schema';
|
|
|
3
3
|
export declare function reactNativeApplicationGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
4
4
|
export declare function reactNativeApplicationGeneratorInternal(host: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
5
5
|
export default reactNativeApplicationGenerator;
|
|
6
|
-
export declare const reactNativeApplicationSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.reactNativeApplicationGeneratorInternal = exports.reactNativeApplicationGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const symlink_task_1 = require("../../utils/symlink-task");
|
|
6
6
|
const add_linting_1 = require("../../utils/add-linting");
|
|
@@ -41,4 +41,3 @@ async function reactNativeApplicationGeneratorInternal(host, schema) {
|
|
|
41
41
|
}
|
|
42
42
|
exports.reactNativeApplicationGeneratorInternal = reactNativeApplicationGeneratorInternal;
|
|
43
43
|
exports.default = reactNativeApplicationGenerator;
|
|
44
|
-
exports.reactNativeApplicationSchematic = (0, devkit_1.convertNxGenerator)(reactNativeApplicationGenerator);
|
|
@@ -2,4 +2,3 @@ import { Schema } from './schema';
|
|
|
2
2
|
import { Tree } from '@nx/devkit';
|
|
3
3
|
export declare function reactNativeComponentGenerator(host: Tree, schema: Schema): Promise<void>;
|
|
4
4
|
export default reactNativeComponentGenerator;
|
|
5
|
-
export declare const reactNativeComponentSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.reactNativeComponentGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const normalize_options_1 = require("./lib/normalize-options");
|
|
6
6
|
const add_import_1 = require("./lib/add-import");
|
|
@@ -50,4 +50,3 @@ function addExportsToBarrel(host, options) {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
exports.default = reactNativeComponentGenerator;
|
|
53
|
-
exports.reactNativeComponentSchematic = (0, devkit_1.convertNxGenerator)(reactNativeComponentGenerator);
|
|
@@ -9,4 +9,3 @@ export declare function createComponentStoriesFile(host: Tree, { project, compon
|
|
|
9
9
|
export declare function findPropsAndGenerateFile(host: Tree, sourceFile: ts.SourceFile, cmpDeclaration: ts.Node, componentDirectory: string, name: string, isPlainJs: boolean, fileExt: string, fromNodeArray?: boolean): void;
|
|
10
10
|
export declare function componentStoryGenerator(host: Tree, schema: CreateComponentStoriesFileSchema): Promise<void>;
|
|
11
11
|
export default componentStoryGenerator;
|
|
12
|
-
export declare const componentStorySchematic: (generatorOptions: CreateComponentStoriesFileSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.componentStoryGenerator = exports.findPropsAndGenerateFile = exports.createComponentStoriesFile = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const ast_utils_1 = require("@nx/react/src/utils/ast-utils");
|
|
6
6
|
const component_props_1 = require("@nx/react/src/utils/component-props");
|
|
@@ -74,4 +74,3 @@ async function componentStoryGenerator(host, schema) {
|
|
|
74
74
|
}
|
|
75
75
|
exports.componentStoryGenerator = componentStoryGenerator;
|
|
76
76
|
exports.default = componentStoryGenerator;
|
|
77
|
-
exports.componentStorySchematic = (0, devkit_1.convertNxGenerator)(componentStoryGenerator);
|
|
@@ -3,4 +3,3 @@ import { Schema } from './schema';
|
|
|
3
3
|
export declare function reactNativeInitGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
4
4
|
export declare function updateDependencies(host: Tree): GeneratorCallback;
|
|
5
5
|
export default reactNativeInitGenerator;
|
|
6
|
-
export declare const reactNativeInitSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.updateDependencies = exports.reactNativeInitGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const jest_1 = require("@nx/jest");
|
|
6
6
|
const detox_1 = require("@nx/detox");
|
|
@@ -77,4 +77,3 @@ function moveDependency(host) {
|
|
|
77
77
|
return (0, devkit_1.removeDependenciesFromPackageJson)(host, ['@nx/react-native'], []);
|
|
78
78
|
}
|
|
79
79
|
exports.default = reactNativeInitGenerator;
|
|
80
|
-
exports.reactNativeInitSchematic = (0, devkit_1.convertNxGenerator)(reactNativeInitGenerator);
|
|
@@ -3,4 +3,3 @@ import { Schema } from './schema';
|
|
|
3
3
|
export declare function reactNativeLibraryGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
4
4
|
export declare function reactNativeLibraryGeneratorInternal(host: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
5
5
|
export default reactNativeLibraryGenerator;
|
|
6
|
-
export declare const reactNativeLibrarySchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.reactNativeLibraryGeneratorInternal = exports.reactNativeLibraryGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const js_1 = require("@nx/js");
|
|
6
6
|
const init_1 = require("../init/init");
|
|
@@ -142,4 +142,3 @@ function maybeJs(options, path) {
|
|
|
142
142
|
: path;
|
|
143
143
|
}
|
|
144
144
|
exports.default = reactNativeLibraryGenerator;
|
|
145
|
-
exports.reactNativeLibrarySchematic = (0, devkit_1.convertNxGenerator)(reactNativeLibraryGenerator);
|
|
@@ -3,4 +3,3 @@ import { StorybookStoriesSchema } from './schema';
|
|
|
3
3
|
export declare function createAllStories(tree: Tree, projectName: string, ignorePaths?: string[]): Promise<void>;
|
|
4
4
|
export declare function storiesGenerator(host: Tree, schema: StorybookStoriesSchema): Promise<void>;
|
|
5
5
|
export default storiesGenerator;
|
|
6
|
-
export declare const storiesSchematic: (generatorOptions: StorybookStoriesSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.storiesGenerator = exports.createAllStories = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const component_story_1 = require("../component-story/component-story");
|
|
@@ -54,4 +54,3 @@ async function storiesGenerator(host, schema) {
|
|
|
54
54
|
}
|
|
55
55
|
exports.storiesGenerator = storiesGenerator;
|
|
56
56
|
exports.default = storiesGenerator;
|
|
57
|
-
exports.storiesSchematic = (0, devkit_1.convertNxGenerator)(storiesGenerator);
|
|
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
|
2
2
|
import { StorybookConfigureSchema } from './schema';
|
|
3
3
|
export declare function storybookConfigurationGenerator(host: Tree, schema: StorybookConfigureSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export default storybookConfigurationGenerator;
|
|
5
|
-
export declare const storybookConfigurationSchematic: (generatorOptions: StorybookConfigureSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.storybookConfigurationGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const versions_1 = require("../../utils/versions");
|
|
6
6
|
const stories_1 = require("../stories/stories");
|
|
@@ -54,4 +54,3 @@ function addStorybookTask(host, projectName) {
|
|
|
54
54
|
(0, devkit_1.updateProjectConfiguration)(host, projectName, projectConfig);
|
|
55
55
|
}
|
|
56
56
|
exports.default = storybookConfigurationGenerator;
|
|
57
|
-
exports.storybookConfigurationSchematic = (0, devkit_1.convertNxGenerator)(storybookConfigurationGenerator);
|
|
@@ -6,4 +6,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
|
6
6
|
import { UpgradeNativeConfigureSchema } from './schema';
|
|
7
7
|
export declare function reactNativeUpgradeNativeGenerator(host: Tree, schema: UpgradeNativeConfigureSchema): Promise<GeneratorCallback>;
|
|
8
8
|
export default reactNativeUpgradeNativeGenerator;
|
|
9
|
-
export declare const reactNativeUpgradeNativeSchematic: (generatorOptions: UpgradeNativeConfigureSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* It would replace the Android and iOS folder entirely.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
7
|
+
exports.reactNativeUpgradeNativeGenerator = void 0;
|
|
8
8
|
const devkit_1 = require("@nx/devkit");
|
|
9
9
|
const fs_1 = require("fs");
|
|
10
10
|
const pod_install_task_1 = require("../../utils/pod-install-task");
|
|
@@ -26,4 +26,3 @@ async function reactNativeUpgradeNativeGenerator(host, schema) {
|
|
|
26
26
|
}
|
|
27
27
|
exports.reactNativeUpgradeNativeGenerator = reactNativeUpgradeNativeGenerator;
|
|
28
28
|
exports.default = reactNativeUpgradeNativeGenerator;
|
|
29
|
-
exports.reactNativeUpgradeNativeSchematic = (0, devkit_1.convertNxGenerator)(reactNativeUpgradeNativeGenerator);
|