chore: more work on monorepo arrangement
MODIFY
packages/appium-plugins/package.json
packages/appium-plugins/package.json
"name": "appium-plugins-monorepo",
"private": true,
"devDependencies": {
- "lerna": "^3.22.1"
- }
+ "appium-gulp-plugins": "^5.2.1",
+ "eslint": "^7.14.0",
+ "eslint-config-appium": "^4.5.0",
+ "lerna": "^3.22.1",
+ "chai": "4.x",
+ "chai-as-promised": "7.x",
+ "gulp": "^4.0.0",
+ "mocha": "^7.0.1",
+ "pre-commit": "1.x",
+ "sinon": "^9.0.0"
+ },
+ "scripts": {
+ "lint": "lerna run lint",
+ "precommit-msg": "echo 'Pre-commit checks...' && exit 0",
+ "precommit-test": "lerna run test"
+ },
+ "pre-commit": [
+ "precommit-msg",
+ "precommit-test"
+ ]
}

MODIFY
packages/appium-plugins/packages/base/package.json
packages/appium-plugins/packages/base/package.json
"license": "Apache-2.0",
"repository": {
"type": "git",
- "url": "https://github.com/appium/appium-base-plugin.git"
+ "url": "https://github.com/appium/appium-plugins.git"
},
"bugs": {
- "url": "https://github.com/appium/appium-base-plugin/issues"
+ "url": "https://github.com/appium/appium-plugins/issues"
},
"engines": {
"node": ">=10",
"e2e-test": "gulp e2e-test",
"watch": "gulp watch",
"build": "gulp transpile",
- "mocha": "mocha",
- "precommit-msg": "echo 'Pre-commit checks...' && exit 0",
- "precommit-test": "REPORTER=dot gulp once",
"lint": "gulp lint",
"lint:fix": "gulp lint --fix",
"coverage": "gulp coveralls"
- },
- "pre-commit": [
- "precommit-msg",
- "precommit-test"
- ],
- "devDependencies": {
- "appium-gulp-plugins": "^5.2.1",
- "chai": "4.x",
- "chai-as-promised": "7.x",
- "eslint-config-appium": "^4.0.1",
- "gulp": "^4.0.0",
- "mocha": "^7.0.1",
- "pre-commit": "1.x",
- "sinon": "^9.0.0"
}
}

MODIFY
packages/appium-plugins/packages/images/package.json
packages/appium-plugins/packages/images/package.json
"version": "1.0.0",
"description": "Plugin for working with images and image elements in Appium",
"main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
"repository": {
"type": "git",
"url": "git+https://github.com/appium/appium-plugins.git"
"bugs": {
"url": "https://github.com/appium/appium-plugins/issues"
},
- "homepage": "https://github.com/appium/appium-plugins#readme"
+ "homepage": "https://github.com/appium/appium-plugins#readme",
+ "dependencies": {
+ "@appium/base-plugin": "^1.5.0"
+ },
+ "scripts": {
+ "clean": "rm -rf node_modules && rm -f package-lock.json && npm install",
+ "prepare": "npm run build",
+ "test": "mocha test/unit/*-specs.js",
+ "e2e-test": "mocha test/e2e/*-specs.js",
+ "lint": "eslint **/*.js"
+ }
}

ADD
packages/appium-plugins/packages/images/test/unit/basic-specs.js
+describe('Stub', function () {
+ it('should do nothing', function () {
+ });
+});

chore: more work on monorepo arrangement