3 var Builder = require('node-spritesheet').Builder;
4 var services = require('@gitterhq/services');
5 var fse = require('fs-extra');
9 Object.keys(services).forEach(function(serviceKey) {
10 var service = services[serviceKey];
11 Object.keys(service.icons).map(function(iconKey) {
12 var icon = service.icons[iconKey];
16 __dirname + '/../output/temp-sprites/' + serviceKey + '-' + iconKey + '.png'
18 legacyImages.push(__dirname + '/../output/temp-sprites/' + serviceKey + '-' + iconKey + '.png');
21 __dirname + '/../output/temp-sprites/' + serviceKey + '-' + iconKey + '@2x.png'
24 __dirname + '/../output/temp-sprites/' + serviceKey + '-' + iconKey + '@2x.png'
29 var builder = new Builder({
30 outputDirectory: __dirname + '/../public/sprites',
31 outputCss: 'services.css',
32 selector: '.service-sprite',
33 filter: function(stupid_library_doesnt_work_unless_I_add_a_filter) {
34 return stupid_library_doesnt_work_unless_I_add_a_filter;
38 builder.addConfiguration('default', {
41 outputImage: 'services.png'
44 builder.addConfiguration('retina', {
47 outputImage: 'services@2x.png'
50 builder.build(function() {});