Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(packages): copy readme from root folder into packages/playwright (#552)

Joel Einbinder4573cd3fec09
diff --git a/package.json b/package.json
index 072b1a5cfd..0d514d445c 100644
--- a/package.json
+++ b/package.json
@@ -29,7 +29,7 @@
"build": "node utils/runWebpack.js --mode='development' && tsc -p .",
"watch": "node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .",
"apply-next-version": "node utils/apply_next_version.js",
- "version": "node utils/sync_package_versions.js"
+ "version": "node utils/sync_package_versions.js && npm run doc"
},
"author": {
"name": "Microsoft Corporation"
diff --git a/packages/playwright/.gitignore b/packages/playwright/.gitignore
new file mode 100644
index 0000000000..0cfb901530
--- /dev/null
+++ b/packages/playwright/.gitignore
@@ -0,0 +1,2 @@
+# copied from the root readme
+README.md
diff --git a/packages/playwright/.npmignore b/packages/playwright/.npmignore
new file mode 100644
index 0000000000..7d2822f2fe
--- /dev/null
+++ b/packages/playwright/.npmignore
@@ -0,0 +1 @@
+# empty to not exclude things in gitignore
\ No newline at end of file
diff --git a/packages/playwright/README.md b/packages/playwright/README.md
deleted file mode 100644
index b662a736d4..0000000000
--- a/packages/playwright/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# playwright
-This packagage contains the [Chromium](https://www.chromium.org/), [Firefox](https://www.mozilla.org/firefox/) and [WebKit](https://www.webkit.org/) flavors of [Playwright](http://github.com/microsoft/playwright).
diff --git a/utils/doclint/Source.js b/utils/doclint/Source.js
index 5db855dfb1..c966a58bd6 100644
--- a/utils/doclint/Source.js
+++ b/utils/doclint/Source.js
@@ -100,6 +100,10 @@ class Source {
async save() {
await writeFileAsync(this.filePath(), this.text());
}
+
+ async saveAs(path) {
+ await writeFileAsync(path, this.text());
+ }
/**
* @param {string} filePath
diff --git a/utils/doclint/cli.js b/utils/doclint/cli.js
index 2a155b27fa..c9ff8910ee 100755
--- a/utils/doclint/cli.js
+++ b/utils/doclint/cli.js
@@ -59,6 +59,8 @@ async function run() {
await source.save();
changedFiles = true;
}
+
+ await readme.saveAs(path.join(PROJECT_DIR, 'packages', 'playwright', 'README.md'));
}
// Report results.