File tree Expand file tree Collapse file tree 1 file changed +32
-3
lines changed
Expand file tree Collapse file tree 1 file changed +32
-3
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- set -e
3+ set -ev
44
55DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
6- cd " $DIR "
6+ cd " $DIR /output "
77
8- echo " $DIR "
98echo " Checking Vuex..."
9+
10+ if ! grep -q " vuex" package.json; then
11+ echo " Vuex not found in package.json"
12+ cat packages.json
13+ exit 1
14+ fi ;
15+
16+ test -f src/store/actions.js
17+ test -f src/store/getters.js
18+ test -f src/store/index.js
19+ test -f src/store/mutation-types.js
20+ test -f src/store/mutations.js
21+
22+ if ! grep -ql " ^import store from './store';$" src/background.js; then
23+ echo " Line « import store from './store'; » not found in src/background.js"
24+ cat src/background.js
25+ exit 2
26+ fi ;
27+
28+ if ! grep -ql " ^import store from './../store';$" src/popup/popup.js; then
29+ echo " Line « import store from './../store'; » not found in src/popup/popup.js"
30+ cat src/popup/popup.js
31+ exit 2
32+ fi ;
33+
34+ if ! grep -ql " ^[[:space:]][[:space:]]store,$" src/popup/popup.js; then
35+ echo " Line « store, » not found in src/popup/popup.js"
36+ cat src/popup/popup.js
37+ exit 2
38+ fi ;
You can’t perform that action at this time.
0 commit comments