mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-13 17:14:02 +03:00
chore(packages): copy readme from root folder into packages/playwright (#552)
This commit is contained in:
parent
8127c890e4
commit
4573cd3fec
@ -29,7 +29,7 @@
|
|||||||
"build": "node utils/runWebpack.js --mode='development' && tsc -p .",
|
"build": "node utils/runWebpack.js --mode='development' && tsc -p .",
|
||||||
"watch": "node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .",
|
"watch": "node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .",
|
||||||
"apply-next-version": "node utils/apply_next_version.js",
|
"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": {
|
"author": {
|
||||||
"name": "Microsoft Corporation"
|
"name": "Microsoft Corporation"
|
||||||
|
2
packages/playwright/.gitignore
vendored
Normal file
2
packages/playwright/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# copied from the root readme
|
||||||
|
README.md
|
1
packages/playwright/.npmignore
Normal file
1
packages/playwright/.npmignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
# empty to not exclude things in gitignore
|
@ -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).
|
|
@ -101,6 +101,10 @@ class Source {
|
|||||||
await writeFileAsync(this.filePath(), this.text());
|
await writeFileAsync(this.filePath(), this.text());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async saveAs(path) {
|
||||||
|
await writeFileAsync(path, this.text());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} filePath
|
* @param {string} filePath
|
||||||
* @return {!Promise<Source>}
|
* @return {!Promise<Source>}
|
||||||
|
@ -59,6 +59,8 @@ async function run() {
|
|||||||
await source.save();
|
await source.save();
|
||||||
changedFiles = true;
|
changedFiles = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await readme.saveAs(path.join(PROJECT_DIR, 'packages', 'playwright', 'README.md'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Report results.
|
// Report results.
|
||||||
|
Loading…
Reference in New Issue
Block a user