Ghost/ghost/core/test/utils/admin-utils.js
Daniel Lockyer 3d989eba23 Converted Ghost repo into a monorepo
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
2022-07-20 16:41:05 +02:00

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);
});
};