Compare commits

...
Author SHA1 Message Date
dpgraham 79d024e33d 1.10.1 2019-01-10 09:28:33 -08:00
Dan Graham daaabc8f2f Shrinkwrap fixes (#11969)
* Reinstall node modules before shrinkwrapping
* Add script to check shrinkwrap will be packaged
2019-01-10 09:26:18 -08:00
dpgraham b1a1bfcafb 1.10.0 2018-11-27 10:16:26 -08:00
dpgraham 905207ad37 Release 1.10.0-beta.6 2018-11-26 14:02:43 -08:00
dpgraham c1e2ae8a61 Update Espresso and XCUITest 2018-11-26 13:59:09 -08:00
dpgraham 4d595449fe Release 1.10.0-beta.5 2018-11-23 09:15:54 -08:00
dpgraham aaf061dab7 Update Appium Espresso Driver 2018-11-23 09:13:10 -08:00
dpgraham 2ee3b0ebbb Release 1.10.0-beta.4 2018-11-22 16:17:24 -08:00
dpgraham 9a8cc7d79e Update Espresso Driver 2018-11-22 16:14:19 -08:00
dpgraham b245ee1747 Release 1.10.0-beta.3 2018-11-22 14:20:04 -08:00
dpgraham be1ec61cfb Update appium-youiengine-driver 2018-11-22 14:17:10 -08:00
dpgraham 8786447b22 Release 1.10.0-beta.2 2018-11-22 14:13:00 -08:00
dpgraham 67c73b9f1e Remove shrinkwrap dependencies 2018-11-22 14:09:52 -08:00
dpgraham 55b009b986 Release 1.10.0-beta.1 2018-11-22 14:07:35 -08:00
dpgraham 6799c85326 Update dependencies 2018-11-22 14:04:09 -08:00
Dan Graham 7d9abd315e NPM script to shrinkwrap prod deps (#11718) 2018-11-22 14:02:42 -08:00
Jonathan Lipps 7f1df6da7d only allow cors when using a special flag (#11719)
* only allow cors when using a special flag

* add docs about --allow-cors flag
2018-11-22 13:25:03 -08:00
dpgraham f0b288c56c Release 1.10.0-beta.0 2018-11-21 14:45:59 -08:00
dpgraham 6388afc526 Shrinkwrap 2018-11-21 14:45:46 -08:00
7 changed files with 4182 additions and 9 deletions
+21
View File
@@ -0,0 +1,21 @@
const childProcess = require('child_process');
const _ = require('lodash');
const res = JSON.parse(childProcess.execSync('npm pack --dry-run --json --ignore-scripts', {encoding: 'utf8'}))[0];
// List of files we are testing to make sure they are included in package
const testFiles = [
'npm-shrinkwrap.json', // Check that npm-shrinkwrap.json is being packed
'LICENSE', // Check that license is included
'build/lib/appium.js', // Sanity check that build files are being included by testing just one file
];
// Get list of files in `testFiles` that aren't in the list of packaged fileNames
const missingFiles = _.without(testFiles, ..._.map(res.files, 'path'));
if (!_.isEmpty(missingFiles)) {
throw new Error(`Files [${missingFiles.join(', ')}] are not included in package.json "files". ` +
`Please make sure these files are included before publishing.`);
}
process.exit(0);
@@ -180,8 +180,7 @@ converted into the `npm-shrinkwrap.json` file.
1. Determine whether we have a `patch` (bugfix), `minor` (feature), or `major` (breaking) release according to the principles of SemVer.
1. Update `package.json` with the appropriate new version.
1. Update the CHANGELOG/README with appropriate changes and submit for review as a PR, along with shrinkwrap and `package.json` changes. Wait for it to be merged, then pull it into the release branch.
1. `rm -rf node_modules && npm install --production` to get just the production dependencies.
1. `npm shrinkwrap` to write the new NPM shrinkwrap JSON file, and commit this file.
1. Run `npm run shrinkwrap:prod`. This script removes `node_modules`, installs node production dependencies, creates `npm-shrinkwrap.json` (which only shrinkwrap prod dependencies) and then re-installs the dev dependencies by doing `npm install --no-shrinkwrap`.
1. Create a tag of the form `v<version>` on the release branch (usually a minor branch like `1.5` or `1.4`), with: `git tag -a v<version>`, e.g., `git tag -a v1.5.0`. This is not necessary for beta versions.
1. Push the tag to upstream: `git push --tags <remote> <branch>`
1. Install dev dependencies (or at least `gulp` and `appium-gulp-plugins`), and undo the changes to the NPM shrinkwrap JSON file (e.g., `git checkout -- npm-shrinkwrap.json`).
@@ -14,6 +14,7 @@ All flags are optional, but some are required in conjunction with certain others
|Flag|Default|Description|Example|
|----|-------|-----------|-------|
|`--shell`|null|Enter REPL mode||
|`--allow-cors`|false|Turn on CORS compatibility mode, which will allow connections to the Appium server from within websites hosted on any domain. Be careful when enabling this feature, since there is a potential security risk if you visit a website that uses a cross-domain request to initiate or introspect sessions on your running Appium server.||
|`--ipa`|null|(IOS-only) abs path to compiled .ipa file|`--ipa /abs/path/to/my.ipa`|
|`-a`, `--address`|0.0.0.0|IP Address to listen on|`--address 0.0.0.0`|
|`-p`, `--port`|4723|port to listen on|`--port 4723`|
+6 -1
View File
@@ -122,7 +122,12 @@ async function main (args = null) {
await logStartupInfo(parser, args);
let appiumDriver = new AppiumDriver(args);
let router = routeConfiguringFunction(appiumDriver);
let server = await baseServer(router, args.port, args.address);
let server = await baseServer(router, args.port, args.address, args.allowCors);
if (args.allowCors) {
logger.warn('You have enabled CORS requests from any host. Be careful not ' +
'to visit sites which could maliciously try to start Appium ' +
'sessions on your machine');
}
appiumDriver.server = server;
try {
// TODO prelaunch if args.launch is set
+9
View File
@@ -13,6 +13,15 @@ const args = [
dest: 'shell',
}],
[['--allow-cors'], {
required: false,
defaultValue: false,
action: 'storeTrue',
help: 'Whether the Appium server should allow web browser connections from any host',
nargs: 0,
dest: 'allowCors',
}],
[['--reboot'], {
defaultValue: false,
dest: 'reboot',
+4137
View File
File diff suppressed because it is too large Load Diff
+7 -6
View File
@@ -11,7 +11,7 @@
"firefoxos",
"testing"
],
"version": "1.9.2-beta.2",
"version": "1.10.1",
"author": "https://github.com/appium",
"license": "Apache-2.0",
"repository": {
@@ -36,13 +36,14 @@
"files": [
"bin",
"lib",
"build/lib"
"build/lib",
"npm-shrinkwrap.json"
],
"dependencies": {
"@babel/runtime": "^7.0.0",
"appium-android-driver": "^4.0.0",
"appium-base-driver": "3.x",
"appium-espresso-driver": "^1.0.0",
"appium-espresso-driver": "^1.3.0",
"appium-fake-driver": "^0.x",
"appium-ios-driver": "2.x",
"appium-mac-driver": "1.x",
@@ -51,8 +52,8 @@
"appium-tizen-driver": "1.1.1-beta.2",
"appium-uiautomator2-driver": "1.x",
"appium-windows-driver": "1.x",
"appium-xcuitest-driver": "2.x",
"appium-youiengine-driver": "1.x",
"appium-xcuitest-driver": "^2.104.0",
"appium-youiengine-driver": "^1.1.1",
"argparse": "^1.0.10",
"async-lock": "^1.0.0",
"asyncbox": "2.x",
@@ -84,7 +85,7 @@
"coverage": "gulp coveralls",
"generate-docs": "node ./build/commands-yml/parse.js",
"clean": "rm -rf node_modules && rm -rf package-lock.json && npm install",
"clean:prod": "rm -rf node_modules && rm -rf package-lock.json && npm install --production",
"shrinkwrap:prod": "rimraf package-lock.json && rimraf node_modules && npm install --production && npm shrinkwrap && node ./check-npm-pack-files && npm install --no-shrinkwrap",
"zip": "zip -qr appium.zip .",
"upload": "node ./build/test/scripts/bintray-upload.js",
"zip-and-upload": "npm run zip && npm run upload",