@nx/expo 16.9.0-rc.0 → 16.9.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/expo",
|
|
3
|
-
"version": "16.9.0
|
|
3
|
+
"version": "16.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Expo Plugin for Nx contains executors and generators for managing and developing an expo application within your workspace. For example, you can directly build for different target platforms as well as generate projects and publish your code.",
|
|
6
6
|
"keywords": [
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
37
|
"tsconfig-paths": "^4.1.2",
|
|
38
38
|
"tsconfig-paths-webpack-plugin": "^4.0.0",
|
|
39
|
-
"@nx/detox": "16.9.0
|
|
40
|
-
"@nx/devkit": "16.9.0
|
|
41
|
-
"@nx/jest": "16.9.0
|
|
42
|
-
"@nx/js": "16.9.0
|
|
43
|
-
"@nx/linter": "16.9.0
|
|
44
|
-
"@nx/react": "16.9.0
|
|
45
|
-
"@nx/webpack": "16.9.0
|
|
39
|
+
"@nx/detox": "16.9.0",
|
|
40
|
+
"@nx/devkit": "16.9.0",
|
|
41
|
+
"@nx/jest": "16.9.0",
|
|
42
|
+
"@nx/js": "16.9.0",
|
|
43
|
+
"@nx/linter": "16.9.0",
|
|
44
|
+
"@nx/react": "16.9.0",
|
|
45
|
+
"@nx/webpack": "16.9.0",
|
|
46
46
|
"@nrwl/expo": "*"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
@@ -4,5 +4,13 @@ import { GeneratorCallback } from '@nx/devkit';
|
|
|
4
4
|
* @param iosDirectory ios directory that contains Podfile
|
|
5
5
|
* @returns resolve with 0 if not error, reject with error otherwise
|
|
6
6
|
*/
|
|
7
|
-
export declare function runPodInstall(iosDirectory: string, install?: boolean,
|
|
8
|
-
|
|
7
|
+
export declare function runPodInstall(iosDirectory: string, install?: boolean, options?: {
|
|
8
|
+
buildFolder?: string;
|
|
9
|
+
repoUpdate?: boolean;
|
|
10
|
+
deployment?: boolean;
|
|
11
|
+
}): GeneratorCallback;
|
|
12
|
+
export declare function podInstall(iosDirectory: string, options?: {
|
|
13
|
+
buildFolder?: string;
|
|
14
|
+
repoUpdate?: boolean;
|
|
15
|
+
deployment?: boolean;
|
|
16
|
+
}): void;
|
|
@@ -22,7 +22,11 @@ ${chalk.bold('sudo xcode-select --switch /Applications/Xcode.app')}
|
|
|
22
22
|
* @param iosDirectory ios directory that contains Podfile
|
|
23
23
|
* @returns resolve with 0 if not error, reject with error otherwise
|
|
24
24
|
*/
|
|
25
|
-
function runPodInstall(iosDirectory, install = true,
|
|
25
|
+
function runPodInstall(iosDirectory, install = true, options = {
|
|
26
|
+
buildFolder: './build',
|
|
27
|
+
repoUpdate: false,
|
|
28
|
+
deployment: false,
|
|
29
|
+
}) {
|
|
26
30
|
return () => {
|
|
27
31
|
if ((0, os_1.platform)() !== 'darwin') {
|
|
28
32
|
devkit_1.logger.info('Skipping `pod install` on non-darwin platform');
|
|
@@ -33,13 +37,23 @@ function runPodInstall(iosDirectory, install = true, buildFolder) {
|
|
|
33
37
|
return;
|
|
34
38
|
}
|
|
35
39
|
devkit_1.logger.info(`Running \`pod install\` from "${iosDirectory}"`);
|
|
36
|
-
return podInstall(iosDirectory,
|
|
40
|
+
return podInstall(iosDirectory, options);
|
|
37
41
|
};
|
|
38
42
|
}
|
|
39
43
|
exports.runPodInstall = runPodInstall;
|
|
40
|
-
function podInstall(iosDirectory,
|
|
44
|
+
function podInstall(iosDirectory, options = {
|
|
45
|
+
buildFolder: './build',
|
|
46
|
+
repoUpdate: false,
|
|
47
|
+
deployment: false,
|
|
48
|
+
}) {
|
|
41
49
|
try {
|
|
42
|
-
(0,
|
|
50
|
+
if ((0, fs_extra_1.existsSync)((0, path_1.join)(iosDirectory, '.xcode.env'))) {
|
|
51
|
+
(0, child_process_1.execSync)('touch .xcode.env', {
|
|
52
|
+
cwd: iosDirectory,
|
|
53
|
+
stdio: 'inherit',
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
(0, child_process_1.execSync)(`pod install ${options.repoUpdate ? '--repo-update' : ''} ${options.deployment ? '--deployment' : ''}`, {
|
|
43
57
|
cwd: iosDirectory,
|
|
44
58
|
stdio: 'inherit',
|
|
45
59
|
});
|