@nrwl/detox 13.8.4 → 13.8.7

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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2017-2022 Narwhal Technologies Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,80 +1,84 @@
1
- # Detox Plugin for Nx
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
+ [![CircleCI](https://circleci.com/gh/nrwl/nx.svg?style=svg)](https://circleci.com/gh/nrwl/nx)
3
6
  [![License](https://img.shields.io/npm/l/@nrwl/workspace.svg?style=flat-square)]()
4
- [![NPM Version](https://badge.fury.io/js/%40nrwl%2Fdetox.svg)](https://www.npmjs.com/@nrwl/detox)
7
+ [![NPM Version](https://badge.fury.io/js/%40nrwl%2Fworkspace.svg)](https://www.npmjs.com/@nrwl/workspace)
8
+ [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)]()
9
+ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
5
10
  [![Join the chat at https://gitter.im/nrwl-nx/community](https://badges.gitter.im/nrwl-nx/community.svg)](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
11
  [![Join us @nrwl/community on slack](https://img.shields.io/badge/slack-%40nrwl%2Fcommunity-brightgreen)](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
- - [Setup](#setup)
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
- <!-- END doctoc generated TOC please keep comment here to allow auto update -->
18
+ # Nx: Smart, Fast and Extensible Build System
24
19
 
25
- ## Setup
20
+ Nx is a next generation build system with first class monorepo support and powerful integrations.
26
21
 
27
- #### Install applesimutils (Mac only)
22
+ This package is a [Detox plugin for Nx](https://nx.dev/detox/overview).
28
23
 
29
- [applesimutils](https://github.com/wix/AppleSimulatorUtils) is a collection of utils for Apple simulators.
24
+ ## Getting Started
30
25
 
31
- ```sh
32
- brew tap wix/brew
33
- brew install applesimutils
34
- ```
26
+ ### Creating an Nx Workspace
35
27
 
36
- #### Install Jest Globally
28
+ **Using `npx`**
37
29
 
38
- ```sh
39
- npm install -g jest
30
+ ```bash
31
+ npx create-nx-workspace
40
32
  ```
41
33
 
42
- ### Commands
34
+ **Using `npm init`**
43
35
 
44
- Note: For e2e tests to work, the app must be running (`nx start <app-name>`). A built app must exist before run test commands.
36
+ ```bash
37
+ npm init nx-workspace
38
+ ```
45
39
 
46
- - `nx build-ios <app-name-e2e>`: build the iOS app (Mac only)
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
- ### Manually Add E2E Folder
42
+ ```bash
43
+ yarn create nx-workspace
44
+ ```
54
45
 
55
- A `<app-name-e2e>` folder is automatically generated when you create a react native app. However, if you want to add e2e folder manually, you need to:
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
- - Install @nrwl/detox
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
- ```sh
60
- # Using npm
61
- npm install --save-dev @nrwl/detox
63
+ Select the preset that works best for you
62
64
 
63
- # Using yarn
64
- yarn add -D @nrwl/detox
65
- ```
65
+ ### Adding Nx to an Existing Monorepo
66
66
 
67
- - Run `nx generate @nrwl/detox:app <app-name-e2e>`
68
- - Follow instructions https://github.com/wix/Detox/blob/master/docs/Introduction.Android.md to manully change android files.
67
+ Run:
69
68
 
70
- ### Change Testing Simulator/Emulator
69
+ ```bash
70
+ npx add-nx-to-monorepo@latest
71
+ ```
71
72
 
72
- For iOS, in terminal, run `xcrun simctl list` to view a list of simulators on your Mac. To open your active simulator, `run open -a simulator`. In `<app-name-e2e>/.detoxrc.json`, you could change the simulator under `devices.simulator.device`.
73
+ ## Documentation & Resources
73
74
 
74
- For Android: in terminal, run `emulator -list-avds` to view a list of emulators installed. To open your emulator, run `emulator -avd <your emulator name>`. In `<app-name-e2e>/.detoxrc.json`, you could change the simulator under `devices.emulator.device`.
75
+ A few links to help you get started:
75
76
 
76
- To override the device name specified in a configuration, you could use `--device-name` option: `nx test-ios <app-name-e2e> --device-name "iPhone 11"`.
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
- ## Learn more
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
@@ -87,6 +87,15 @@
87
87
  "alwaysAddToPackageJson": false
88
88
  }
89
89
  }
90
+ },
91
+ "13.8.6": {
92
+ "version": "13.8.6-beta.0",
93
+ "packages": {
94
+ "detox": {
95
+ "version": "19.5.1",
96
+ "alwaysAddToPackageJson": false
97
+ }
98
+ }
90
99
  }
91
100
  }
92
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/detox",
3
- "version": "13.8.4",
3
+ "version": "13.8.7",
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.4",
28
- "@nrwl/jest": "13.8.4",
29
- "@nrwl/linter": "13.8.4",
30
- "@nrwl/react": "13.8.4",
31
- "@nrwl/workspace": "13.8.4",
27
+ "@nrwl/devkit": "13.8.7",
28
+ "@nrwl/jest": "13.8.7",
29
+ "@nrwl/linter": "13.8.7",
30
+ "@nrwl/react": "13.8.7",
31
+ "@nrwl/workspace": "13.8.7",
32
32
  "chalk": "^4.1.0"
33
33
  },
34
34
  "peerDependencies": {
35
- "detox": "^19.4.5"
35
+ "detox": "^19.5.1"
36
36
  },
37
37
  "builders": "./executors.json",
38
38
  "ng-update": {
package/project.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "ignore": ["**/tsconfig*.json"],
59
59
  "output": "/"
60
60
  },
61
- "LICENSE"
61
+ { "input": "", "glob": "LICENSE", "output": "/" }
62
62
  ]
63
63
  },
64
64
  "outputs": ["{options.outputPath}"]
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "<%= offsetFromRoot %>tsconfig.base.json",
2
+ "extends": "<%= rootTsConfigPath %>",
3
3
  "files": [],
4
4
  "include": [],
5
5
  "references": [
@@ -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,IACnD,CAAC;IACH,IAAI,OAAO,CAAC,EAAE,EAAE;QACd,IAAA,aAAI,EAAC,IAAI,CAAC,CAAC;KACZ;AACH,CAAC;AARD,kCAQC"}
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"}
@@ -1,3 +1,3 @@
1
1
  export declare const nxVersion = "*";
2
- export declare const detoxVersion = "19.4.5";
2
+ export declare const detoxVersion = "19.5.1";
3
3
  export declare const testingLibraryJestDom = "5.16.2";
@@ -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.4';
5
- exports.detoxVersion = '19.4.5';
4
+ exports.nxVersion = '13.8.7';
5
+ exports.detoxVersion = '19.5.1';
6
6
  exports.testingLibraryJestDom = '5.16.2';
7
7
  //# sourceMappingURL=versions.js.map