mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
8332201026
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
17 lines
548 B
JavaScript
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);
|
|
}
|
|
};
|