Skip to content

Commit

Permalink
ensure playwright browsers are installed in devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
shibbas committed Oct 25, 2023
1 parent aa7d8cf commit 445906a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"forwardPorts": [3000, 3001, 5173],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install",
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",

// Set minimal host requirements for the container.
"hostRequirements": {
Expand Down
7 changes: 7 additions & 0 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

echo "Installing dependencies..."
npm install

echo "Installing playwright browsers..."
npx playwright install --with-deps

0 comments on commit 445906a

Please sign in to comment.