Improve build script

This commit is contained in:
Yarmo Mackenbach 2022-03-15 15:43:06 +01:00
parent 0157d35d54
commit 2d0383e61a
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,6 @@ COPY . .
RUN yarn --pure-lockfile
RUN yarn run build
RUN yarn run build:static
###

View file

@ -40,7 +40,8 @@
"dev": "yarn run watch & yarn run build:static:dev",
"test": "mocha",
"watch": "./node_modules/.bin/nodemon --config nodemon.json ./",
"build": "ncc build index.js -o dist",
"build": "yarn run build:server & yarn run build:static",
"build:server": "ncc build index.js -o dist",
"build:static": "webpack --config webpack.config.js --env static=true --env mode=production",
"build:static:dev": "webpack --config webpack.config.js --env static=true --env mode=development",
"license:check": "./node_modules/.bin/license-check-and-add check",