Skip to content

Commit

Permalink
fail rollup on warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
brollin committed Aug 24, 2022
1 parent 2e7bfd5 commit c14a127
Show file tree
Hide file tree
Showing 31 changed files with 73 additions and 73 deletions.
8 changes: 4 additions & 4 deletions ui/analyse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"tree": "2.0.0"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod",
"plugin-dev": "rollup --config --config-plugin",
"plugin-prod": "rollup --config --config-prod --config-plugin"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod",
"plugin-dev": "rollup --failAfterWarnings --config --config-plugin",
"plugin-prod": "rollup --failAfterWarnings --config --config-prod --config-plugin"
}
}
2 changes: 1 addition & 1 deletion ui/build
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if [ $mode == "css" ]; then
else
if type -p parallel; then # parallel execution!
if [ -z "$P_OPTS" -a ! -e ~/.parallel/config ]; then
P_OPTS="-j+4 --halt 2"
P_OPTS="-j+4 --halt now,fail=1"
fi
set -x
parallel --gnu $P_OPTS build ::: $apps1
Expand Down
4 changes: 2 additions & 2 deletions ui/challenge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"typescript": "^4"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
8 changes: 4 additions & 4 deletions ui/chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"typescript": "^4.5"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod",
"plugin-dev": "rollup --config --config-plugin",
"plugin-prod": "rollup --config --config-prod --config-plugin"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod",
"plugin-dev": "rollup --failAfterWarnings --config --config-plugin",
"plugin-prod": "rollup --failAfterWarnings --config --config-prod --config-plugin"
}
}
4 changes: 2 additions & 2 deletions ui/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"license": "AGPL-3.0-or-later",
"scripts": {
"compile": "tsc --incremental --declaration --inlineSourceMap",
"dev": "$npm_execpath run compile && rollup --config",
"prod": "$npm_execpath run compile && rollup --config --config-prod"
"dev": "$npm_execpath run compile && rollup --failAfterWarnings --config",
"prod": "$npm_execpath run compile && rollup --failAfterWarnings --config --config-prod"
},
"dependencies": {
"common": "2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions ui/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"typescript": "^4"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/coordinateTrainer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/dasher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"typescript": "^4"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/dgt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"chessops": "^0.12"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/insight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/keyboardMove/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"scripts": {
"compile": "tsc --incremental --declaration",
"dev": "$npm_execpath run compile && rollup --config",
"prod": "$npm_execpath run compile && rollup --config --config-prod"
"dev": "$npm_execpath run compile && rollup --failAfterWarnings --config",
"prod": "$npm_execpath run compile && rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/learn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"mithril": "github:ornicar/mithril.js#lila-1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/lobby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
6 changes: 3 additions & 3 deletions ui/mod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"tablesort": "^5.3"
},
"scripts": {
"all-dev": "rollup --config --config-all",
"plugin-dev": "rollup --config --config-plugin",
"plugin-prod": "rollup --config --config-prod --config-plugin"
"all-dev": "rollup --failAfterWarnings --config --config-all",
"plugin-dev": "rollup --failAfterWarnings --config --config-plugin",
"plugin-prod": "rollup --failAfterWarnings --config --config-prod --config-plugin"
}
}
4 changes: 2 additions & 2 deletions ui/msg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/notify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"typescript": "^4"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/opening/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lichess-pgn-viewer": "^1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/palantir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"scripts": {
"compile": "tsc --incremental --declaration",
"dev": "$npm_execpath run compile && rollup --config",
"prod": "$npm_execpath run compile && rollup --config --config-prod"
"dev": "$npm_execpath run compile && rollup --failAfterWarnings --config",
"prod": "$npm_execpath run compile && rollup --failAfterWarnings --config --config-prod"
}
}
8 changes: 4 additions & 4 deletions ui/puzzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"tree": "2.0.0"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod",
"plugin-dev": "rollup --config --config-plugin",
"plugin-prod": "rollup --config --config-prod --config-plugin"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod",
"plugin-dev": "rollup --failAfterWarnings --config --config-plugin",
"plugin-prod": "rollup --failAfterWarnings --config --config-prod --config-plugin"
}
}
4 changes: 2 additions & 2 deletions ui/racer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
8 changes: 4 additions & 4 deletions ui/round/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod",
"plugin-dev": "rollup --config --config-plugin",
"plugin-prod": "rollup --config --config-prod --config-plugin"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod",
"plugin-dev": "rollup --failAfterWarnings --config --config-plugin",
"plugin-prod": "rollup --failAfterWarnings --config --config-prod --config-plugin"
}
}
4 changes: 2 additions & 2 deletions ui/serviceWorker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"typescript": "^4"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/simul/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
10 changes: 5 additions & 5 deletions ui/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
},
"scripts": {
"deps": "cat ../../public/javascripts/vendor/cash.min.js ./dep/powertip.min.js ./dep/howler.min.js ./dep/mousetrap.min.js > ../../public/compiled/deps.min.js",
"dev": "$npm_execpath run deps && rollup --config",
"prod": "$npm_execpath run deps && rollup --config --config-prod && cat ../../public/compiled/deps.min.js ../../public/compiled/site.min.js > ../../public/compiled/lichess.min.js",
"all-dev": "rollup --config --config-all",
"plugin-dev": "rollup --config --config-plugin",
"plugin-prod": "rollup --config --config-prod --config-plugin"
"dev": "$npm_execpath run deps && rollup --failAfterWarnings --config",
"prod": "$npm_execpath run deps && rollup --failAfterWarnings --config --config-prod && cat ../../public/compiled/deps.min.js ../../public/compiled/site.min.js > ../../public/compiled/lichess.min.js",
"all-dev": "rollup --failAfterWarnings --config --config-all",
"plugin-dev": "rollup --failAfterWarnings --config --config-plugin",
"plugin-prod": "rollup --failAfterWarnings --config --config-prod --config-plugin"
}
}
4 changes: 2 additions & 2 deletions ui/storm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/swiss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/tournament/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/tournamentCalendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/tournamentSchedule/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"snabbdom": "^3.3.1"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}
4 changes: 2 additions & 2 deletions ui/tutor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"common": "2.0.0"
},
"scripts": {
"dev": "rollup --config",
"prod": "rollup --config --config-prod"
"dev": "rollup --failAfterWarnings --config",
"prod": "rollup --failAfterWarnings --config --config-prod"
}
}

0 comments on commit c14a127

Please sign in to comment.