-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
49 lines (47 loc) · 1.89 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/** Gruntfile for [ludorum.js](http://github.com/LeonardoVal/ludorum.js).
*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
});
require('@creatartis/creatartis-grunt').config(grunt, {
sourceNames: ['__prologue__',
'Game', 'Player', 'Match', 'Contingent', 'Tournament',
// utils.
'utils/Checkerboard', 'utils/CheckerboardFromString', 'utils/CheckerboardFromPieces',
'utils/Cache', 'utils/GameTree',
// players.
'players/RandomPlayer', 'players/TracePlayer', 'players/HeuristicPlayer', 'players/MaxNPlayer',
'players/MiniMaxPlayer', 'players/AlphaBetaPlayer', 'players/MonteCarloPlayer',
'players/UCTPlayer', 'players/RuleBasedPlayer', 'players/EnsemblePlayer',
'players/UserInterfacePlayer', 'players/WebWorkerPlayer',
// aleatories.
'aleatories/Aleatory', 'aleatories/DieAleatory', 'aleatories/aleatories',
// games.
'games/Predefined', 'games/Choose2Win', 'games/ConnectionGame', 'games/OddsAndEvens',
'games/TicTacToe', 'games/ToadsAndFrogs', 'games/Pig', 'games/Mutropas',
'games/Bahab', 'games/Puzzle15',
// tournaments.
'tournaments/RoundRobin', 'tournaments/Measurement', 'tournaments/Elimination',
'__epilogue__'],
deps: [
{ id: 'creatartis-base', name: 'base' },
{ id: 'sermat', name: 'Sermat', path: 'node_modules/sermat/build/sermat-umd-min.js' },
{ id: 'playtester', path: 'build/playtester-common.js',
dev: true, module: false }
],
copy: {
'build/': 'src/playtester-common.js'
},
perf: true,
connect: {
console: 'tests/console.html',
bahab: 'tests/bahab.html',
tictactoe: 'tests/tictactoe.html'
}
});
grunt.registerTask('default', ['build']);
grunt.registerTask('console', ['compile', 'docker:build', 'connect:console']);
grunt.registerTask('bahab', ['compile', 'connect:bahab']);
grunt.registerTask('tictactoe', ['compile', 'connect:tictactoe']);
};