unisdr / undrr-mangrove

Testing 1, 2, 3
https://unisdr.github.io/undrr-mangrove/
MIT License
0 stars 0 forks source link

Enhancement: alias docker commands in package.json scripts #87

Open khawkins98 opened 3 hours ago

khawkins98 commented 3 hours ago

As seen in https://github.com/unisdr/undrr-mangrove/issues/85#issuecomment-2363164982_ we encourage use of the docker commands for local development, but this can be error prone as it requires manually copy-pasting long syntax, eg.

docker exec -it undrr-mangrove-client-1 bash -c "yarn run storybook --ci"

Suggest we add these as scripts to package.json, e.g.

  "scripts": {
    "docker-build": "docker exec -it undrr-mangrove-client-1 bash -c \"yarn run storybook --ci\"",
khawkins98 commented 3 hours ago

@zechtz the next time you're looking for a task, this could be an easy one to pickup. Low priority.