Skip to content

Commit

Permalink
chore: store computed files across development container rebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
LayZeeDK committed Nov 14, 2022
1 parent 3ef9457 commit 89fa3be
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,21 @@
"ghcr.io/devcontainers/features/github-cli": {},
"ghcr.io/devcontainers/features/powershell": {}
},
// "containerUser": "root",
// "remoteUser": "root",
"postCreateCommand": {
// "chown": "sudo chown root node_modules",
// "yarn": "yarn install --non-interactive --frozen-lockfile"
},
"mounts": [
{
"source": "router-component-store_node_modules",
"target": "${containerWorkspaceFolder}/node_modules",
"type": "volume"
}
],
"waitFor": "onCreateCommand",
"updateContentCommand": "yarn install --non-interactive --frozen-lockfile",
"updateContentCommand": "",
"postAttachCommand": {
// "developmentServer": "yarn start"
},
Expand Down

0 comments on commit 89fa3be

Please sign in to comment.