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: speedup npm install from a github checkout #1545

Merged
merged 2 commits into from Mar 26, 2020

Conversation

aslushnikov
Copy link
Collaborator

Many of us are running a watchdog in the background that
keeps //lib folder up-to-date, so there's no need to re-build
Playwright from source on every npm install command.

This patch does a crude timestatmp comparison between typescript
files and their javascript counterparts. If some files are missing in
//lib, or if some //src files are newer than //lib, then
it re-builds the Playwright.

This cuts off 10 seconds for me on in case I have a watchdog in the
background.

Many of us are running a watchdog in the background that
keeps `//lib` folder up-to-date, so there's no need to re-build
Playwright from source on every `npm install` command.

This patch does a crude timestatmp comparison between typescript
files and their javascript counterparts. If some files are missing in
`//lib`, or if some `//src` files are newer than `//lib`, then
it re-builds the Playwright.

This cuts off 10 seconds for me on in case I have a watchdog in the
background.
Copy link
Contributor

@dgozman dgozman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see how this goes.

@aslushnikov aslushnikov merged commit c468e92 into microsoft:master Mar 26, 2020
@aslushnikov aslushnikov deleted the speedup-install-from-github branch March 26, 2020 05:32
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.

None yet

2 participants