const gulp = require('gulp');
const shell = require('gulp-shell');
const path = require('path');

const config = {
	staticCdn: 'https://s.gjcdn.net',
	injectVersion: 2,
	sections: {
		app: {
			title: 'Game Jolt - Games for the love of it',
			server: true,
			client: true,
			crawl: true,
			offline: true,
			webAppManifest: {
				name: 'Game Jolt',
				short_name: 'Game Jolt',
				description: 'Games for the love of it!',
				background_color: '#191919',
				theme_color: '#191919',
				display: 'standalone',
				start_url: './?utm_source=web_app_manifest',
				icons: [
					{
						src: 'icon-128x128.png',
						size: 128,
					},
					{
						src: 'icon-144x144.png',
						size: 144,
					},
					{
						src: 'chrome-touch-icon-192x192.png',
						size: 192,
					},
				],
			},
		},
		auth: {
			title: 'Game Jolt - Games for the love of it',
			server: true,
			client: true,
			crawl: true,
			bodyClass: 'fill-darkest',
		},
		claim: {
			title: 'Claim - Game Jolt',
		},
		'site-editor': {
			title: 'Edit Site - Game Jolt',
		},
		gameserver: {
			title: 'Playing Game - Game Jolt',
		},
		client: {
			title: 'Game Jolt',
			client: true,
			bodyClass: 'fill-darkest',
		},
		'widget-package': {
			title: 'Get Game from Game Jolt',
		},
		z: {
			title: 'Game Jolt - Games for the love of it',
			bodyClass: 'main-body',
		},
	},
	translations: 'site-translations',
	translationSections: {
		auth: ['auth/'],
		dash: [
			'app/components/forms/dashboard',
			'app/components/forms/site-analytics',
			'app/views/dashboard',
		],
		checkout: ['checkout/'],
		claim: ['claim/'],
	},
};

require('./gulp/tasks/common')(config, __dirname);
