Add NPM in docker

parent a858afaf
#!/bin/sh
set -eu
IFS=$'\n\t'
SCRIPT=$(realpath "$0")
DIR=$(dirname "$SCRIPT")
PROJECT_ROOT=$(dirname $DIR)
docker run \
--rm \
--interactive \
--tty \
--publish 8080:8080 \
--volume "$PROJECT_ROOT:$PROJECT_ROOT" \
--workdir="$PWD" \
--entrypoint=npm \
registry.gitlab.com/klubfitpp/hellofitcz_2018/webpack_ci_builder:1530372242 \
"[email protected]"
......@@ -6,7 +6,7 @@
"scripts": {
"dev": "webpack --mode development",
"build": "webpack --mode production",
"watch": "webpack-dev-server --mode development",
"watch": "webpack-dev-server --mode development --host 0.0.0.0",
"prettier-check": "prettier -l \"src/**/*.js\" \"src/**/*.scss\" \"src/**/*.css\"",
"prettier-fix": "prettier --write \"src/**/*.js\" \"src/**/*.scss\" \"src/**/*.css\""
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment