-
Notifications
You must be signed in to change notification settings - Fork 29
/
index.js
32 lines (27 loc) · 876 Bytes
/
index.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
/* jshint node: true */
'use strict';
var fs = require('fs');
var path = require('path');
var Funnel = require('broccoli-funnel');
module.exports = {
name: 'ember-cli-photoswipe',
included: function(app) {
this.app = app;
var psDir = app.bowerDirectory + '/photoswipe';
if (!process.env.EMBER_CLI_FASTBOOT) {
app.import(psDir + '/dist/photoswipe.css');
app.import(psDir + '/dist/default-skin/default-skin.css');
app.import(psDir + '/dist/photoswipe.js');
app.import(psDir + '/dist/photoswipe-ui-default.min.js');
}
},
treeForPublic: function() {
var svgPath = path.join(this.app.bowerDirectory, 'photoswipe', 'dist', 'default-skin');
var publicTree = new Funnel(this.treeGenerator(svgPath), {
srcDir: '/',
destDir: '/assets',
exclude: ['default-skin.css']
});
return publicTree;
}
};