-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
123 lines (123 loc) · 6.47 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"name": "e2ed",
"version": "0.18.9",
"description": "E2E testing framework over TestCafe",
"keywords": [
"E2E",
"TestCafe",
"testing"
],
"author": "uid11",
"license": "MIT",
"bin": {
"e2ed": "bin/runE2edInLocalEnvironment.js",
"e2ed-init": "bin/init.js"
},
"bugs": "https://github.com/joomcode/e2ed/issues",
"engines": {
"node": ">=16.11.1"
},
"packageManager": "npm@10",
"homepage": "https://github.com/joomcode/e2ed#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/joomcode/e2ed.git"
},
"dependencies": {
"@playwright/test": "1.46.1",
"create-locator": "0.0.23",
"get-modules-graph": "0.0.9",
"globby": "11.1.0"
},
"devDependencies": {
"@playwright/browser-chromium": "1.46.1",
"@types/node": "22.4.1",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"assert-modules-support-case-insensitive-fs": "1.0.1",
"assert-package-lock-is-consistent": "1.0.0",
"eslint": "8.57.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-simple-import-sort": "12.1.1",
"eslint-plugin-typescript-sort-keys": "3.2.0",
"husky": "9.1.4",
"prettier": "3.3.3",
"typescript": "5.5.4"
},
"peerDependencies": {
"@types/node": ">=16.11.1",
"typescript": ">=4.8"
},
"exports": {
".": "./index.js",
"./actions": "./actions/index.js",
"./configurator": "./configurator/index.js",
"./constants": "./constants/index.js",
"./context": "./context/index.js",
"./createLocator": "./createLocator.js",
"./generators": "./generators/index.js",
"./getModulesGraph": "./getModulesGraph.js",
"./globby": "./globby.js",
"./selectors": "./selectors/index.js",
"./types": "./types/index.js",
"./utils": "./utils/index.js"
},
"scripts": {
"asserts": "assert-modules-support-case-insensitive-fs ./autotests ./src && assert-package-lock-is-consistent",
"precheck:all": "npm run asserts && npm run clear:lint:cache && npm run build",
"check:all": "npm audit && npm run parallel check:branch lint test",
"check:branch": "node ./build/checkBranch.js",
"clear:lint:cache": "rm -f ./build/tsconfig.tsbuildinfo ./node_modules/.cache/lint-*",
"lint": "npm run parallel lint:es lint:prettier lint:types",
"lint:es": "eslint --cache --cache-location=./node_modules/.cache/lint-es --cache-strategy=content --ext=.ts --max-warnings=0 --report-unused-disable-directives .",
"lint:prettier": "prettier --cache --cache-location=./node_modules/.cache/lint-prettier --cache-strategy=content --check --ignore-path=.gitignore . !autotests/fixtures/fullMocks !docs/index.html",
"lint:types": "npm run parallel lint:types:base lint:types:build",
"lint:types:base": "tsc --noEmit",
"lint:types:build": "if [ -f ./build/tsconfig.json ]; then tsc --noEmit --project ./build; else echo 'No build directory'; fi",
"make:executable": "./bin/makeExecutable.sh",
"parallel": "./bin/runParallel.sh",
"test": "npm run parallel test:docker test:local",
"build:clear": "rm -rf ./build",
"prebuild": "npm run build:clear",
"build": "tsc; echo 'Compilation completed'",
"postbuild": "npm run build:rename && npm run build:remove && npm run build:copy && npm run build:init",
"prebuild:rename": "mkdir --parents ./build/node_modules",
"build:rename": "mv ./build/src ./build/node_modules/e2ed",
"build:remove": "npm run build:remove:empty-d-ts && npm run build:remove:types-js",
"build:remove:empty-d-ts": "find ./build/node_modules/e2ed/ -name *.d.ts -size 11c -exec rm {} \\;",
"build:remove:types-js": "find ./build/node_modules/e2ed/types/ -name *.js -exec rm {} \\;",
"postbuild:remove": "touch ./build/node_modules/e2ed/types/index.js",
"build:copy": "npm run build:copy:bin && npm run build:copy:scripts && npm run build:copy:meta && npm run build:copy:example && npm run build:copy:tsconfig",
"build:copy:bin": "cp ./bin/dockerEntrypoint.sh ./build/node_modules/e2ed/bin",
"postbuild:copy:bin": "npm run make:executable build/node_modules/e2ed/bin/init.js build/node_modules/e2ed/bin/runE2edInLocalEnvironment.js build/node_modules/e2ed/bin/runE2edInDockerEnvironment.js",
"build:copy:scripts": "cp ./build/scripts/*.js ./build",
"build:copy:meta": "cp -R ./LICENSE ./logo.svg ./README.md ./styles ./build/node_modules/e2ed",
"postbuild:copy:meta": "node ./build/writePrunedPackageJson.js",
"prebuild:copy:example": "rm -r ./build/autotests",
"build:copy:example": "cp -R ./autotests ./build/node_modules/e2ed/",
"postbuild:copy:example": "(cd ./build/node_modules/e2ed/autotests && rm -r ./node_modules ./tests/internalTypeTests && mv ./.gitignore ./gitignore && mv ./packs/local.example.ts ./packs/local.ts)",
"build:copy:tsconfig": "cp ./tsconfig.json ./build",
"build:init": "(cd ./build && ./node_modules/e2ed/bin/init.js)",
"postbuild:init": "cp ./src/package.json ./build && cp -R ./autotests/tests/internalTypeTests ./build/autotests/tests",
"preversion": "npm run check:all",
"version": "npm run update:changelog && npm run update:github:pages",
"update:changelog": "node ./build/updateChangelog.js",
"postupdate:changelog": "prettier --write ./CHANGELOG.md && git add ./CHANGELOG.md",
"update:github:pages": "cp ./build/docker/autotests/reports/report.html ./docs/index.html && git add ./docs/index.html",
"postversion": "git push --follow-tags && npm run release",
"prerelease": "npm run build",
"release": "npm publish ./build/node_modules/e2ed",
"postrelease": "if [ -f ./local/postrelease.sh ]; then ./local/postrelease.sh; else echo 'No postrelease hook'; fi",
"build:docker": "./bin/buildDocker.sh",
"pretest:docker": "npm run build:docker && npm run test:docker:copy",
"pretest:docker:copy": "rm -rf ./build/docker && mkdir --parents ./build/docker/node_modules/e2ed",
"test:docker:copy": "cp -R ./build/autotests ./build/docker/autotests && cp ./build/tsconfig.json ./build/docker",
"posttest:docker:copy": "rm -rf ./build/docker/autotests/reports && ./bin/addPackageJsonToBuildDocker.sh",
"test:docker": "(cd ./build/docker && E2ED_ORIGIN=https://google.com ./autotests/bin/runDocker.sh ./autotests/packs/allTests.ts)",
"test:local": "(cd ./build && E2ED_ORIGIN=https://google.com ./node_modules/e2ed/bin/runE2edInLocalEnvironment.js ./autotests/packs/allTests.ts)"
},
"sideEffects": false,
"types": "index.d.ts"
}