factor out tsProject and its dependencies

pull/5533/head
Niklas Fiekas 2019-09-17 20:54:34 +02:00
parent 33eb674d37
commit adbb3c9ce2
34 changed files with 67 additions and 162 deletions

View File

@ -52,6 +52,7 @@
"ui/tournamentSchedule", "ui/tournamentSchedule",
"ui/tournamentCalendar", "ui/tournamentCalendar",
"ui/tree", "ui/tree",
"ui/@build/tsProject",
"ui/@types/lichess" "ui/@types/lichess"
] ]
} }

View File

@ -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"
}
}

View File

@ -1,4 +1,4 @@
const lilaGulp = require('../gulp/tsProject.js'); const lilaGulp = require('@build/tsProject');
const lilaGulpPlugins = require('../gulp/tsPlugins.js'); const lilaGulpPlugins = require('../gulp/tsPlugins.js');
lilaGulp('LichessAnalyse', 'lichess.analyse', __dirname); lilaGulp('LichessAnalyse', 'lichess.analyse', __dirname);

View File

@ -22,18 +22,9 @@
}, },
"homepage": "https://github.com/ornicar/lila", "homepage": "https://github.com/ornicar/lila",
"devDependencies": { "devDependencies": {
"@build/tsProject": "^2",
"@types/jquery": "^2.0", "@types/jquery": "^2.0",
"@types/lichess": "1.0.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"
}, },
"dependencies": { "dependencies": {
"ceval": "1.0.0", "ceval": "1.0.0",

View File

@ -1,2 +1,2 @@
require('../gulp/tsProject.js')('LichessChallenge', 'lichess.challenge', __dirname); require('@build/tsProject')('LichessChallenge', 'lichess.challenge', __dirname);
require('../gulp/cssProject.js')(__dirname); require('../gulp/cssProject.js')(__dirname);

View File

@ -8,17 +8,8 @@
"snabbdom": "ornicar/snabbdom#0.7.1-lichess" "snabbdom": "ornicar/snabbdom#0.7.1-lichess"
}, },
"devDependencies": { "devDependencies": {
"@build/tsProject": "^2",
"@types/jquery": "^2.0", "@types/jquery": "^2.0",
"@types/lichess": "1.0.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"
} }
} }

View File

@ -1,3 +1,3 @@
const lilaGulp = require('../gulp/tsProject.js'); const lilaGulp = require('@build/tsProject');
lilaGulp('LichessChat', 'lichess.chat', __dirname); lilaGulp('LichessChat', 'lichess.chat', __dirname);

View File

@ -13,17 +13,8 @@
"snabbdom": "ornicar/snabbdom#0.7.1-lichess" "snabbdom": "ornicar/snabbdom#0.7.1-lichess"
}, },
"devDependencies": { "devDependencies": {
"@build/tsProject": "^2",
"@types/jquery": "^2.0", "@types/jquery": "^2.0",
"@types/lichess": "1.0.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"
} }
} }

View File

@ -1,3 +1,3 @@
const lilaGulp = require('../gulp/tsProject.js'); const lilaGulp = require('@build/tsProject');
lilaGulp('LichessCli', 'lichess.cli', __dirname); lilaGulp('LichessCli', 'lichess.cli', __dirname);

View File

@ -6,17 +6,8 @@
"license": "AGPL-3.0", "license": "AGPL-3.0",
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"@build/tsProject": "^2",
"@types/jquery": "^2.0", "@types/jquery": "^2.0",
"@types/lichess": "1.0.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"
} }
} }

View File

@ -1,3 +1,3 @@
require('../gulp/tsProject.js')('LichessDasher', 'lichess.dasher', __dirname); require('@build/tsProject')('LichessDasher', 'lichess.dasher', __dirname);
require('../gulp/cssProject.js')(__dirname); require('../gulp/cssProject.js')(__dirname);

View File

@ -8,18 +8,9 @@
"snabbdom": "ornicar/snabbdom#0.7.1-lichess" "snabbdom": "ornicar/snabbdom#0.7.1-lichess"
}, },
"devDependencies": { "devDependencies": {
"@build/tsProject": "^2",
"@types/jquery": "^2.0", "@types/jquery": "^2.0",
"@types/jqueryui": "^1.11", "@types/jqueryui": "^1.11",
"@types/lichess": "1.0.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"
} }
} }

View File

@ -1,3 +1,3 @@
const lilaGulp = require('../gulp/tsProject.js'); const lilaGulp = require('@build/tsProject');
lilaGulp('LichessLobby', 'lichess.lobby', __dirname); lilaGulp('LichessLobby', 'lichess.lobby', __dirname);

View File

@ -20,18 +20,9 @@
}, },
"homepage": "https://github.com/ornicar/lila", "homepage": "https://github.com/ornicar/lila",
"devDependencies": { "devDependencies": {
"@build/tsProject": "^2",
"@types/jquery": "^2.0", "@types/jquery": "^2.0",
"@types/lichess": "1.0.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"
}, },
"dependencies": { "dependencies": {
"chessground": "^7.6", "chessground": "^7.6",

View File

@ -1,3 +1,3 @@
require('../gulp/tsProject.js')('LichessNotify', 'lichess.notify', __dirname); require('@build/tsProject')('LichessNotify', 'lichess.notify', __dirname);
require('../gulp/cssProject.js')(__dirname); require('../gulp/cssProject.js')(__dirname);

View File

@ -8,17 +8,8 @@
"snabbdom": "ornicar/snabbdom#0.7.1-lichess" "snabbdom": "ornicar/snabbdom#0.7.1-lichess"
}, },
"devDependencies": { "devDependencies": {
"@build/tsProject": "^2",
"@types/jquery": "^2.0", "@types/jquery": "^2.0",
"@types/lichess": "1.0.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"
} }
} }

View File

@ -1,3 +1,3 @@
const lilaGulp = require('../gulp/tsProject.js'); const lilaGulp = require('@build/tsProject');
lilaGulp('Palantir', 'lichess.palantir', __dirname); lilaGulp('Palantir', 'lichess.palantir', __dirname);

View File

@ -23,8 +23,8 @@
"compile": "../../node_modules/typescript/bin/tsc" "compile": "../../node_modules/typescript/bin/tsc"
}, },
"devDependencies": { "devDependencies": {
"@types/lichess": "1.0.0", "@build/tsProject": "^2",
"typescript": "^3" "@types/lichess": "1.0.0"
}, },
"dependencies": { "dependencies": {
"@types/webrtc": "^0.0.25" "@types/webrtc": "^0.0.25"

View File

@ -1,3 +1,3 @@
const lilaGulp = require('../gulp/tsProject.js'); const lilaGulp = require('@build/tsProject');
lilaGulp('LichessPuzzle', 'lichess.puzzle', __dirname); lilaGulp('LichessPuzzle', 'lichess.puzzle', __dirname);

View File

@ -20,18 +20,9 @@
}, },
"homepage": "https://github.com/ornicar/lila", "homepage": "https://github.com/ornicar/lila",
"devDependencies": { "devDependencies": {
"@build/tsProject": "^2",
"@types/jquery": "^2.0", "@types/jquery": "^2.0",
"@types/lichess": "1.0.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"
}, },
"dependencies": { "dependencies": {
"ceval": "1.0.0", "ceval": "1.0.0",

View File

@ -1,4 +1,4 @@
const lilaGulp = require('../gulp/tsProject.js'); const lilaGulp = require('@build/tsProject');
const lilaGulpPlugins = require('../gulp/tsPlugins.js'); const lilaGulpPlugins = require('../gulp/tsPlugins.js');
lilaGulp('LichessRound', 'lichess.round', __dirname); lilaGulp('LichessRound', 'lichess.round', __dirname);

View File

@ -20,17 +20,8 @@
}, },
"homepage": "https://github.com/ornicar/lila", "homepage": "https://github.com/ornicar/lila",
"devDependencies": { "devDependencies": {
"@types/lichess": "1.0.0", "@build/tsProject": "^2",
"browserify": "^16", "@types/lichess": "1.0.0"
"fancy-log": "^1",
"gulp": "^4",
"gulp-size": "^3",
"gulp-terser": "^1",
"tsify": "^4",
"typescript": "^3",
"vinyl-source-stream": "^2",
"vinyl-buffer": "^1",
"watchify": "^3"
}, },
"dependencies": { "dependencies": {
"chat": "2.0.0", "chat": "2.0.0",

View File

@ -1,3 +1,3 @@
const lilaGulp = require('../gulp/tsProject.js'); const lilaGulp = require('@build/tsProject');
lilaGulp(undefined, 'lichess.serviceWorker', __dirname); lilaGulp(undefined, 'lichess.serviceWorker', __dirname);

View File

@ -5,15 +5,6 @@
"author": "Thibault Duplessis", "author": "Thibault Duplessis",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"devDependencies": { "devDependencies": {
"browserify": "^16", "@build/tsProject": "^2"
"fancy-log": "^1",
"gulp": "^4",
"gulp-size": "^3",
"gulp-terser": "^1",
"tsify": "^4",
"typescript": "^3",
"vinyl-source-stream": "^2",
"vinyl-buffer": "^1",
"watchify": "^3"
} }
} }

View File

@ -1,3 +1,3 @@
const lilaGulp = require('../gulp/tsProject.js'); const lilaGulp = require('@build/tsProject');
lilaGulp('LichessSpeech', 'lichess.speech', __dirname); lilaGulp('LichessSpeech', 'lichess.speech', __dirname);

View File

@ -25,8 +25,8 @@
"compile": "../../node_modules/typescript/bin/tsc" "compile": "../../node_modules/typescript/bin/tsc"
}, },
"devDependencies": { "devDependencies": {
"@types/lichess": "1.0.0", "@build/tsProject": "^2",
"typescript": "^3" "@types/lichess": "1.0.0"
}, },
"dependencies": { "dependencies": {
} }

View File

@ -1,3 +1,3 @@
require('../gulp/tsProject.js')('LichessTournament', 'lichess.tournament', __dirname); require('@build/tsProject')('LichessTournament', 'lichess.tournament', __dirname);
require('../gulp/cssProject.js')(__dirname); require('../gulp/cssProject.js')(__dirname);

View File

@ -19,18 +19,9 @@
}, },
"homepage": "https://github.com/ornicar/lila", "homepage": "https://github.com/ornicar/lila",
"devDependencies": { "devDependencies": {
"@build/tsProject": "^2",
"@types/jquery": "^2.0", "@types/jquery": "^2.0",
"@types/lichess": "1.0.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"
}, },
"dependencies": { "dependencies": {
"chat": "2.0.0", "chat": "2.0.0",

View File

@ -1,3 +1,3 @@
const lilaGulp = require('../gulp/tsProject.js'); const lilaGulp = require('@build/tsProject');
lilaGulp('LichessTournamentCalendar', 'lichess.tournamentCalendar', __dirname); lilaGulp('LichessTournamentCalendar', 'lichess.tournamentCalendar', __dirname);

View File

@ -20,18 +20,9 @@
}, },
"homepage": "https://github.com/ornicar/lila", "homepage": "https://github.com/ornicar/lila",
"devDependencies": { "devDependencies": {
"@build/tsProject": "^2",
"@types/jquery": "^2.0", "@types/jquery": "^2.0",
"@types/lichess": "1.0.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"
}, },
"dependencies": { "dependencies": {
"snabbdom": "ornicar/snabbdom#0.7.1-lichess", "snabbdom": "ornicar/snabbdom#0.7.1-lichess",

View File

@ -1,3 +1,3 @@
const lilaGulp = require('../gulp/tsProject.js'); const lilaGulp = require('@build/tsProject');
lilaGulp('LichessTournamentSchedule', 'lichess.tournamentSchedule', __dirname); lilaGulp('LichessTournamentSchedule', 'lichess.tournamentSchedule', __dirname);

View File

@ -20,18 +20,9 @@
}, },
"homepage": "https://github.com/ornicar/lila", "homepage": "https://github.com/ornicar/lila",
"devDependencies": { "devDependencies": {
"@build/tsProject": "^2",
"@types/jquery": "^2.0", "@types/jquery": "^2.0",
"@types/lichess": "1.0.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"
}, },
"dependencies": { "dependencies": {
"dragscroll": "^0.0.8", "dragscroll": "^0.0.8",

View File

@ -126,7 +126,7 @@ amdefine@>=0.0.4:
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
integrity sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU= 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" version "1.1.0"
resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-1.1.0.tgz#6374b4dd5d4718ff3ce27a671a3b1cad077132a9" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-1.1.0.tgz#6374b4dd5d4718ff3ce27a671a3b1cad077132a9"
integrity sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA== integrity sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==