allow filtering out obsolete games
This commit is contained in:
parent
d2fcdfc825
commit
3a034e5880
|
@ -66,6 +66,7 @@ Notes:
|
|||
- using `gulp build watch` instead of `gulp build` makes *gulp* start watching files after the build. Whenever a file is changed, a build is automatically generated
|
||||
- you can use `--no-default-games` to prevent including the game modules from directory, and `--modules <colon-separated-directories>` to specify additional game modules to include. For instance, `gulp --no-default-games --modules src/games/chessbase:src/games/checkers build` will only generate distribution for Chess and checkers games
|
||||
- you can specify the games to be built in the distribution with the `--games` option. For instance, `gulp --no-default-games --modules src/games --games xiangqi:classic-chess build` only generates Jocly for Classic Chess and XiangQi
|
||||
- using the `no-obsolete` option filters out the games marked as obsolete
|
||||
|
||||
API Documentation
|
||||
-----------------
|
||||
|
|
|
@ -75,6 +75,8 @@ function HandleModuleGames(modelOnly) {
|
|||
|
||||
if (exclusiveGames && !exclusiveGames[game.name])
|
||||
return;
|
||||
if (typeof argv.obsolete != "undefined" && !argv.obsolete && game.config.model.obsolete)
|
||||
return;
|
||||
|
||||
// same some game data so we can list all games later
|
||||
allGames[game.name] = {
|
||||
|
@ -365,6 +367,7 @@ options:
|
|||
--no-default-games: do not process game module from default src/games directory
|
||||
--modules <modules>: process additional game modules from specified directories (colon separated)
|
||||
--games <games>: process exclusively the specified games (colon separated)
|
||||
--no-obsolete: do not include games marked as obsolete
|
||||
`;
|
||||
console.log(help);
|
||||
process.exit(0);
|
||||
|
|
Loading…
Reference in a new issue