From aba604d32b40d345c2643be84fd991d254df724e Mon Sep 17 00:00:00 2001 From: waffeln Date: Sat, 18 Apr 2020 19:42:01 +0200 Subject: [PATCH] #10 Improve build scripts --- .github/workflows/tagged-release.yml | 4 ++-- README.md | 6 +----- package.json | 3 ++- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tagged-release.yml b/.github/workflows/tagged-release.yml index 7680300..3459d2e 100644 --- a/.github/workflows/tagged-release.yml +++ b/.github/workflows/tagged-release.yml @@ -18,8 +18,8 @@ jobs: with: node-version: 12 - - name: NPM clean install-all - run: npm run install-all + - name: NPM Clean install all + run: npm run ci-all - name: Generate build files run: npm run build diff --git a/README.md b/README.md index e554263..71f468b 100644 --- a/README.md +++ b/README.md @@ -41,13 +41,9 @@ What you need: Setup: ```sh -npm run install-all +npm install ``` -**Not the same as `npm install`!** - -This command runs `npm install` for client, controller and host. - Build all: ```sh diff --git a/package.json b/package.json index cf6af6c..3dbadcd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "client": "cd client && npm start", "controller": "cd controller && npm start", "host": "cd host && npm start", - "install-all": "cd client && npm install --no-optional && cd ../controller && npm install --no-optional && cd ../host && npm install --no-optional", + "install": "cd client && npm install --no-optional && cd ../controller && npm install --no-optional && cd ../host && npm install --no-optional", + "ci-all": "cd client && npm ci && cd ../controller && npm ci && cd ../host && npm ci", "build": "cd client && npm run build && cd ../controller && npm run build && cd ../host && npm run build" }, "repository": {