Skip to content

Commit 9f48227

Browse files
authored
Merge pull request #1162 from mikepenz/feature/devcontainer_update
Improve `devcontainer` setup
2 parents 791ff2f + 4ba114b commit 9f48227

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// "forwardPorts": [],
1616

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

2020
// Configure tool-specific properties.
2121
// "customizations": {},

.devcontainer/postCreateCommand.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
npm install
4+
5+
# also install dependencies for `pr-collector`
6+
cd pr-collector
7+
npm install
8+
npm run build && npm run package
9+
10+
cd ..

0 commit comments

Comments
 (0)