Package.describe({
    name: 'johndyer:mediaelement',
    summary: '*Official* MediaElement.js: <video> and <audio> made easy. One file. Any browser. Same UI.',
    version: '7.0.7',
    git: 'https://github.com/mediaelement/mediaelement'
});

Package.onUse(function(api) {
    api.versionsFrom('1.0');
    api.use('jquery', 'client');

    var assets = [
        'build/lang/ca.js',
        'build/lang/cs.js',
        'build/lang/de.js',
        'build/lang/es.js',
        'build/lang/fa.js',
        'build/lang/fr.js',
        'build/lang/hr.js',
        'build/lang/hu.js',
        'build/lang/it.js',
        'build/lang/ja.js',
        'build/lang/ko.js',
        'build/lang/ms.js',
        'build/lang/nl.js',
        'build/lang/pl.js',
        'build/lang/pt.js',
        'build/lang/ro.js',
        'build/lang/ru.js',
        'build/lang/sk.js',
        'build/lang/sv.js',
        'build/lang/uk.js',
        'build/lang/zh.js',
        'build/lang/zh-cn.js',
        'build/renderers/dailymotion.js',
        'build/renderers/facebook.js',
        'build/renderers/soundcloud.js',
        'build/renderers/twitch.js',
        'build/renderers/vimeo.js',
        'build/mejs-controls.svg',
        'build/mejs-controls.png',
    ];

    if (api.addAssets) {
        api.addAssets(assets, 'client');
    } else {
        api.addFiles(assets, 'client', { isAsset: true });
    }

    api.addFiles([
        'build/mediaelement-and-player.js',
        'build/mediaelementplayer.css',
        'build/mediaelementplayer-legacy.css'
    ], 'client');

});
