playwright-ui5 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/browser/main.js +5588 -0
- package/dist/node/main.d.ts +4 -0
- package/dist/node/main.d.ts.map +1 -0
- package/dist/node/main.js +10 -0
- package/dist/node/main.js.map +1 -0
- package/package.json +49 -0
- package/src/node/main.ts +13 -0
- package/src/node/tsconfig.json +11 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/node/main.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEtC,QAAA,MAAM,cAAc,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAM5D,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const fs_1 = require("fs");
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
const selectorEngine = {
|
|
6
|
+
// https://github.com/microsoft/playwright/issues/16705
|
|
7
|
+
content: `(() => {${(0, fs_1.readFileSync)((0, path_1.join)(__dirname, '../browser/main.js'), 'utf8')};return module.exports.default})()`,
|
|
8
|
+
};
|
|
9
|
+
exports.default = selectorEngine;
|
|
10
|
+
//# sourceMappingURL=main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/node/main.ts"],"names":[],"mappings":";;AAAA,2BAAiC;AACjC,+BAA2B;AAG3B,MAAM,cAAc,GAA6C;IAC7D,uDAAuD;IACvD,OAAO,EAAE,WAAW,IAAA,iBAAY,EAC5B,IAAA,WAAI,EAAC,SAAS,EAAE,oBAAoB,CAAC,EACrC,MAAM,CACT,oCAAoC;CACxC,CAAA;AAED,kBAAe,cAAc,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "playwright-ui5",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"files": [
|
|
5
|
+
"dist",
|
|
6
|
+
"src/node"
|
|
7
|
+
],
|
|
8
|
+
"main": "dist/node/main.js",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "npm run build && tsc -p tests/tsconfig.json && playwright test",
|
|
11
|
+
"lint:check": "eslint . --ext .ts",
|
|
12
|
+
"lint:fix": "npm run lint:check -- --fix",
|
|
13
|
+
"format:check": "prettier --check .",
|
|
14
|
+
"format:fix": "prettier --write .",
|
|
15
|
+
"_esbuild": "tsc -p src/browser/tsconfig.json && esbuild src/browser/main.ts --bundle --define:global=window",
|
|
16
|
+
"build:browser": "npm run _esbuild -- --format=cjs --outdir=dist/browser",
|
|
17
|
+
"build:node": "tsc -p src/node/tsconfig.json",
|
|
18
|
+
"debug": "npm run _esbuild -- --format=esm --outdir=debug/dist/browser --servedir=debug",
|
|
19
|
+
"build": "rimraf ./dist && npm run build:browser && npm run build:node",
|
|
20
|
+
"check": "npm run test && npm run lint:check && npm run format:check",
|
|
21
|
+
"setup": "npm ci && playwright install-deps"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [],
|
|
24
|
+
"author": "detachhead",
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/DetachHead/playwright-ui5.git"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@detachhead/eslint-config": "^1.2.0",
|
|
32
|
+
"@playwright/test": "^1.33.0",
|
|
33
|
+
"@sapui5/ts-types": "^1.113.0",
|
|
34
|
+
"@trivago/prettier-plugin-sort-imports": "^3.3.0",
|
|
35
|
+
"@types/eslint": "^8.4.6",
|
|
36
|
+
"@types/node": "^18.16.1",
|
|
37
|
+
"@types/three": "^0.150.2",
|
|
38
|
+
"esbuild": "^0.15.5",
|
|
39
|
+
"prettier": "^2.4.1",
|
|
40
|
+
"rimraf": "^3.0.2",
|
|
41
|
+
"typescript": "^4.7.4"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"lodash": "^4.17.21",
|
|
45
|
+
"playwright": "^1.33.0",
|
|
46
|
+
"throw-expression": "^1.0.2",
|
|
47
|
+
"ts-is-present": "^1.2.2"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/src/node/main.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { readFileSync } from 'fs'
|
|
2
|
+
import { join } from 'path'
|
|
3
|
+
import { selectors } from 'playwright'
|
|
4
|
+
|
|
5
|
+
const selectorEngine: Parameters<typeof selectors.register>[1] = {
|
|
6
|
+
// https://github.com/microsoft/playwright/issues/16705
|
|
7
|
+
content: `(() => {${readFileSync(
|
|
8
|
+
join(__dirname, '../browser/main.js'),
|
|
9
|
+
'utf8',
|
|
10
|
+
)};return module.exports.default})()`,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default selectorEngine
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"allowJs": false,
|
|
5
|
+
"checkJs": false,
|
|
6
|
+
"noEmit": false,
|
|
7
|
+
"lib": ["es2021", "dom"], // https://github.com/microsoft/playwright/issues/16707,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": ["**/*.ts"]
|
|
11
|
+
}
|