mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
18 lines
447 B
JavaScript
18 lines
447 B
JavaScript
|
const fs = require('fs-extra');
|
||
|
const path = require('path');
|
||
|
|
||
|
const clientFiles = [
|
||
|
'server/web/admin/views/default.html',
|
||
|
'built/assets/ghost.js',
|
||
|
'built/assets/ghost.css',
|
||
|
'built/assets/vendor.js',
|
||
|
'built/assets/vendor.css'
|
||
|
];
|
||
|
|
||
|
module.exports.stubClientFiles = () => {
|
||
|
clientFiles.forEach((file) => {
|
||
|
const filePath = path.resolve(__dirname, '../../core/', file);
|
||
|
fs.ensureFileSync(filePath);
|
||
|
});
|
||
|
};
|