mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +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);
|
||
|
});
|
||
|
};
|