Skip to content

Commit

Permalink
devcontainer: update onCreateCommand to remove existing node_modules …
Browse files Browse the repository at this point in the history
…and create a symbolic link to a cached version in ~/.cache/slackbot/node_modules, improving development environment setup.
  • Loading branch information
hakatashi committed Oct 5, 2024
1 parent 30eaad4 commit 7709440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"tunnel"
],
"postAttachCommand": "docker logs slackbot_devcontainer-tunnel-1 && docker attach slackbot_devcontainer-tunnel-1",
"onCreateCommand": "echo 'onCreate: Please run `docker-compose up` to start the services.'",
"onCreateCommand": "rm -rf node_modules && ln -s ~/.cache/slackbot/node_modules node_modules",
"postStartCommand": "echo 'postStart: Please run `docker-compose up` to start the services.'",
"postCreateCommand": "echo 'postCreate: Please run `docker-compose up` to start the services.'",
"initializeCommand": "echo 'initialize: Please run `docker-compose up` to start the services.'",
Expand Down

0 comments on commit 7709440

Please sign in to comment.