mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
34 lines
923 B
JavaScript
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');
|
|
}
|
|
};
|