Skip to content

Commit

Permalink
chore(testing): add legacy-playwright so plugin can be installed
Browse files Browse the repository at this point in the history
  • Loading branch information
barbados-clemens committed Jul 5, 2023
1 parent 75def0c commit 51ac6b1
Show file tree
Hide file tree
Showing 7 changed files with 146 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages-legacy/playwright/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
},
{
"files": ["./package.json", "./executors.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/nx-plugin-checks": "error"
}
}
]
}
11 changes: 11 additions & 0 deletions packages-legacy/playwright/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>

{{links}}

<hr>

# Nx: Smart, Fast and Extensible Build System

Nx is a next generation build system with first class monorepo support and powerful integrations.

{{content}}
16 changes: 16 additions & 0 deletions packages-legacy/playwright/executors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"builders": {
"playwright": {
"implementation": "@nx/playwright/src/executors/playwright/compat",
"schema": "@nx/playwright/src/executors/playwright/schema.json",
"description": "Run Playwright tests."
}
},
"executors": {
"playwright": {
"implementation": "@nx/playwright/src/executors/playwright/playwright",
"schema": "@nx/playwright/src/executors/playwright/schema.json",
"description": "Run Playwright tests."
}
}
}
1 change: 1 addition & 0 deletions packages-legacy/playwright/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@nx/playwright';
35 changes: 35 additions & 0 deletions packages-legacy/playwright/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "@nrwl/playwright",
"version": "0.0.1",
"type": "commonjs",
"homepage": "https://nx.dev",
"private": true,
"description": "The Nx Plugin for Playwright contains executors and generators allowing your workspace to use the powerful Playwright integration testing capabilities.",
"keywords": [
"Monorepo",
"Angular",
"React",
"Web",
"Node",
"Nest",
"Jest",
"Playwright",
"CLI"
],
"main": "./index",
"typings": "./index.d.ts",
"author": "Victor Savkin",
"license": "MIT",
"bugs": {
"url": "https://github.com/nrwl/nx/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/nrwl/nx.git",
"directory": "packages/playwright"
},
"dependencies": {
"@nx/playwright": "file:../../packages/playwright"
},
"executors": "./executors.json"
}
42 changes: 42 additions & 0 deletions packages-legacy/playwright/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "playwright-legacy",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/playwright/src",
"projectType": "library",
"targets": {
"build": {
"command": "node ./scripts/copy-readme.js playwright-legacy"
},
"build-base": {
"executor": "@nx/js:tsc",
"dependsOn": ["^build-base"],
"options": {
"main": "packages-legacy/playwright/index.ts",
"tsConfig": "packages-legacy/playwright/tsconfig.json",
"outputPath": "build/packages/playwright-legacy",
"updateBuildableProjectDepsInPackageJson": false,
"assets": [
{
"input": "packages-legacy/playwright",
"glob": "**/*.json",
"ignore": ["**/tsconfig*.json", "project.json"],
"output": "/"
},
{
"input": "packages-legacy/playwright",
"glob": "**/*.d.ts",
"output": "/"
},
{
"input": "",
"glob": "LICENSE",
"output": "/"
}
]
}
},
"lint": {},
"test": {}
},
"tags": []
}
16 changes: 16 additions & 0 deletions packages-legacy/playwright/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs"
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

0 comments on commit 51ac6b1

Please sign in to comment.