chore: peg to latest appium beta for test correctness
chore: add scripts to allow for the testing of run cli command against plugins
MODIFY
packages/appium-plugins/README.md
packages/appium-plugins/README.md
@@ -20,3 +20,19 @@ For information and documentation about each plugin hosted in this repo, head to
* [Base plugin](packages/base) - A plugin designed to facilitate the building of other plugins--not to be installed directly by end users
* [Images plugin](packages/images) - A plugin containing image-related functionality, such as the ability to compare images or to find screen regions based on image templates
* [Fake plugin](package/fake) - A minimal plugin that does nothing useful but demonstrates how plugins are built. Mostly used for testing.
+
+# Developer
+
+To run:
+
+```
+npm run clean
+```
+
+or
+
+```
+npm run bootstrap
+npm install
+npm run build
+```
\ No newline at end of file

MODIFY
packages/appium-plugins/package-lock.json
packages/appium-plugins/package-lock.json
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "^7.12.1",
- "appium": "^2.0.0-beta.9",
+ "appium": "^2.0.0-beta.11",
"chai": "4.x",
"chai-as-promised": "7.x",
"copyfiles": "^2.4.1",
}
},
"node_modules/appium": {
- "version": "2.0.0-beta.10",
- "resolved": "https://registry.npmjs.org/appium/-/appium-2.0.0-beta.10.tgz",
- "integrity": "sha512-+qmSn+Q4ZjmjVJ9v3VzpQxkQWVrSHvWClzHRrxLIGbQ3nGMc9zc7UN0uTmN2oyg9dUxplZx9DeCcH7S/ap/HqA==",
+ "version": "2.0.0-beta.11",
+ "resolved": "https://registry.npmjs.org/appium/-/appium-2.0.0-beta.11.tgz",
+ "integrity": "sha512-Nf/ELoxPsJp5ShyB6QGDZO/7mcYS9hnaBxqHMT6OvL3dbN8qQifLSopK1ql8PnwnZFYAV1KbSTxXcHHhT9xEnQ==",
"dev": true,
"hasInstallScript": true,
"dependencies": {
"@appium/base-plugin": "^1.0.0",
"@babel/runtime": "^7.6.0",
- "appium-base-driver": "^8.0.0-beta.2",
+ "appium-base-driver": "^8.0.0-beta.6",
"appium-support": "2.x",
"argparse": "^2.0.1",
"async-lock": "^1.0.0",
}
},
"appium": {
- "version": "2.0.0-beta.10",
- "resolved": "https://registry.npmjs.org/appium/-/appium-2.0.0-beta.10.tgz",
- "integrity": "sha512-+qmSn+Q4ZjmjVJ9v3VzpQxkQWVrSHvWClzHRrxLIGbQ3nGMc9zc7UN0uTmN2oyg9dUxplZx9DeCcH7S/ap/HqA==",
+ "version": "2.0.0-beta.11",
+ "resolved": "https://registry.npmjs.org/appium/-/appium-2.0.0-beta.11.tgz",
+ "integrity": "sha512-Nf/ELoxPsJp5ShyB6QGDZO/7mcYS9hnaBxqHMT6OvL3dbN8qQifLSopK1ql8PnwnZFYAV1KbSTxXcHHhT9xEnQ==",
"dev": true,
"requires": {
"@appium/base-plugin": "^1.0.0",
"@babel/runtime": "^7.6.0",
- "appium-base-driver": "^8.0.0-beta.2",
+ "appium-base-driver": "^8.0.0-beta.6",
"appium-support": "2.x",
"argparse": "^2.0.1",
"async-lock": "^1.0.0",

MODIFY
packages/appium-plugins/package.json
packages/appium-plugins/package.json
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "^7.12.1",
- "appium": "^2.0.0-beta.9",
+ "appium": "^2.0.0-beta.11",
"chai": "4.x",
"chai-as-promised": "7.x",
"copyfiles": "^2.4.1",

ADD
packages/appium-plugins/packages/fake/lib/logger.js
+import { logger } from 'appium-support';
+
+
+const log = logger.getLogger('FakePlugin');
+
+export default log;

ADD
packages/appium-plugins/packages/fake/lib/scripts/fake-error.js
+throw Error('Unsuccessfuly ran the script');
\ No newline at end of file

ADD
packages/appium-plugins/packages/fake/lib/scripts/fake-success.js
+import log from '../logger';
+
+log.info('Successfuly ran the script');
\ No newline at end of file

MODIFY
packages/appium-plugins/packages/fake/package.json
packages/appium-plugins/packages/fake/package.json
},
"appium": {
"pluginName": "fake",
- "mainClass": "FakePlugin"
+ "mainClass": "FakePlugin",
+ "scripts": {
+ "fake-error": "./build/lib/scripts/fake-error.js",
+ "fake-success": "./build/lib/scripts/fake-success.js"
+ }
},
"main": "./build/index.js",
"directories": {

chore: peg to latest appium beta for test correctness

chore: add scripts to allow for the testing of run cli command against plugins