From d596c53210dbf2c4b2da2f0d58b98d07fda35db5 Mon Sep 17 00:00:00 2001 From: asciito Date: Sat, 21 Oct 2023 00:53:23 -0600 Subject: [PATCH 1/3] feat: configure for distribute via packagist This also removes redundant dependencies --- box.json | 1 + composer.json | 15 +++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/box.json b/box.json index a852f2e..2aee16d 100644 --- a/box.json +++ b/box.json @@ -10,6 +10,7 @@ "composer.json" ], "exclude-composer-files": false, + "exclude-dev-files": false, "compression": "GZ", "compactors": [ "KevinGH\\Box\\Compactor\\Php", diff --git a/composer.json b/composer.json index a8c13f5..851101e 100644 --- a/composer.json +++ b/composer.json @@ -17,14 +17,12 @@ } ], "require": { - "php": "^8.1", - "guzzlehttp/guzzle": "^7.5", - "illuminate/http": "^10.0", - "illuminate/log": "^10.0", - "laravel-zero/framework": "^10.0.2", - "nunomaduro/termwind": "^1.15.1" + "php": "^8.1" }, "require-dev": { + "guzzlehttp/guzzle": "^7.5", + "laravel-zero/framework": "^10.0.2", + "nunomaduro/termwind": "^1.15.1", "laravel/pint": "^1.8", "mockery/mockery": "^1.5.1", "pestphp/pest": "^2.5", @@ -55,6 +53,7 @@ "minimum-stability": "stable", "prefer-stable": true, "bin": [ - "google-for-testing" - ] + "builds/google-for-testing" + ], + "version": "v0.3.0" } From 5c187779d9315e0160be98e0c7a9ca02099b17c7 Mon Sep 17 00:00:00 2001 From: asciito Date: Sat, 21 Oct 2023 00:54:50 -0600 Subject: [PATCH 2/3] fix: add ignore builds folder --- .gitignore | 2 ++ builds/.gitkeep | 0 2 files changed, 2 insertions(+) create mode 100644 builds/.gitkeep diff --git a/.gitignore b/.gitignore index 827219d..9810359 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ composer.lock /storage/logs/* !/storage/logs/.gitkeep +/builds/* +!/builds/.gitkeep diff --git a/builds/.gitkeep b/builds/.gitkeep new file mode 100644 index 0000000..e69de29 From c3bdb0ccad6bf9fddfe3a96074b62c67026c01e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ayax=20C=C3=B3rdova?= Date: Sat, 21 Oct 2023 02:01:34 -0600 Subject: [PATCH 3/3] docs: update README.md file --- README.md | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6480921..a847502 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,71 @@ with the correct Browser Version, is painful (I **HATE** manual tasks), I decide **I HATE MANUAL TASKS** +--- + ## Documentation -_Working_... +* [Commands](#commands) + * [Install Google Chrome Browser](#install-google-chrome-browser) + * [Install Google Chrome Driver](#install-google-chrome-driver) + +### Commands + +The two installation commands shares similar signatures, something like this: + +```bash +./google-for-testing install: [options] +``` + +There are three options available to change the way the command works. + +- **`--ver=[VER]`**: +This option by default is set to `115.0.5763.0` in both commands. + > **Note**: + For the `install:driver` command, the default version it's really important, this is the started version from where you can get + the `chromedriver` binary, before that version, we don't have access to it (for now). + +- **`--latest`**: +This option will download the latest version. + +- **`--path=[PATH]`**: +This will let you choose where to download it. + +> **Note**: +> The default location for every download is `$HOME/.google-for-testing` + +
+ +#### Install Google Chrome Browser + +The syntax for to install Google Chrome Browser is the next one: + +```bash +./google-for-testing install:browser [options] +``` + +Running this command without any option, will download the default version `115.0.5763.0`, but you can choose +any other version to download (if is available). + +You can check the available versions on this [API endpoint](https://googlechromelabs.github.io/chrome-for-testing/known-good-versions.json) 👈 + +
+ +#### Install Google Chrome Driver + +The syntax for to install Google Chrome Driver is the next one: + +```bash +./google-for-testing install:driver [options] +``` + +Running this command without any option, will download the default version `115.0.5763.0`, but you can choose +any other version to download (if is available). + +> **Note**: You can check the available versions on this [API endpoint](https://googlechromelabs.github.io/chrome-for-testing/known-good-versions.json) 👈, but keep in mind +> that for `chromedriver` the versions starts at `115.0.5763.0`, so any version below that we will not have access to the binary download link (for now). + +--- ## License