-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: prepare to npm publish #148
Conversation
dgozman
commented
Dec 5, 2019
- setup .npmignore;
- index.js selecting a browser;
- minor package.json tweaks;
- example script which works against npm pack'ed module.
- setup .npmignore; - index.js selecting a browser; - minor package.json tweaks; - example script which works against npm pack'ed module.
|
||
# include sources from lib except for injected | ||
!lib/**/*.js | ||
lib/injected/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary given the more generic glob (**/*) above?
|
||
console.log('checking user agent...'); | ||
const browser = await playwright.launch(); | ||
const page = await browser.newPage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just console.log(await browser.userAgent());
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it how it is
@@ -18,7 +19,7 @@ | |||
"debug-unit": "node --inspect-brk test/test.js", | |||
"test-doclint": "node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js", | |||
"test": "npm run lint --silent && npm run coverage && npm run test-doclint && npm run test-types && node utils/testrunner/test/test.js", | |||
"install": "node install.js", | |||
"prepare": "node install.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to self: install
is run on npm run i, but there is no install.js
so it fails.