Browse Source

updates for 1.18

George Baugh 2 years ago
parent
commit
7ee03ff066
6 changed files with 26 additions and 5 deletions
  1. 1 0
      .nvmrc
  2. 1 1
      LICENSE
  3. 3 0
      conf/Changes
  4. 6 3
      dist.ini
  5. 14 0
      lib/Playwright.pm
  6. 1 1
      package.json

+ 1 - 0
.nvmrc

@@ -0,0 +1 @@
+node

+ 1 - 1
LICENSE

@@ -1,6 +1,6 @@
 MIT License
 
-Copyright (c) 2021 Troglodyne LLC
+Copyright (c) 2022 Troglodyne LLC
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal

+ 3 - 0
conf/Changes

@@ -1,5 +1,8 @@
 Revision history for Playwright
 
+0.018 2022-01-20 TEODESIAN
+    - Update for playwright v1.18
+
 0.017 2021-10-10 TEODESIAN
     - Adjust to handle _request() becoming request()
     - Document perl equivalents for playwright-test

+ 6 - 3
dist.ini

@@ -1,14 +1,17 @@
 name = Playwright
-version = 0.017
+version = 0.018
 author = George S. Baugh <george@troglodyne.net>
 license = MIT
 copyright_holder = Troglodyne LLC
-copyright_year = 2021
+copyright_year = 2022
 
 [Run::BeforeBuild]
+run = PATH="$NVM_BIN:$PATH"
+run = which npm
+run = which npx
 run = npm i
 run = npm i playwright@latest
-run = sudo npx playwright install-deps
+run = npx playwright install-deps
 run = ./generate_api_json.sh
 run = ./generate_perl_modules.pl
 run = PATH="$(pwd)/bin:$PATH" perl -Ilib example.pl

+ 14 - 0
lib/Playwright.pm

@@ -79,6 +79,20 @@ It should provide you with instructions which will get you working right away.
 However, depending on your node installation this may not work due to dependencies for node.js not being in the expected location.
 To fix this, you will need to update your NODE_PATH environment variable to point to the correct location.
 
+=head3 Node Versions
+
+playwright itself tends to need the latest version of node to work properly.
+It is recommended that you use nvm to get a hold of this:
+
+L<https://github.com/nvm-sh/nvm>
+
+If you cloned the playwright-perl repository, you can do the following to get things going:
+
+    wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
+    source ~/.bashrc
+    nvm install
+    nvm use
+
 =head2 Questions?
 
 Feel free to join the Playwright slack server, as there is a dedicated #playwright-perl channel which I, the module author, await your requests in.

+ 1 - 1
package.json

@@ -6,7 +6,7 @@
   "private": true,
   "dependencies": {
     "express": "^4.17",
-    "playwright": "^1.16.2",
+    "playwright": "^1.18.0",
     "uuid": "^8.3"
   }
 }