Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev environment runs on M1 mac (#188)
* Dev environment runs on M1 mac Pupeteer does not play well with M1 and ARM in general. While they [just released](puppeteer/puppeteer#7546) experimental support for ARM macs, they still don't support [ARM machines for Debian/Docker](puppeteer/puppeteer#7546 (comment)). This PR switches from puppeteer to [zombie](https://github.com/assaf/zombie). Ideally I would like to move back, as Zombie does not appear to be actively maintained. * Replaced puppeteer mock with zombie + removed commented out puppeteer code
- Loading branch information
Showing
13 changed files
with
320 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM buildkite/puppeteer:8.0.0 | ||
FROM node:12-alpine | ||
|
||
WORKDIR /app | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import faker from "faker"; | ||
|
||
export default class Zombie { | ||
private doneVisiting: boolean = false; | ||
constructor(_options) {} | ||
public visit(_url: string, callback: () => void) { | ||
this.doneVisiting = true; | ||
callback(); | ||
} | ||
|
||
public html() { | ||
if (!this.doneVisiting) { | ||
throw `Should not have called HTML before done with visit`; | ||
} | ||
|
||
return ` | ||
<!DOCTYPE html> | ||
<head> | ||
<title>${faker.lorem.sentence()}</title> | ||
<meta name="author" content="${faker.name.firstName()}"/> | ||
</head> | ||
<body> | ||
<p>${faker.lorem.paragraphs()}</p> | ||
<p>${faker.lorem.paragraphs()}</p> | ||
<p>${faker.lorem.paragraphs()}</p> | ||
<p>${faker.lorem.paragraphs()}</p> | ||
<p>${faker.lorem.paragraphs()}</p> | ||
<p>${faker.lorem.paragraphs()}</p> | ||
</body> | ||
</html> | ||
`; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.