npm run start: npx webpack && docker build && docker run (#6)

This commit is contained in:
folex 2021-02-12 17:45:49 +03:00 committed by GitHub
parent 8ef75e55dd
commit a89c9f386d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "webpack-serve --open",
"start": "npx webpack && docker build -f nginx.Dockerfile -t dashboard . && docker run --rm --name dashboard -p443:443 -p80:80 dashboard",
"serve": "webpack serve",
"pack": "webpack --mode production",
"prettier-format": "prettier --config .prettierrc 'src/**/*.ts' --write"