Skip to content

Commit 2605bfa

Browse files
committed
feat: setup licensed on the codespace
1 parent d645f06 commit 2605bfa

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "GitHub Actions (TypeScript)",
33
"image": "mcr.microsoft.com/devcontainers/typescript-node:20",
4-
"postCreateCommand": "npm install",
4+
"postCreateCommand": ".devcontainer/post-create",
55
"customizations": {
66
"codespaces": {
77
"openFiles": ["README.md"]
@@ -36,6 +36,7 @@
3636
},
3737
"features": {
3838
"ghcr.io/devcontainers/features/github-cli:1": {},
39-
"ghcr.io/devcontainers-contrib/features/prettier:1": {}
39+
"ghcr.io/devcontainers-contrib/features/prettier:1": {},
40+
"ghcr.io/devcontainers/features/ruby:1": {}
4041
}
4142
}

.devcontainer/post-create

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -eux
4+
5+
# Setup licensed
6+
sudo apt update
7+
sudo apt install -y \
8+
cmake\
9+
pkg-config
10+
11+
gem install licensed
12+
13+
# NPM install
14+
npm install
15+

0 commit comments

Comments
 (0)