playwright-vscode/package.json

185 строки
6.2 KiB
JSON

{
"name": "playwright",
"displayName": "Playwright Test for VSCode",
"description": "%description%",
"icon": "images/playwright-logo.png",
"version": "1.1.11",
"publisher": "ms-playwright",
"repository": "https://github.com/microsoft/playwright-vscode",
"bugs": {
"url": "https://github.com/microsoft/playwright/issues"
},
"engines": {
"vscode": "^1.86.0"
},
"categories": [
"Testing"
],
"activationEvents": [
"workspaceContains:**/*playwright*.config.{ts,js,mjs}"
],
"main": "./out/extension.js",
"l10n": "./l10n",
"contributes": {
"commands": [
{
"category": "Test",
"command": "pw.extension.install",
"title": "%contributes.command.pw.extension.install%"
},
{
"category": "Test",
"command": "pw.extension.installBrowsers",
"title": "%contributes.command.pw.extension.installBrowsers%"
},
{
"category": "Test",
"command": "pw.extension.command.inspect",
"title": "%contributes.command.pw.extension.command.inspect%"
},
{
"category": "Test",
"command": "pw.extension.command.closeBrowsers",
"title": "%contributes.command.pw.extension.command.closeBrowsers%"
},
{
"category": "Test",
"icon": "$(record)",
"command": "pw.extension.command.recordNew",
"title": "%contributes.command.pw.extension.command.recordNew%"
},
{
"category": "Test",
"icon": "$(record)",
"command": "pw.extension.command.recordAtCursor",
"title": "%contributes.command.pw.extension.command.recordAtCursor%"
},
{
"category": "Test",
"icon": "$(gear)",
"command": "pw.extension.command.toggleModels",
"title": "%contributes.command.pw.extension.command.toggleModels%"
},
{
"category": "Test",
"command": "pw.extension.toggle.reuseBrowser",
"title": "%contributes.command.pw.extension.toggle.reuseBrowser%"
},
{
"category": "Test",
"command": "pw.extension.toggle.showTrace",
"title": "%contributes.command.pw.extension.toggle.showTrace%"
},
{
"category": "Test",
"command": "pw.extension.toggle.runGlobalSetupOnEachRun",
"title": "%contributes.command.pw.extension.toggle.runGlobalSetupOnEachRun%"
},
{
"category": "Test",
"command": "pw.extension.command.runGlobalSetup",
"title": "%contributes.command.pw.extension.command.runGlobalSetup%"
},
{
"category": "Test",
"command": "pw.extension.command.runGlobalTeardown",
"title": "%contributes.command.pw.extension.command.runGlobalTeardown%"
},
{
"category": "Test",
"command": "pw.extension.command.startDevServer",
"title": "%contributes.command.pw.extension.command.startDevServer%"
},
{
"category": "Test",
"command": "pw.extension.command.stopDevServer",
"title": "%contributes.command.pw.extension.command.stopDevServer%"
},
{
"category": "Test",
"command": "pw.extension.command.clearCache",
"title": "%contributes.command.pw.extension.command.clearCache%"
}
],
"configuration": {
"title": "Playwright",
"properties": {
"playwright.env": {
"type": "object",
"default": {},
"description": "%configuration.playwright.env%"
},
"playwright.reuseBrowser": {
"type": "boolean",
"default": false,
"description": "%configuration.playwright.reuseBrowser%"
},
"playwright.showTrace": {
"type": "boolean",
"default": false,
"description": "%configuration.playwright.showTrace%"
},
"playwright.runGlobalSetupOnEachRun": {
"type": "boolean",
"default": false,
"description": "%configuration.playwright.runGlobalSetupOnEachRun%"
}
}
},
"views": {
"test": [
{
"type": "webview",
"id": "pw.extension.settingsView",
"name": "%views.test.pw.extension.settingsView%"
}
]
}
},
"scripts": {
"esbuild": "esbuild ./src/babelBundle.ts ./src/extension.ts ./src/oopReporter.ts ./src/debugTransform.ts ./src/playwrightFinder.ts --bundle --outdir=out --external:vscode --external:./babelBundle --external:./debugTransform --external:./oopReporter --external:./playwrightFinder --format=cjs --platform=node --target=ES2019",
"build": "npm run esbuild -- --minify",
"watch": "npm run esbuild -- --sourcemap --watch",
"l10n": "npx @vscode/l10n-dev export -o ./l10n ./src",
"lint": "tsc && eslint . --ext .ts,.tsx,.js",
"test": "playwright test",
"package": "npm run build && vsce package",
"code": "code --uninstall-extension ms-playwright.playwright && code --install-extension playwright-0.2.11.vsix",
"uncode": "code --uninstall-extension ms-playwright.playwright",
"code-insiders": "code-insiders --uninstall-extension ms-playwright.playwright && code-insiders --install-extension playwright-0.2.11.vsix",
"uncode-insiders": "code-insiders --uninstall-extension ms-playwright.playwright"
},
"devDependencies": {
"@babel/preset-typescript": "^7.23.2",
"@playwright/test": "1.49.0-alpha-2024-10-20",
"@types/babel__core": "^7.20.3",
"@types/babel__helper-plugin-utils": "^7.10.2",
"@types/babel__traverse": "^7.20.3",
"@types/glob": "^8.0.0",
"@types/node": "^18.11.9",
"@types/stack-utils": "^2.0.1",
"@types/vscode": "1.86.0",
"@types/which": "^3.0.3",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@vscode/l10n-dev": "^0.0.24",
"@vscode/vsce": "^3.0.0",
"esbuild": "^0.23.1",
"eslint": "^8.57.0",
"eslint-plugin-notice": "^0.9.10",
"eslint-plugin-react-hooks": "^4.6.0",
"glob": "^8.0.3",
"typescript": "^5.4.3"
},
"dependencies": {
"@babel/core": "^7.23.2",
"@babel/helper-plugin-utils": "^7.22.5",
"@babel/plugin-proposal-decorators": "^7.24.7",
"@babel/traverse": "^7.23.2",
"stack-utils": "^2.0.6",
"which": "^4.0.0",
"ws": "^8.17.1"
}
}