Ghost/ghost/admin/lib/asset-delivery/index.js
Austin Burdine 8332201026 updates Ember-CLI to 0.2.7
No issue
- moves the authentication initializer to be an instance initializer
- updates dependencies
- fixes error with asset-delivery not copying
- fixes problem with testing by re-building ember before casper tests
2015-06-08 09:18:50 -04:00

17 lines
548 B
JavaScript

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);
}
};