@nx/expo 18.1.0-beta.2 → 18.1.0-beta.3
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 +9 -9
- package/plugin.d.ts +1 -1
- package/plugin.js +2 -1
- package/src/executors/serve/schema.json +1 -1
- package/src/executors/serve/serve.impl.js +3 -1
- package/src/generators/application/lib/add-e2e.js +3 -3
- package/src/generators/application/lib/normalize-options.js +4 -1
- package/src/generators/init/init.js +4 -1
- package/src/generators/library/lib/normalize-options.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/expo",
|
|
3
|
-
"version": "18.1.0-beta.
|
|
3
|
+
"version": "18.1.0-beta.3",
|
|
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": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"main": "./index.js",
|
|
27
27
|
"types": "index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@nx/devkit": "18.1.0-beta.
|
|
29
|
+
"@nx/devkit": "18.1.0-beta.3",
|
|
30
30
|
"chalk": "^4.1.0",
|
|
31
31
|
"enhanced-resolve": "^5.8.3",
|
|
32
32
|
"fs-extra": "^11.1.0",
|
|
@@ -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/jest": "18.1.0-beta.
|
|
40
|
-
"@nx/js": "18.1.0-beta.
|
|
41
|
-
"@nx/eslint": "18.1.0-beta.
|
|
42
|
-
"@nx/react": "18.1.0-beta.
|
|
43
|
-
"@nx/web": "18.1.0-beta.
|
|
44
|
-
"@nx/webpack": "18.1.0-beta.
|
|
45
|
-
"@nrwl/expo": "18.1.0-beta.
|
|
39
|
+
"@nx/jest": "18.1.0-beta.3",
|
|
40
|
+
"@nx/js": "18.1.0-beta.3",
|
|
41
|
+
"@nx/eslint": "18.1.0-beta.3",
|
|
42
|
+
"@nx/react": "18.1.0-beta.3",
|
|
43
|
+
"@nx/web": "18.1.0-beta.3",
|
|
44
|
+
"@nx/webpack": "18.1.0-beta.3",
|
|
45
|
+
"@nrwl/expo": "18.1.0-beta.3"
|
|
46
46
|
},
|
|
47
47
|
"executors": "./executors.json",
|
|
48
48
|
"ng-update": {
|
package/plugin.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createNodes, ExpoPluginOptions } from './plugins/plugin';
|
|
1
|
+
export { createNodes, createDependencies, ExpoPluginOptions, } from './plugins/plugin';
|
package/plugin.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNodes = void 0;
|
|
3
|
+
exports.createDependencies = exports.createNodes = void 0;
|
|
4
4
|
var plugin_1 = require("./plugins/plugin");
|
|
5
5
|
Object.defineProperty(exports, "createNodes", { enumerable: true, get: function () { return plugin_1.createNodes; } });
|
|
6
|
+
Object.defineProperty(exports, "createDependencies", { enumerable: true, get: function () { return plugin_1.createDependencies; } });
|
|
@@ -59,7 +59,9 @@ function serveAsync(workspaceRoot, projectRoot, options) {
|
|
|
59
59
|
});
|
|
60
60
|
childProcess.stdout.on('data', (data) => {
|
|
61
61
|
process.stdout.write(data);
|
|
62
|
-
if (data
|
|
62
|
+
if (data
|
|
63
|
+
.toString()
|
|
64
|
+
.includes('Bundling complete' || data.toString().includes('Bundled'))) {
|
|
63
65
|
resolve(childProcess);
|
|
64
66
|
}
|
|
65
67
|
});
|
|
@@ -10,8 +10,8 @@ async function addE2e(tree, options) {
|
|
|
10
10
|
const port = hasPlugin ? 8081 : 4200;
|
|
11
11
|
switch (options.e2eTestRunner) {
|
|
12
12
|
case 'cypress': {
|
|
13
|
-
const
|
|
14
|
-
if (!
|
|
13
|
+
const hasNxExpoPlugin = (0, has_expo_plugin_1.hasExpoPlugin)(tree);
|
|
14
|
+
if (!hasNxExpoPlugin) {
|
|
15
15
|
(0, web_1.webStaticServeGenerator)(tree, {
|
|
16
16
|
buildTarget: `${options.projectName}:export`,
|
|
17
17
|
targetName: 'serve-static',
|
|
@@ -36,7 +36,7 @@ async function addE2e(tree, options) {
|
|
|
36
36
|
devServerTarget: `${options.projectName}:serve`,
|
|
37
37
|
port,
|
|
38
38
|
baseUrl: `http://localhost:${port}`,
|
|
39
|
-
ciWebServerCommand:
|
|
39
|
+
ciWebServerCommand: hasNxExpoPlugin
|
|
40
40
|
? `nx run ${options.projectName}:serve-static`
|
|
41
41
|
: undefined,
|
|
42
42
|
jsx: true,
|
|
@@ -12,7 +12,10 @@ async function normalizeOptions(host, options) {
|
|
|
12
12
|
callingGenerator: '@nx/expo:application',
|
|
13
13
|
});
|
|
14
14
|
options.projectNameAndRootFormat = projectNameAndRootFormat;
|
|
15
|
-
|
|
15
|
+
const nxJson = (0, devkit_1.readNxJson)(host);
|
|
16
|
+
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
17
|
+
nxJson.useInferencePlugins !== false;
|
|
18
|
+
options.addPlugin ??= addPluginDefault;
|
|
16
19
|
const { className } = (0, devkit_1.names)(options.name);
|
|
17
20
|
const parsedTags = options.tags
|
|
18
21
|
? options.tags.split(',').map((s) => s.trim())
|
|
@@ -12,7 +12,10 @@ function expoInitGenerator(tree, schema) {
|
|
|
12
12
|
}
|
|
13
13
|
exports.expoInitGenerator = expoInitGenerator;
|
|
14
14
|
async function expoInitGeneratorInternal(host, schema) {
|
|
15
|
-
|
|
15
|
+
const nxJson = (0, devkit_1.readNxJson)(host);
|
|
16
|
+
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
17
|
+
nxJson.useInferencePlugins !== false;
|
|
18
|
+
schema.addPlugin ??= addPluginDefault;
|
|
16
19
|
(0, add_git_ignore_entry_1.addGitIgnoreEntry)(host);
|
|
17
20
|
if (schema.addPlugin) {
|
|
18
21
|
addPlugin(host);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.normalizeOptions = void 0;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
5
6
|
async function normalizeOptions(host, options) {
|
|
6
7
|
const { projectName, names: projectNames, projectRoot, importPath, } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
|
|
@@ -11,7 +12,10 @@ async function normalizeOptions(host, options) {
|
|
|
11
12
|
projectNameAndRootFormat: options.projectNameAndRootFormat,
|
|
12
13
|
callingGenerator: '@nx/expo:library',
|
|
13
14
|
});
|
|
14
|
-
|
|
15
|
+
const nxJson = (0, devkit_1.readNxJson)(host);
|
|
16
|
+
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
17
|
+
nxJson.useInferencePlugins !== false;
|
|
18
|
+
options.addPlugin ??= addPluginDefault;
|
|
15
19
|
const parsedTags = options.tags
|
|
16
20
|
? options.tags.split(',').map((s) => s.trim())
|
|
17
21
|
: [];
|