Ghost/test/utils/admin-utils.js
Hannah Wolfe 8ec8a21b71
Renamed "client" references to "admin"
refs: https://github.com/TryGhost/Toolbox/issues/299

- renamed lots of things that reference Ghost admin as "client"
- these things make even less sense in a post core/client world
2022-05-17 09:05:44 +01: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);
});
};