0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/lib/asset-delivery/index.js

17 lines
548 B
JavaScript
Raw Normal View History

module.exports = {
name: 'asset-delivery',
postBuild: function (results) {
var fs = this.project.require('fs-extra'),
cpd = this.project.require('ember-cli-copy-dereference'),
templateOut = '../server/views/default.hbs',
assetsOut = '../built/assets';
fs.removeSync(templateOut);
fs.removeSync(assetsOut);
fs.ensureDirSync(assetsOut);
cpd.sync(results.directory + '/index.html', templateOut);
cpd.sync(results.directory + '/assets', assetsOut);
}
};