Ghost/ghost/admin/lib/gh-koenig/index.js
2017-03-02 09:56:52 +00:00

34 lines
923 B
JavaScript

/* jshint node: true */
var MergeTrees = require('broccoli-merge-trees');
var Funnel = require('broccoli-funnel');
var path = require('path');
module.exports = {
name: 'gh-koenig',
treeForVendor: function () {
var files = [];
var MOBILEDOC_DIST_DIRECTORY = path.join(path.dirname(
require.resolve(path.join('mobiledoc-kit', 'package.json'))), 'dist');
files.push(new Funnel(MOBILEDOC_DIST_DIRECTORY, {
files: [
'amd/mobiledoc-kit.js',
'amd/mobiledoc-kit.map'
],
destDir: 'mobiledoc-kit'
}));
return MergeTrees(files, 'assets');
},
treeForPublic: function () {
return new Funnel(__dirname + '/public/tools/', {
destDir: 'assets/tools/'
});
},
included: function (app) {
app.import('vendor/mobiledoc-kit/amd/mobiledoc-kit.js');
}
};