From ca359fdfd785bf07d6e1d93313ecb0c049c76b54 Mon Sep 17 00:00:00 2001 From: Brandon Davis Date: Wed, 4 Nov 2020 10:49:11 -0500 Subject: [PATCH] Add checkbuild.sh --- client/README.md | 7 +++++++ client/checkbuild.sh | 16 ++++++++++++++++ client/package.json | 6 +++++- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100755 client/checkbuild.sh diff --git a/client/README.md b/client/README.md index dc55c47c0..234ae6e04 100644 --- a/client/README.md +++ b/client/README.md @@ -20,8 +20,15 @@ yarn build:web # build vue-media-server library yarn build:lib +# build electron +yarn build:electron + # lint yarn lint +yarn lint:templates + +# Local verification of all tests, linting, builds +./checkbuild.sh ``` See [this issue](https://github.com/vuejs/vue-cli/issues/3065) for details on why our `yarn serve` command is weird. diff --git a/client/checkbuild.sh b/client/checkbuild.sh new file mode 100755 index 000000000..c68e5488c --- /dev/null +++ b/client/checkbuild.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -e # exit immediately on fail + +# This script is intended as an optional local utility. +# CI runs are expensive, so you can use this to run all +# CI Checks locally in parallel to verify that a commit will pass +# in much less time than CI would take. + +yarn test & +yarn lint & +yarn lint:templates & +yarn build:web & +yarn build:electron & +yarn build:lib & + +time wait diff --git a/client/package.json b/client/package.json index c8f38e709..00919a22b 100644 --- a/client/package.json +++ b/client/package.json @@ -110,7 +110,11 @@ "ts-jest": { "tsConfig": "tsconfig.spec.json" } - } + }, + "modulePathIgnorePatterns": [ + "/dist/", + "/dist_electron/" + ] }, "eslintConfig": { "root": true,