@nrwl/detox 16.0.0-beta.0 → 16.0.0-beta.1
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 +4 -4
- package/generators.json +2 -33
- package/index.d.ts +1 -2
- package/index.js +2 -5
- package/index.js.map +1 -1
- package/package.json +7 -16
- package/.eslintrc.json +0 -19
- package/README.md +0 -63
- package/migrations.json +0 -206
- package/project.json +0 -55
- package/src/executors/build/build.impl.d.ts +0 -7
- package/src/executors/build/build.impl.js +0 -59
- package/src/executors/build/build.impl.js.map +0 -1
- package/src/executors/build/compat.d.ts +0 -2
- package/src/executors/build/compat.js +0 -6
- package/src/executors/build/compat.js.map +0 -1
- package/src/executors/build/schema.json +0 -23
- package/src/executors/test/compat.d.ts +0 -2
- package/src/executors/test/compat.js +0 -6
- package/src/executors/test/compat.js.map +0 -1
- package/src/executors/test/schema.json +0 -149
- package/src/executors/test/test.impl.d.ts +0 -6
- package/src/executors/test/test.impl.js +0 -74
- package/src/executors/test/test.impl.js.map +0 -1
- package/src/generators/application/application.d.ts +0 -5
- package/src/generators/application/application.js +0 -29
- package/src/generators/application/application.js.map +0 -1
- package/src/generators/application/files/app/.babelrc.template +0 -11
- package/src/generators/application/files/app/.detoxrc.json.template +0 -102
- package/src/generators/application/files/app/jest.config.json.template +0 -15
- package/src/generators/application/files/app/src/app.spec.ts.template +0 -11
- package/src/generators/application/files/app/test-setup.ts.template +0 -5
- package/src/generators/application/files/app/tsconfig.e2e.json +0 -10
- package/src/generators/application/files/app/tsconfig.json +0 -10
- package/src/generators/application/lib/add-git-ignore-entry.d.ts +0 -3
- package/src/generators/application/lib/add-git-ignore-entry.js +0 -16
- package/src/generators/application/lib/add-git-ignore-entry.js.map +0 -1
- package/src/generators/application/lib/add-linting.d.ts +0 -3
- package/src/generators/application/lib/add-linting.js +0 -28
- package/src/generators/application/lib/add-linting.js.map +0 -1
- package/src/generators/application/lib/add-project.d.ts +0 -3
- package/src/generators/application/lib/add-project.js +0 -33
- package/src/generators/application/lib/add-project.js.map +0 -1
- package/src/generators/application/lib/create-files.d.ts +0 -3
- package/src/generators/application/lib/create-files.js +0 -14
- package/src/generators/application/lib/create-files.js.map +0 -1
- package/src/generators/application/lib/get-targets.d.ts +0 -58
- package/src/generators/application/lib/get-targets.js +0 -76
- package/src/generators/application/lib/get-targets.js.map +0 -1
- package/src/generators/application/lib/normalize-options.d.ts +0 -18
- package/src/generators/application/lib/normalize-options.js +0 -34
- package/src/generators/application/lib/normalize-options.js.map +0 -1
- package/src/generators/application/schema.json +0 -66
- package/src/generators/init/init.d.ts +0 -6
- package/src/generators/init/init.js +0 -37
- package/src/generators/init/init.js.map +0 -1
- package/src/generators/init/schema.json +0 -21
- package/src/migrations/update-13-10-3/add-verbose-jest-config-13-10-3.d.ts +0 -5
- package/src/migrations/update-13-10-3/add-verbose-jest-config-13-10-3.js +0 -32
- package/src/migrations/update-13-10-3/add-verbose-jest-config-13-10-3.js.map +0 -1
- package/src/migrations/update-13-5-0/add-build-target-test-13-5-0.d.ts +0 -5
- package/src/migrations/update-13-5-0/add-build-target-test-13-5-0.js +0 -27
- package/src/migrations/update-13-5-0/add-build-target-test-13-5-0.js.map +0 -1
- package/src/migrations/update-13-8-2/remove-types-detox-13-8-2.d.ts +0 -2
- package/src/migrations/update-13-8-2/remove-types-detox-13-8-2.js +0 -25
- package/src/migrations/update-13-8-2/remove-types-detox-13-8-2.js.map +0 -1
- package/src/utils/versions.d.ts +0 -3
- package/src/utils/versions.js +0 -7
- package/src/utils/versions.js.map +0 -1
package/executors.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"executors": {
|
|
3
3
|
"build": {
|
|
4
|
-
"implementation": "
|
|
5
|
-
"schema": "
|
|
4
|
+
"implementation": "@nx/detox/src/executors/build/build.impl",
|
|
5
|
+
"schema": "@nx/detox/src/executors/build/schema.json",
|
|
6
6
|
"description": "Run the command defined in build property of the specified configuration."
|
|
7
7
|
},
|
|
8
8
|
"test": {
|
|
9
|
-
"implementation": "
|
|
10
|
-
"schema": "
|
|
9
|
+
"implementation": "@nx/detox/src/executors/test/test.impl",
|
|
10
|
+
"schema": "@nx/detox/src/executors/test/schema.json",
|
|
11
11
|
"description": "Initiating your detox test suite."
|
|
12
12
|
}
|
|
13
13
|
}
|
package/generators.json
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"extends": ["@nrwl/workspace"],
|
|
5
|
-
"schematics": {
|
|
6
|
-
"init": {
|
|
7
|
-
"factory": "./src/generators/init/init#detoxInitSchematic",
|
|
8
|
-
"schema": "./src/generators/init/schema.json",
|
|
9
|
-
"description": "Initialize the `@nrwl/detox` plugin.",
|
|
10
|
-
"hidden": true
|
|
11
|
-
},
|
|
12
|
-
"application": {
|
|
13
|
-
"factory": "./src/generators/application/application#detoxApplicationSchematic",
|
|
14
|
-
"schema": "./src/generators/application/schema.json",
|
|
15
|
-
"aliases": ["app"],
|
|
16
|
-
"x-type": "application",
|
|
17
|
-
"description": "Create a Detox application."
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"generators": {
|
|
21
|
-
"init": {
|
|
22
|
-
"factory": "./src/generators/init/init#detoxInitGenerator",
|
|
23
|
-
"schema": "./src/generators/init/schema.json",
|
|
24
|
-
"description": "Initialize the `@nrwl/detox` plugin.",
|
|
25
|
-
"hidden": true
|
|
26
|
-
},
|
|
27
|
-
"application": {
|
|
28
|
-
"factory": "./src/generators/application/application#detoxApplicationGenerator",
|
|
29
|
-
"schema": "./src/generators/application/schema.json",
|
|
30
|
-
"aliases": ["app"],
|
|
31
|
-
"x-type": "application",
|
|
32
|
-
"description": "Create a Detox application."
|
|
33
|
-
}
|
|
34
|
-
}
|
|
2
|
+
"extends": ["@nx/detox"],
|
|
3
|
+
"schematics": {}
|
|
35
4
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { detoxApplicationGenerator } from './src/generators/application/application';
|
|
1
|
+
export * from '@nx/detox';
|
package/index.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "detoxInitGenerator", { enumerable: true, get: function () { return init_1.detoxInitGenerator; } });
|
|
6
|
-
var application_1 = require("./src/generators/application/application");
|
|
7
|
-
Object.defineProperty(exports, "detoxApplicationGenerator", { enumerable: true, get: function () { return application_1.detoxApplicationGenerator; } });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("@nx/detox"), exports);
|
|
8
5
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/detox/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages-legacy/detox/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/detox",
|
|
3
|
-
"version": "16.0.0-beta.
|
|
3
|
+
"version": "16.0.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Detox contains executors and generators for allowing your workspace to use the powerful Detox integration testing capabilities.",
|
|
6
6
|
"keywords": [
|
|
@@ -18,31 +18,22 @@
|
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/nrwl/nx.git",
|
|
21
|
-
"directory": "packages/detox"
|
|
21
|
+
"directory": "packages-legacy/detox"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"author": "Victor Savkin",
|
|
25
25
|
"main": "./index",
|
|
26
26
|
"types": "index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@
|
|
29
|
-
"@nrwl/jest": "16.0.0-beta.0",
|
|
30
|
-
"@nrwl/js": "16.0.0-beta.0",
|
|
31
|
-
"@nrwl/linter": "16.0.0-beta.0",
|
|
32
|
-
"@nrwl/react": "16.0.0-beta.0",
|
|
33
|
-
"@nrwl/workspace": "16.0.0-beta.0"
|
|
34
|
-
},
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"detox": "~20.5.0"
|
|
28
|
+
"@nx/detox": "16.0.0-beta.1"
|
|
37
29
|
},
|
|
38
30
|
"builders": "./executors.json",
|
|
39
|
-
"ng-update": {
|
|
40
|
-
"requirements": {},
|
|
41
|
-
"migrations": "./migrations.json"
|
|
42
|
-
},
|
|
43
31
|
"schematics": "./generators.json",
|
|
44
32
|
"publishConfig": {
|
|
45
33
|
"access": "public"
|
|
46
34
|
},
|
|
47
|
-
"
|
|
35
|
+
"nx-migrations": {
|
|
36
|
+
"migrations": "@nx/detox/migrations.json"
|
|
37
|
+
},
|
|
38
|
+
"gitHead": "abf534c265f5aa3aac146e55bb31de598ea281d7"
|
|
48
39
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../.eslintrc",
|
|
3
|
-
"rules": {},
|
|
4
|
-
"ignorePatterns": ["!**/*"],
|
|
5
|
-
"overrides": [
|
|
6
|
-
{
|
|
7
|
-
"files": [
|
|
8
|
-
"./package.json",
|
|
9
|
-
"./generators.json",
|
|
10
|
-
"./executors.json",
|
|
11
|
-
"./migrations.json"
|
|
12
|
-
],
|
|
13
|
-
"parser": "jsonc-eslint-parser",
|
|
14
|
-
"rules": {
|
|
15
|
-
"@nrwl/nx/nx-plugin-checks": "error"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
package/README.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
|
|
2
|
-
|
|
3
|
-
<div style="text-align: center;">
|
|
4
|
-
|
|
5
|
-
[](https://circleci.com/gh/nrwl/nx)
|
|
6
|
-
[]()
|
|
7
|
-
[](https://www.npmjs.com/@nrwl/workspace)
|
|
8
|
-
[]()
|
|
9
|
-
[](http://commitizen.github.io/cz-cli/)
|
|
10
|
-
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
11
|
-
[](https://join.slack.com/t/nrwlcommunity/shared_invite/enQtNzU5MTE4OTQwOTk0LTgxY2E0ZWYzMWE0YzA5ZDA2MWM1NDVhNmI2ZWMyYmZhNWJiODk3MjkxZjY3MzU5ZjRmM2NmNWU1OTgyZmE4Mzc)
|
|
12
|
-
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<hr>
|
|
17
|
-
|
|
18
|
-
# Nx: Smart, Fast and Extensible Build System
|
|
19
|
-
|
|
20
|
-
Nx is a next generation build system with first class monorepo support and powerful integrations.
|
|
21
|
-
|
|
22
|
-
This package is a [Detox plugin for Nx](https://nx.dev/detox/overview).
|
|
23
|
-
|
|
24
|
-
## Getting Started
|
|
25
|
-
|
|
26
|
-
### Creating an Nx Workspace
|
|
27
|
-
|
|
28
|
-
**Using `npx`**
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npx create-nx-workspace
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**Using `npm init`**
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm init nx-workspace
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
**Using `yarn create`**
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
yarn create nx-workspace
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Adding Nx to an Existing Repository
|
|
47
|
-
|
|
48
|
-
Run:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npx nx@latest init
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Documentation & Resources
|
|
55
|
-
|
|
56
|
-
- [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
|
|
57
|
-
- [Intro to Nx](https://nx.dev/getting-started/intro)
|
|
58
|
-
- [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
|
|
59
|
-
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
60
|
-
|
|
61
|
-
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
62
|
-
width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
|
|
63
|
-
|
package/migrations.json
DELETED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schematics": {
|
|
3
|
-
"add-build-target-test-13-5-0": {
|
|
4
|
-
"version": "13.5.0-beta.0",
|
|
5
|
-
"cli": "nx",
|
|
6
|
-
"description": "add buildTarget to test-ios and test-android for detox app",
|
|
7
|
-
"factory": "./src/migrations/update-13-5-0/add-build-target-test-13-5-0"
|
|
8
|
-
},
|
|
9
|
-
"remove-types-detox-13-8-2": {
|
|
10
|
-
"version": "13.8.2-beta.0",
|
|
11
|
-
"cli": "nx",
|
|
12
|
-
"description": "remove deprecated @types/detox from package.json",
|
|
13
|
-
"factory": "./src/migrations/update-13-8-2/remove-types-detox-13-8-2"
|
|
14
|
-
},
|
|
15
|
-
"add-verbose-jest-config-13-10-3": {
|
|
16
|
-
"version": "13.10.3-beta.0",
|
|
17
|
-
"cli": "nx",
|
|
18
|
-
"description": "Update jest.config.json under detox project, add key verbsoe: true",
|
|
19
|
-
"factory": "./src/migrations/update-13-10-3/add-verbose-jest-config-13-10-3"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"packageJsonUpdates": {
|
|
23
|
-
"12.8.0": {
|
|
24
|
-
"version": "12.8.0-beta.0",
|
|
25
|
-
"packages": {
|
|
26
|
-
"detox": {
|
|
27
|
-
"version": "18.20.2",
|
|
28
|
-
"alwaysAddToPackageJson": false
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"12.10.0-beta.1": {
|
|
33
|
-
"version": "12.10.0-beta.1",
|
|
34
|
-
"packages": {
|
|
35
|
-
"detox": {
|
|
36
|
-
"version": "18.22.1",
|
|
37
|
-
"alwaysAddToPackageJson": false
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"13.0.0": {
|
|
42
|
-
"version": "13.0.0-beta.1",
|
|
43
|
-
"packages": {
|
|
44
|
-
"detox": {
|
|
45
|
-
"version": "18.22.2",
|
|
46
|
-
"alwaysAddToPackageJson": false
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"13.2.0": {
|
|
51
|
-
"version": "13.2.0-beta.0",
|
|
52
|
-
"packages": {
|
|
53
|
-
"detox": {
|
|
54
|
-
"version": "19.0.0",
|
|
55
|
-
"alwaysAddToPackageJson": false
|
|
56
|
-
},
|
|
57
|
-
"@testing-library/jest-dom": {
|
|
58
|
-
"version": "5.15.0",
|
|
59
|
-
"alwaysAddToPackageJson": false
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"13.5.0": {
|
|
64
|
-
"version": "13.5.0-beta.0",
|
|
65
|
-
"packages": {
|
|
66
|
-
"detox": {
|
|
67
|
-
"version": "19.4.1",
|
|
68
|
-
"alwaysAddToPackageJson": false
|
|
69
|
-
},
|
|
70
|
-
"@testing-library/jest-dom": {
|
|
71
|
-
"version": "5.16.1",
|
|
72
|
-
"alwaysAddToPackageJson": false
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"13.8.2": {
|
|
77
|
-
"version": "13.8.2-beta.0",
|
|
78
|
-
"packages": {
|
|
79
|
-
"detox": {
|
|
80
|
-
"version": "19.4.5",
|
|
81
|
-
"alwaysAddToPackageJson": false
|
|
82
|
-
},
|
|
83
|
-
"@testing-library/jest-dom": {
|
|
84
|
-
"version": "5.16.1",
|
|
85
|
-
"alwaysAddToPackageJson": false
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"13.8.6": {
|
|
90
|
-
"version": "13.8.6-beta.0",
|
|
91
|
-
"packages": {
|
|
92
|
-
"detox": {
|
|
93
|
-
"version": "19.5.1",
|
|
94
|
-
"alwaysAddToPackageJson": false
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"13.9.3": {
|
|
99
|
-
"version": "13.9.3-beta.0",
|
|
100
|
-
"packages": {
|
|
101
|
-
"detox": {
|
|
102
|
-
"version": "19.5.7",
|
|
103
|
-
"alwaysAddToPackageJson": false
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"13.10.3": {
|
|
108
|
-
"version": "13.10.3-beta.0",
|
|
109
|
-
"packages": {
|
|
110
|
-
"detox": {
|
|
111
|
-
"version": "19.6.5",
|
|
112
|
-
"alwaysAddToPackageJson": false
|
|
113
|
-
},
|
|
114
|
-
"@testing-library/jest-dom": {
|
|
115
|
-
"version": "5.16.4",
|
|
116
|
-
"alwaysAddToPackageJson": false
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"14.1.8": {
|
|
121
|
-
"version": "14.1.8-beta.0",
|
|
122
|
-
"packages": {
|
|
123
|
-
"detox": {
|
|
124
|
-
"version": "19.6.9",
|
|
125
|
-
"alwaysAddToPackageJson": false
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"14.2.1": {
|
|
130
|
-
"version": "14.2.1-beta.0",
|
|
131
|
-
"packages": {
|
|
132
|
-
"detox": {
|
|
133
|
-
"version": "19.7.1",
|
|
134
|
-
"alwaysAddToPackageJson": false
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"14.5.7": {
|
|
139
|
-
"version": "14.5.7-beta.0",
|
|
140
|
-
"packages": {
|
|
141
|
-
"detox": {
|
|
142
|
-
"version": "19.9.3",
|
|
143
|
-
"alwaysAddToPackageJson": false
|
|
144
|
-
},
|
|
145
|
-
"@testing-library/jest-dom": {
|
|
146
|
-
"version": "5.16.5",
|
|
147
|
-
"alwaysAddToPackageJson": false
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
"14.6.1": {
|
|
152
|
-
"version": "14.6.1-beta.0",
|
|
153
|
-
"packages": {
|
|
154
|
-
"detox": {
|
|
155
|
-
"version": "19.10.0",
|
|
156
|
-
"alwaysAddToPackageJson": false
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"14.7.4": {
|
|
161
|
-
"version": "14.7.4-beta.0",
|
|
162
|
-
"packages": {
|
|
163
|
-
"detox": {
|
|
164
|
-
"version": "19.12.1",
|
|
165
|
-
"alwaysAddToPackageJson": false
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
"15.0.0": {
|
|
170
|
-
"version": "15.0.0-beta.0",
|
|
171
|
-
"packages": {
|
|
172
|
-
"detox": {
|
|
173
|
-
"version": "19.12.5",
|
|
174
|
-
"alwaysAddToPackageJson": false
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
"15.2.2": {
|
|
179
|
-
"version": "15.2.2-beta.0",
|
|
180
|
-
"packages": {
|
|
181
|
-
"detox": {
|
|
182
|
-
"version": "20.0.3",
|
|
183
|
-
"alwaysAddToPackageJson": false
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"15.6.2": {
|
|
188
|
-
"version": "15.6.2-beta.0",
|
|
189
|
-
"packages": {
|
|
190
|
-
"detox": {
|
|
191
|
-
"version": "20.1.1",
|
|
192
|
-
"alwaysAddToPackageJson": false
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
"15.8.6": {
|
|
197
|
-
"version": "15.8.6-beta.0",
|
|
198
|
-
"packages": {
|
|
199
|
-
"detox": {
|
|
200
|
-
"version": "~20.5.0",
|
|
201
|
-
"alwaysAddToPackageJson": false
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
package/project.json
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "detox",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"sourceRoot": "packages/detox/src",
|
|
5
|
-
"projectType": "library",
|
|
6
|
-
"targets": {
|
|
7
|
-
"lint": {},
|
|
8
|
-
"test": {},
|
|
9
|
-
"build-base": {
|
|
10
|
-
"executor": "@nrwl/js:tsc",
|
|
11
|
-
"options": {
|
|
12
|
-
"assets": [
|
|
13
|
-
{
|
|
14
|
-
"input": "packages/detox",
|
|
15
|
-
"glob": "**/files/**",
|
|
16
|
-
"output": "/"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"input": "packages/detox",
|
|
20
|
-
"glob": "**/files/**/.gitkeep",
|
|
21
|
-
"output": "/"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"input": "packages/detox",
|
|
25
|
-
"glob": "**/files/**/.babelrc.template",
|
|
26
|
-
"output": "/"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"input": "packages/detox",
|
|
30
|
-
"glob": "**/files/**/.detoxrc.json.template",
|
|
31
|
-
"output": "/"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"input": "./packages/detox",
|
|
35
|
-
"glob": "**/*.json",
|
|
36
|
-
"ignore": ["**/tsconfig*.json"],
|
|
37
|
-
"output": "/"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"input": "",
|
|
41
|
-
"glob": "LICENSE",
|
|
42
|
-
"output": "/"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"build": {
|
|
48
|
-
"executor": "nx:run-commands",
|
|
49
|
-
"outputs": ["{workspaceRoot}/build/packages/detox"],
|
|
50
|
-
"options": {
|
|
51
|
-
"command": "node ./scripts/copy-readme.js detox"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ExecutorContext } from '@nrwl/devkit';
|
|
2
|
-
import { DetoxBuildOptions } from './schema';
|
|
3
|
-
export interface DetoxBuildOutput {
|
|
4
|
-
success: boolean;
|
|
5
|
-
}
|
|
6
|
-
export default function detoxBuildExecutor(options: DetoxBuildOptions, context: ExecutorContext): AsyncGenerator<DetoxBuildOutput>;
|
|
7
|
-
export declare function runCliBuild(workspaceRoot: string, projectRoot: string, options: DetoxBuildOptions): Promise<unknown>;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runCliBuild = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
const child_process_1 = require("child_process");
|
|
7
|
-
let childProcess;
|
|
8
|
-
function detoxBuildExecutor(options, context) {
|
|
9
|
-
return tslib_1.__asyncGenerator(this, arguments, function* detoxBuildExecutor_1() {
|
|
10
|
-
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
11
|
-
try {
|
|
12
|
-
yield tslib_1.__await(runCliBuild(context.root, projectRoot, options));
|
|
13
|
-
yield yield tslib_1.__await({ success: true });
|
|
14
|
-
}
|
|
15
|
-
finally {
|
|
16
|
-
if (childProcess) {
|
|
17
|
-
childProcess.kill();
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
exports.default = detoxBuildExecutor;
|
|
23
|
-
function runCliBuild(workspaceRoot, projectRoot, options) {
|
|
24
|
-
return new Promise((resolve, reject) => {
|
|
25
|
-
childProcess = (0, child_process_1.fork)((0, path_1.join)(workspaceRoot, './node_modules/detox/local-cli/cli.js'), ['build', ...createDetoxBuildOptions(options)], {
|
|
26
|
-
cwd: (0, path_1.join)(workspaceRoot, projectRoot),
|
|
27
|
-
});
|
|
28
|
-
// Ensure the child process is killed when the parent exits
|
|
29
|
-
process.on('exit', () => childProcess.kill());
|
|
30
|
-
process.on('SIGTERM', () => childProcess.kill());
|
|
31
|
-
childProcess.on('error', (err) => {
|
|
32
|
-
reject(err);
|
|
33
|
-
});
|
|
34
|
-
childProcess.on('exit', (code) => {
|
|
35
|
-
if (code === 0) {
|
|
36
|
-
resolve(code);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
reject(code);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
exports.runCliBuild = runCliBuild;
|
|
45
|
-
function createDetoxBuildOptions(options) {
|
|
46
|
-
return Object.keys(options).reduce((acc, k) => {
|
|
47
|
-
const v = options[k];
|
|
48
|
-
if (k === 'detoxConfiguration') {
|
|
49
|
-
acc.push('--configuration', v);
|
|
50
|
-
}
|
|
51
|
-
else if (k === 'configPath') {
|
|
52
|
-
acc.push('--config-path', v);
|
|
53
|
-
}
|
|
54
|
-
else
|
|
55
|
-
acc.push(`--${k}`, options[k]);
|
|
56
|
-
return acc;
|
|
57
|
-
}, []);
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=build.impl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.impl.js","sourceRoot":"","sources":["../../../../../../packages/detox/src/executors/build/build.impl.ts"],"names":[],"mappings":";;;;AACA,+BAA4B;AAC5B,iDAAmD;AAQnD,IAAI,YAA0B,CAAC;AAE/B,SAA+B,kBAAkB,CAC/C,OAA0B,EAC1B,OAAwB;;QAExB,MAAM,WAAW,GACf,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;QAEpE,IAAI;YACF,sBAAM,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA,CAAC;YAEtD,4BAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA,CAAC;SACzB;gBAAS;YACR,IAAI,YAAY,EAAE;gBAChB,YAAY,CAAC,IAAI,EAAE,CAAC;aACrB;SACF;IACH,CAAC;CAAA;AAhBD,qCAgBC;AAED,SAAgB,WAAW,CACzB,aAAqB,EACrB,WAAmB,EACnB,OAA0B;IAE1B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,YAAY,GAAG,IAAA,oBAAI,EACjB,IAAA,WAAI,EAAC,aAAa,EAAE,uCAAuC,CAAC,EAC5D,CAAC,OAAO,EAAE,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC,EAC9C;YACE,GAAG,EAAE,IAAA,WAAI,EAAC,aAAa,EAAE,WAAW,CAAC;SACtC,CACF,CAAC;QAEF,2DAA2D;QAC3D,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;QAC9C,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;QAEjD,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;YAC/B,MAAM,CAAC,GAAG,CAAC,CAAC;QACd,CAAC,CAAC,CAAC;QACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YAC/B,IAAI,IAAI,KAAK,CAAC,EAAE;gBACd,OAAO,CAAC,IAAI,CAAC,CAAC;aACf;iBAAM;gBACL,MAAM,CAAC,IAAI,CAAC,CAAC;aACd;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AA7BD,kCA6BC;AAED,SAAS,uBAAuB,CAAC,OAAO;IACtC,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;QAC5C,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QACrB,IAAI,CAAC,KAAK,oBAAoB,EAAE;YAC9B,GAAG,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC;SAChC;aAAM,IAAI,CAAC,KAAK,YAAY,EAAE;YAC7B,GAAG,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC;SAC9B;;YAAM,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QACtC,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
4
|
-
const build_impl_1 = require("./build.impl");
|
|
5
|
-
exports.default = (0, devkit_1.convertNxExecutor)(build_impl_1.default);
|
|
6
|
-
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../packages/detox/src/executors/build/compat.ts"],"names":[],"mappings":";;AAAA,yCAAiD;AAEjD,6CAA8C;AAE9C,kBAAe,IAAA,0BAAiB,EAAC,oBAAkB,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"outputCapture": "direct-nodejs",
|
|
4
|
-
"title": "Run detox build",
|
|
5
|
-
"description": "Run detox build options.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"cli": "nx",
|
|
8
|
-
"properties": {
|
|
9
|
-
"detoxConfiguration": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "Select a device configuration from your defined configurations, if not supplied, and there's only one configuration, detox will default to it.",
|
|
12
|
-
"alias": "C"
|
|
13
|
-
},
|
|
14
|
-
"configPath": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "Specify Detox config file path. If not supplied, detox searches for `.detoxrc[.js]` or `detox` section in `package.json`.",
|
|
17
|
-
"alias": "cp",
|
|
18
|
-
"x-completion-type": "file",
|
|
19
|
-
"x-completion-glob": ".detoxrc?(.js)"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"required": []
|
|
23
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
4
|
-
const test_impl_1 = require("./test.impl");
|
|
5
|
-
exports.default = (0, devkit_1.convertNxExecutor)(test_impl_1.default);
|
|
6
|
-
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../packages/detox/src/executors/test/compat.ts"],"names":[],"mappings":";;AAAA,yCAAiD;AAEjD,2CAA4C;AAE5C,kBAAe,IAAA,0BAAiB,EAAC,mBAAiB,CAAC,CAAC"}
|