Skip to content
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

Merged
merged 3 commits into from
Dec 5, 2019
Merged

chore: prepare to npm publish #148

merged 3 commits into from
Dec 5, 2019

Conversation

dgozman
Copy link
Contributor

@dgozman 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/
Copy link
Member

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();
Copy link
Member

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()); ?

Copy link
Contributor

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",
Copy link
Contributor

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.

@JoelEinbinder JoelEinbinder merged commit 0a9377e into microsoft:master Dec 5, 2019
@JoelEinbinder JoelEinbinder deleted the prepare-npm branch December 5, 2019 19:29
sand4rt pushed a commit to sand4rt/playwright that referenced this pull request Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants