diff --git a/package.json b/package.json index d610531d36..8371a8a5c9 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "ui/tournamentSchedule", "ui/tournamentCalendar", "ui/tree", + "ui/@build/tsProject", "ui/@types/lichess" ] } diff --git a/ui/gulp/tsProject.js b/ui/@build/tsProject/index.js similarity index 100% rename from ui/gulp/tsProject.js rename to ui/@build/tsProject/index.js diff --git a/ui/@build/tsProject/package.json b/ui/@build/tsProject/package.json new file mode 100644 index 0000000000..a3cc019bf6 --- /dev/null +++ b/ui/@build/tsProject/package.json @@ -0,0 +1,21 @@ +{ + "name": "@build/tsProject", + "version": "2.0.0", + "private": true, + "author": "Thibault Duplessis", + "license": "AGPL-3.0", + "main": "index.js", + "dependencies": { + "gulp": "^4", + "vinyl-source-stream": "^2", + "vinyl-buffer": "^1", + "ansi-colors": "^1", + "fancy-log": "^1", + "watchify": "^3", + "browserify": "^16", + "gulp-terser": "^1", + "gulp-size": "^3", + "tsify": "^4", + "typescript": "^3" + } +} diff --git a/ui/analyse/gulpfile.js b/ui/analyse/gulpfile.js index 3b0e9dbe8f..7ca2cef486 100644 --- a/ui/analyse/gulpfile.js +++ b/ui/analyse/gulpfile.js @@ -1,4 +1,4 @@ -const lilaGulp = require('../gulp/tsProject.js'); +const lilaGulp = require('@build/tsProject'); const lilaGulpPlugins = require('../gulp/tsPlugins.js'); lilaGulp('LichessAnalyse', 'lichess.analyse', __dirname); diff --git a/ui/analyse/package.json b/ui/analyse/package.json index 0e46a67f67..68c188d71b 100644 --- a/ui/analyse/package.json +++ b/ui/analyse/package.json @@ -22,18 +22,9 @@ }, "homepage": "https://github.com/ornicar/lila", "devDependencies": { + "@build/tsProject": "^2", "@types/jquery": "^2.0", - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@types/lichess": "1.0.0" }, "dependencies": { "ceval": "1.0.0", diff --git a/ui/challenge/gulpfile.js b/ui/challenge/gulpfile.js index 482dee14bb..7f8a695edc 100644 --- a/ui/challenge/gulpfile.js +++ b/ui/challenge/gulpfile.js @@ -1,2 +1,2 @@ -require('../gulp/tsProject.js')('LichessChallenge', 'lichess.challenge', __dirname); +require('@build/tsProject')('LichessChallenge', 'lichess.challenge', __dirname); require('../gulp/cssProject.js')(__dirname); diff --git a/ui/challenge/package.json b/ui/challenge/package.json index 0ceacaeaa3..72ed746a63 100644 --- a/ui/challenge/package.json +++ b/ui/challenge/package.json @@ -8,17 +8,8 @@ "snabbdom": "ornicar/snabbdom#0.7.1-lichess" }, "devDependencies": { + "@build/tsProject": "^2", "@types/jquery": "^2.0", - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@types/lichess": "1.0.0" } } diff --git a/ui/chat/gulpfile.js b/ui/chat/gulpfile.js index 5a66ba8112..e49f47e6ec 100644 --- a/ui/chat/gulpfile.js +++ b/ui/chat/gulpfile.js @@ -1,3 +1,3 @@ -const lilaGulp = require('../gulp/tsProject.js'); +const lilaGulp = require('@build/tsProject'); lilaGulp('LichessChat', 'lichess.chat', __dirname); diff --git a/ui/chat/package.json b/ui/chat/package.json index f58b614c94..b053e981ff 100644 --- a/ui/chat/package.json +++ b/ui/chat/package.json @@ -13,17 +13,8 @@ "snabbdom": "ornicar/snabbdom#0.7.1-lichess" }, "devDependencies": { + "@build/tsProject": "^2", "@types/jquery": "^2.0", - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@types/lichess": "1.0.0" } } diff --git a/ui/cli/gulpfile.js b/ui/cli/gulpfile.js index 5b9b79f530..2562027abc 100644 --- a/ui/cli/gulpfile.js +++ b/ui/cli/gulpfile.js @@ -1,3 +1,3 @@ -const lilaGulp = require('../gulp/tsProject.js'); +const lilaGulp = require('@build/tsProject'); lilaGulp('LichessCli', 'lichess.cli', __dirname); diff --git a/ui/cli/package.json b/ui/cli/package.json index 27440f476a..718cd1bdc6 100644 --- a/ui/cli/package.json +++ b/ui/cli/package.json @@ -6,17 +6,8 @@ "license": "AGPL-3.0", "dependencies": {}, "devDependencies": { + "@build/tsProject": "^2", "@types/jquery": "^2.0", - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@types/lichess": "1.0.0" } } diff --git a/ui/dasher/gulpfile.js b/ui/dasher/gulpfile.js index f2fc68ab96..f899b2f26d 100644 --- a/ui/dasher/gulpfile.js +++ b/ui/dasher/gulpfile.js @@ -1,3 +1,3 @@ -require('../gulp/tsProject.js')('LichessDasher', 'lichess.dasher', __dirname); +require('@build/tsProject')('LichessDasher', 'lichess.dasher', __dirname); require('../gulp/cssProject.js')(__dirname); diff --git a/ui/dasher/package.json b/ui/dasher/package.json index 0ebe9fa4f9..d37ded345a 100644 --- a/ui/dasher/package.json +++ b/ui/dasher/package.json @@ -8,18 +8,9 @@ "snabbdom": "ornicar/snabbdom#0.7.1-lichess" }, "devDependencies": { + "@build/tsProject": "^2", "@types/jquery": "^2.0", "@types/jqueryui": "^1.11", - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@types/lichess": "1.0.0" } } diff --git a/ui/lobby/gulpfile.js b/ui/lobby/gulpfile.js index 99ac466a9a..016c8c2af5 100644 --- a/ui/lobby/gulpfile.js +++ b/ui/lobby/gulpfile.js @@ -1,3 +1,3 @@ -const lilaGulp = require('../gulp/tsProject.js'); +const lilaGulp = require('@build/tsProject'); lilaGulp('LichessLobby', 'lichess.lobby', __dirname); diff --git a/ui/lobby/package.json b/ui/lobby/package.json index dfacff1839..7ba814ad19 100644 --- a/ui/lobby/package.json +++ b/ui/lobby/package.json @@ -20,18 +20,9 @@ }, "homepage": "https://github.com/ornicar/lila", "devDependencies": { + "@build/tsProject": "^2", "@types/jquery": "^2.0", - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@types/lichess": "1.0.0" }, "dependencies": { "chessground": "^7.6", diff --git a/ui/notify/gulpfile.js b/ui/notify/gulpfile.js index 72e5aa34ff..347fec8fdb 100644 --- a/ui/notify/gulpfile.js +++ b/ui/notify/gulpfile.js @@ -1,3 +1,3 @@ -require('../gulp/tsProject.js')('LichessNotify', 'lichess.notify', __dirname); +require('@build/tsProject')('LichessNotify', 'lichess.notify', __dirname); require('../gulp/cssProject.js')(__dirname); diff --git a/ui/notify/package.json b/ui/notify/package.json index 31e3822e01..cd140f4185 100644 --- a/ui/notify/package.json +++ b/ui/notify/package.json @@ -8,17 +8,8 @@ "snabbdom": "ornicar/snabbdom#0.7.1-lichess" }, "devDependencies": { + "@build/tsProject": "^2", "@types/jquery": "^2.0", - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@types/lichess": "1.0.0" } } diff --git a/ui/palantir/gulpfile.js b/ui/palantir/gulpfile.js index 6e27281b2b..abf8a423f5 100644 --- a/ui/palantir/gulpfile.js +++ b/ui/palantir/gulpfile.js @@ -1,3 +1,3 @@ -const lilaGulp = require('../gulp/tsProject.js'); +const lilaGulp = require('@build/tsProject'); lilaGulp('Palantir', 'lichess.palantir', __dirname); diff --git a/ui/palantir/package.json b/ui/palantir/package.json index 83a659e295..69cade52a3 100644 --- a/ui/palantir/package.json +++ b/ui/palantir/package.json @@ -23,8 +23,8 @@ "compile": "../../node_modules/typescript/bin/tsc" }, "devDependencies": { - "@types/lichess": "1.0.0", - "typescript": "^3" + "@build/tsProject": "^2", + "@types/lichess": "1.0.0" }, "dependencies": { "@types/webrtc": "^0.0.25" diff --git a/ui/puzzle/gulpfile.js b/ui/puzzle/gulpfile.js index 855a58b6ec..518e208c83 100644 --- a/ui/puzzle/gulpfile.js +++ b/ui/puzzle/gulpfile.js @@ -1,3 +1,3 @@ -const lilaGulp = require('../gulp/tsProject.js'); +const lilaGulp = require('@build/tsProject'); lilaGulp('LichessPuzzle', 'lichess.puzzle', __dirname); diff --git a/ui/puzzle/package.json b/ui/puzzle/package.json index c4ee205f06..fc8830fefc 100644 --- a/ui/puzzle/package.json +++ b/ui/puzzle/package.json @@ -20,18 +20,9 @@ }, "homepage": "https://github.com/ornicar/lila", "devDependencies": { + "@build/tsProject": "^2", "@types/jquery": "^2.0", - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@types/lichess": "1.0.0" }, "dependencies": { "ceval": "1.0.0", diff --git a/ui/round/gulpfile.js b/ui/round/gulpfile.js index a3fb07e45b..6fbd9743f2 100644 --- a/ui/round/gulpfile.js +++ b/ui/round/gulpfile.js @@ -1,4 +1,4 @@ -const lilaGulp = require('../gulp/tsProject.js'); +const lilaGulp = require('@build/tsProject'); const lilaGulpPlugins = require('../gulp/tsPlugins.js'); lilaGulp('LichessRound', 'lichess.round', __dirname); diff --git a/ui/round/package.json b/ui/round/package.json index 12ac8e9e54..ea85410d9b 100644 --- a/ui/round/package.json +++ b/ui/round/package.json @@ -20,17 +20,8 @@ }, "homepage": "https://github.com/ornicar/lila", "devDependencies": { - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@build/tsProject": "^2", + "@types/lichess": "1.0.0" }, "dependencies": { "chat": "2.0.0", diff --git a/ui/serviceWorker/gulpfile.js b/ui/serviceWorker/gulpfile.js index 59d785447d..f1de43d179 100644 --- a/ui/serviceWorker/gulpfile.js +++ b/ui/serviceWorker/gulpfile.js @@ -1,3 +1,3 @@ -const lilaGulp = require('../gulp/tsProject.js'); +const lilaGulp = require('@build/tsProject'); lilaGulp(undefined, 'lichess.serviceWorker', __dirname); diff --git a/ui/serviceWorker/package.json b/ui/serviceWorker/package.json index d5dbd00454..e998457f59 100644 --- a/ui/serviceWorker/package.json +++ b/ui/serviceWorker/package.json @@ -5,15 +5,6 @@ "author": "Thibault Duplessis", "license": "AGPL-3.0", "devDependencies": { - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@build/tsProject": "^2" } } diff --git a/ui/speech/gulpfile.js b/ui/speech/gulpfile.js index a3ba9277a6..e4dadf0012 100644 --- a/ui/speech/gulpfile.js +++ b/ui/speech/gulpfile.js @@ -1,3 +1,3 @@ -const lilaGulp = require('../gulp/tsProject.js'); +const lilaGulp = require('@build/tsProject'); lilaGulp('LichessSpeech', 'lichess.speech', __dirname); diff --git a/ui/speech/package.json b/ui/speech/package.json index 4da38a84da..f085a5fd9d 100644 --- a/ui/speech/package.json +++ b/ui/speech/package.json @@ -25,8 +25,8 @@ "compile": "../../node_modules/typescript/bin/tsc" }, "devDependencies": { - "@types/lichess": "1.0.0", - "typescript": "^3" + "@build/tsProject": "^2", + "@types/lichess": "1.0.0" }, "dependencies": { } diff --git a/ui/tournament/gulpfile.js b/ui/tournament/gulpfile.js index 52f53b1cb4..3747f8f777 100644 --- a/ui/tournament/gulpfile.js +++ b/ui/tournament/gulpfile.js @@ -1,3 +1,3 @@ -require('../gulp/tsProject.js')('LichessTournament', 'lichess.tournament', __dirname); +require('@build/tsProject')('LichessTournament', 'lichess.tournament', __dirname); require('../gulp/cssProject.js')(__dirname); diff --git a/ui/tournament/package.json b/ui/tournament/package.json index 848867bdea..f7609c660f 100644 --- a/ui/tournament/package.json +++ b/ui/tournament/package.json @@ -19,18 +19,9 @@ }, "homepage": "https://github.com/ornicar/lila", "devDependencies": { + "@build/tsProject": "^2", "@types/jquery": "^2.0", - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@types/lichess": "1.0.0" }, "dependencies": { "chat": "2.0.0", diff --git a/ui/tournamentCalendar/gulpfile.js b/ui/tournamentCalendar/gulpfile.js index 566eebeb67..fcf973a515 100644 --- a/ui/tournamentCalendar/gulpfile.js +++ b/ui/tournamentCalendar/gulpfile.js @@ -1,3 +1,3 @@ -const lilaGulp = require('../gulp/tsProject.js'); +const lilaGulp = require('@build/tsProject'); lilaGulp('LichessTournamentCalendar', 'lichess.tournamentCalendar', __dirname); diff --git a/ui/tournamentCalendar/package.json b/ui/tournamentCalendar/package.json index 4f360db4b3..9c529c1230 100644 --- a/ui/tournamentCalendar/package.json +++ b/ui/tournamentCalendar/package.json @@ -20,18 +20,9 @@ }, "homepage": "https://github.com/ornicar/lila", "devDependencies": { + "@build/tsProject": "^2", "@types/jquery": "^2.0", - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@types/lichess": "1.0.0" }, "dependencies": { "snabbdom": "ornicar/snabbdom#0.7.1-lichess", diff --git a/ui/tournamentSchedule/gulpfile.js b/ui/tournamentSchedule/gulpfile.js index 8845bb56cb..04291ae91e 100644 --- a/ui/tournamentSchedule/gulpfile.js +++ b/ui/tournamentSchedule/gulpfile.js @@ -1,3 +1,3 @@ -const lilaGulp = require('../gulp/tsProject.js'); +const lilaGulp = require('@build/tsProject'); lilaGulp('LichessTournamentSchedule', 'lichess.tournamentSchedule', __dirname); diff --git a/ui/tournamentSchedule/package.json b/ui/tournamentSchedule/package.json index 35ddbabb25..a0d0e049da 100644 --- a/ui/tournamentSchedule/package.json +++ b/ui/tournamentSchedule/package.json @@ -20,18 +20,9 @@ }, "homepage": "https://github.com/ornicar/lila", "devDependencies": { + "@build/tsProject": "^2", "@types/jquery": "^2.0", - "@types/lichess": "1.0.0", - "browserify": "^16", - "fancy-log": "^1", - "gulp": "^4", - "gulp-size": "^3", - "gulp-terser": "^1", - "tsify": "^4", - "typescript": "^3", - "vinyl-source-stream": "^2", - "vinyl-buffer": "^1", - "watchify": "^3" + "@types/lichess": "1.0.0" }, "dependencies": { "dragscroll": "^0.0.8", diff --git a/yarn.lock b/yarn.lock index c964a5ade0..af4b1856c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -126,7 +126,7 @@ amdefine@>=0.0.4: resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" integrity sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU= -ansi-colors@^1.0.1, ansi-colors@^1.1.0: +ansi-colors@^1, ansi-colors@^1.0.1, ansi-colors@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-1.1.0.tgz#6374b4dd5d4718ff3ce27a671a3b1cad077132a9" integrity sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==