Skip to content

Commit

Permalink
chore(build): patch local dev run, without proxy (#585)
Browse files Browse the repository at this point in the history
* build, chrome2 melts if browserslist malformed in package.json
  • Loading branch information
cdcabrera committed Feb 16, 2021
1 parent ae7fe9d commit 89a2436
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,18 @@
"insights": {
"appname": "subscriptions"
},
"browserslist": [],
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"jest": {
"coverageThreshold": {
"global": {
Expand Down
7 changes: 7 additions & 0 deletions scripts/dev.chrome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ buildChrome()
printf "\n${GREEN}Build SUCCESS${NOCOLOR}"
fi

if [ ! -d $DIR_REPO/build ]; then
printf "\n${YELLOW}Build output failed, confirm recent chroming updates didn't alter the output directory.${NOCOLOR}\n"
exit 0
else
printf "\n${GREEN}Build SUCCESS${NOCOLOR}"
fi

printf "\n${YELLOW}Setting up local chrome ...${NOCOLOR}"

mkdir -p $DIR_PUBLIC
Expand Down

0 comments on commit 89a2436

Please sign in to comment.