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

This commit is contained in:
Joel Einbinder 2020-01-21 17:24:47 -08:00 committed by Andrey Lushnikov
parent 8127c890e4
commit 4573cd3fec
6 changed files with 10 additions and 3 deletions

View File

@ -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"

2
packages/playwright/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# copied from the root readme
README.md

View File

@ -0,0 +1 @@
# empty to not exclude things in gitignore

View File

@ -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).

View File

@ -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

View File

@ -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.