@nrwl/detox 13.8.5 → 13.8.6
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/README.md +53 -49
- package/migrations.json +9 -0
- package/package.json +7 -7
- package/src/generators/application/files/app/tsconfig.json +1 -1
- package/src/generators/application/lib/create-files.js +2 -1
- package/src/generators/application/lib/create-files.js.map +1 -1
- package/src/utils/versions.d.ts +1 -1
- package/src/utils/versions.js +2 -2
package/README.md
CHANGED
|
@@ -1,80 +1,84 @@
|
|
|
1
|
-
|
|
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
2
|
|
|
3
|
+
<div style="text-align: center;">
|
|
4
|
+
|
|
5
|
+
[](https://circleci.com/gh/nrwl/nx)
|
|
3
6
|
[]()
|
|
4
|
-
[](https://www.npmjs.com/@nrwl/workspace)
|
|
8
|
+
[]()
|
|
9
|
+
[](http://commitizen.github.io/cz-cli/)
|
|
5
10
|
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
6
11
|
[](https://join.slack.com/t/nrwlcommunity/shared_invite/enQtNzU5MTE4OTQwOTk0LTgxY2E0ZWYzMWE0YzA5ZDA2MWM1NDVhNmI2ZWMyYmZhNWJiODk3MjkxZjY3MzU5ZjRmM2NmNWU1OTgyZmE4Mzc)
|
|
7
12
|
|
|
8
13
|
</div>
|
|
9
14
|
|
|
10
|
-
## Table of Contents
|
|
11
|
-
|
|
12
|
-
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
13
|
-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
- [Install applesimutils (Mac only)](#install-applesimutils-mac-only)
|
|
17
|
-
- [Install Jest Globally](#install-jest-globally)
|
|
18
|
-
- [Commands](#commands)
|
|
19
|
-
- [Manually Add E2E Folder](#manually-add-e2e-folder)
|
|
20
|
-
- [Change Testing Simulator/Emulator](#change-testing-simulatoremulator)
|
|
21
|
-
- [Learn more](#learn-more)
|
|
16
|
+
<hr>
|
|
22
17
|
|
|
23
|
-
|
|
18
|
+
# Nx: Smart, Fast and Extensible Build System
|
|
24
19
|
|
|
25
|
-
|
|
20
|
+
Nx is a next generation build system with first class monorepo support and powerful integrations.
|
|
26
21
|
|
|
27
|
-
|
|
22
|
+
This package is a [Detox plugin for Nx](https://nx.dev/detox/overview).
|
|
28
23
|
|
|
29
|
-
|
|
24
|
+
## Getting Started
|
|
30
25
|
|
|
31
|
-
|
|
32
|
-
brew tap wix/brew
|
|
33
|
-
brew install applesimutils
|
|
34
|
-
```
|
|
26
|
+
### Creating an Nx Workspace
|
|
35
27
|
|
|
36
|
-
|
|
28
|
+
**Using `npx`**
|
|
37
29
|
|
|
38
|
-
```
|
|
39
|
-
|
|
30
|
+
```bash
|
|
31
|
+
npx create-nx-workspace
|
|
40
32
|
```
|
|
41
33
|
|
|
42
|
-
|
|
34
|
+
**Using `npm init`**
|
|
43
35
|
|
|
44
|
-
|
|
36
|
+
```bash
|
|
37
|
+
npm init nx-workspace
|
|
38
|
+
```
|
|
45
39
|
|
|
46
|
-
|
|
47
|
-
- `nx test-ios <app-name-e2e>`: run e2e tests on the built iOS app (Mac only)
|
|
48
|
-
- `nx build-ios <app-name-e2e> --prod` and `nx test-ios <app-name-e2e> --prod`: build and run release version of iOS app. Note: you might need open the xcode project under iOS and choose a team under "Sign & Capabilities".
|
|
49
|
-
- `nx build-android <app-name-e2e>`: build the android app
|
|
50
|
-
- `nx test-android <app-name-e2d>`: run e2e tests on the built android app
|
|
51
|
-
- `nx build-android <app-name-e2e> --prod` and `nx test-android <app-name-e2e> --prod`: build and run release version of android app.
|
|
40
|
+
**Using `yarn create`**
|
|
52
41
|
|
|
53
|
-
|
|
42
|
+
```bash
|
|
43
|
+
yarn create nx-workspace
|
|
44
|
+
```
|
|
54
45
|
|
|
55
|
-
|
|
46
|
+
The `create-nx-workspace` command will ask you to select a preset, which will configure some plugins and create your applications to help you get started.
|
|
56
47
|
|
|
57
|
-
|
|
48
|
+
```
|
|
49
|
+
? What to create in the new workspace (Use arrow keys)
|
|
50
|
+
❯ apps [an empty workspace with no plugins with a layout that works best for building apps]
|
|
51
|
+
core [an empty workspace with no plugins set up to publish npm packages (similar to yarn workspaces)]
|
|
52
|
+
ts [an empty workspace with the JS/TS plugin preinstalled]
|
|
53
|
+
react [a workspace with a single React application]
|
|
54
|
+
angular [a workspace with a single Angular application]
|
|
55
|
+
next.js [a workspace with a single Next.js application]
|
|
56
|
+
nest [a workspace with a single Nest application]
|
|
57
|
+
express [a workspace with a single Express application]
|
|
58
|
+
web components [a workspace with a single app built using web components]
|
|
59
|
+
react-native [a workspace with a single React Native application]
|
|
60
|
+
react-express [a workspace with a full stack application (React + Express)]
|
|
61
|
+
```
|
|
58
62
|
|
|
59
|
-
|
|
60
|
-
# Using npm
|
|
61
|
-
npm install --save-dev @nrwl/detox
|
|
63
|
+
Select the preset that works best for you
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
yarn add -D @nrwl/detox
|
|
65
|
-
```
|
|
65
|
+
### Adding Nx to an Existing Monorepo
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
- Follow instructions https://github.com/wix/Detox/blob/master/docs/Introduction.Android.md to manully change android files.
|
|
67
|
+
Run:
|
|
69
68
|
|
|
70
|
-
|
|
69
|
+
```bash
|
|
70
|
+
npx add-nx-to-monorepo@latest
|
|
71
|
+
```
|
|
71
72
|
|
|
72
|
-
|
|
73
|
+
## Documentation & Resources
|
|
73
74
|
|
|
74
|
-
|
|
75
|
+
A few links to help you get started:
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
- [Nx.Dev: Documentation, Guides, Interactive Tutorials](https://nx.dev)
|
|
78
|
+
- [Tutorial: Adding Nx to an Existing Monorepo](https://nx.dev/migration/adding-to-monorepo)
|
|
79
|
+
- [Official Nx YouTube Channel](https://www.youtube.com/c/Nrwl_io)
|
|
80
|
+
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
77
81
|
|
|
78
|
-
|
|
82
|
+
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
83
|
+
width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
|
|
79
84
|
|
|
80
|
-
Visit the [Nx Documentation](https://nx.dev) to learn more.
|
package/migrations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/detox",
|
|
3
|
-
"version": "13.8.
|
|
3
|
+
"version": "13.8.6",
|
|
4
4
|
"description": "Detox Plugin for Nx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Monorepo",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"types": "index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nrwl/devkit": "13.8.
|
|
28
|
-
"@nrwl/jest": "13.8.
|
|
29
|
-
"@nrwl/linter": "13.8.
|
|
30
|
-
"@nrwl/react": "13.8.
|
|
31
|
-
"@nrwl/workspace": "13.8.
|
|
27
|
+
"@nrwl/devkit": "13.8.6",
|
|
28
|
+
"@nrwl/jest": "13.8.6",
|
|
29
|
+
"@nrwl/linter": "13.8.6",
|
|
30
|
+
"@nrwl/react": "13.8.6",
|
|
31
|
+
"@nrwl/workspace": "13.8.6",
|
|
32
32
|
"chalk": "^4.1.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"detox": "^19.
|
|
35
|
+
"detox": "^19.5.1"
|
|
36
36
|
},
|
|
37
37
|
"builders": "./executors.json",
|
|
38
38
|
"ng-update": {
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createFiles = void 0;
|
|
4
4
|
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
+
const typescript_1 = require("@nrwl/workspace/src/utilities/typescript");
|
|
5
6
|
const path_1 = require("path");
|
|
6
7
|
function createFiles(host, options) {
|
|
7
|
-
(0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, '../files/app'), options.projectRoot, Object.assign(Object.assign({}, options), { offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.projectRoot) }));
|
|
8
|
+
(0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, '../files/app'), options.projectRoot, Object.assign(Object.assign({}, options), { offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.projectRoot), rootTsConfigPath: (0, typescript_1.getRelativePathToRootTsConfig)(host, options.projectRoot) }));
|
|
8
9
|
if (options.js) {
|
|
9
10
|
(0, devkit_1.toJS)(host);
|
|
10
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-files.js","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/application/lib/create-files.ts"],"names":[],"mappings":";;;AAAA,yCAAyE;AACzE,+BAA4B;AAG5B,SAAgB,WAAW,CAAC,IAAU,EAAE,OAAyB;IAC/D,IAAA,sBAAa,EAAC,IAAI,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,WAAW,kCACnE,OAAO,KACV,cAAc,EAAE,IAAA,uBAAc,EAAC,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"create-files.js","sourceRoot":"","sources":["../../../../../../../packages/detox/src/generators/application/lib/create-files.ts"],"names":[],"mappings":";;;AAAA,yCAAyE;AACzE,yEAAyF;AACzF,+BAA4B;AAG5B,SAAgB,WAAW,CAAC,IAAU,EAAE,OAAyB;IAC/D,IAAA,sBAAa,EAAC,IAAI,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,WAAW,kCACnE,OAAO,KACV,cAAc,EAAE,IAAA,uBAAc,EAAC,OAAO,CAAC,WAAW,CAAC,EACnD,gBAAgB,EAAE,IAAA,0CAA6B,EAAC,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,IAC1E,CAAC;IACH,IAAI,OAAO,CAAC,EAAE,EAAE;QACd,IAAA,aAAI,EAAC,IAAI,CAAC,CAAC;KACZ;AACH,CAAC;AATD,kCASC"}
|
package/src/utils/versions.d.ts
CHANGED
package/src/utils/versions.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.testingLibraryJestDom = exports.detoxVersion = exports.nxVersion = void 0;
|
|
4
|
-
exports.nxVersion = '13.8.
|
|
5
|
-
exports.detoxVersion = '19.
|
|
4
|
+
exports.nxVersion = '13.8.6';
|
|
5
|
+
exports.detoxVersion = '19.5.1';
|
|
6
6
|
exports.testingLibraryJestDom = '5.16.2';
|
|
7
7
|
//# sourceMappingURL=versions.js.map
|