5 ms·
Its a local installation, inside the folder, instead on the operating system. Also, other people will automatically install it when the package is saves inside
by diamondo25 8y ago
Its a local installation, inside the folder, instead on the operating system. Also, other people will automatically install it when the package is saves inside the package.json or yarn file. You can also limit the version you want with these files, that the end user dont need to think about. Just yarn install :)
- 11235813213455 8y agoserv() { docker run --rm --name "nginx-${1:-8000}" -p "${1:-8000}:80" "${@:2}" -v $PWD:/usr/share/nginx/html:ro caub/nginx-dev; } this is what I do to run a local static server, you could run nginx with a config for proxying on docker as well also yarn.. bleh, just npm, nowadays it's even faster (on linux)
- 11235813213455 8y agosource of caub/nginx-dev: https://github.com/caub/docker-images/tree/master/nginx-dev https://github.com/caub/docker-images/tree/master/nginx-dev