1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/lib/asset-delivery/index.js
Austin Burdine 7763e9bdc6 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);
}
};