summaryrefslogtreecommitdiffstats
path: root/check-vuejs-builds.sh
blob: e40aede94e14cb7c0e35765037516878f3337e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
set -e

# Build the Vue files
make build-js-production

git status

bash -c "[[ ! \"`git status --porcelain js`\" ]] || ( echo 'Uncommitted changes in built Vue files' && exit 1 )"

bash -c "[[ ! \"`git status --porcelain package-lock.json`\" ]] || ( git diff package-lock.json && echo 'Uncommitted changes in package-lock.json' && exit 1 )"