mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
3d989eba23
refs https://github.com/TryGhost/Toolbox/issues/354 - this commit turns the Ghost repo into a monorepo so we can bring our internal packages back in, which makes life easier when working on Ghost
18 lines
444 B
JavaScript
18 lines
444 B
JavaScript
const fs = require('fs-extra');
|
|
const path = require('path');
|
|
|
|
const adminFiles = [
|
|
'server/web/admin/views/default.html',
|
|
'built/assets/ghost.js',
|
|
'built/assets/ghost.css',
|
|
'built/assets/vendor.js',
|
|
'built/assets/vendor.css'
|
|
];
|
|
|
|
module.exports.stubAdminFiles = () => {
|
|
adminFiles.forEach((file) => {
|
|
const filePath = path.resolve(__dirname, '../../core/', file);
|
|
fs.ensureFileSync(filePath);
|
|
});
|
|
};
|