mirror of
https://github.com/TryGhost/Ghost.git
synced 2023-12-13 21:00:40 +01:00
Enabled --adminx
by default
refs https://ghost.slack.com/archives/C0568LN2CGJ/p1695897183996699 - Admin-X Settings is soon due to be the official new settings, so we should always ensure it's running for developers
This commit is contained in:
parent
63ac90c603
commit
95ec7b5016
1 changed files with 10 additions and 12 deletions
22
.github/scripts/dev.js
vendored
22
.github/scripts/dev.js
vendored
|
@ -50,22 +50,20 @@ const COMMAND_TYPESCRIPT = {
|
|||
env: {}
|
||||
};
|
||||
|
||||
const COMMAND_ADMINX = {
|
||||
name: 'adminX',
|
||||
command: 'yarn dev',
|
||||
cwd: path.resolve(__dirname, '../../apps/admin-x-settings'),
|
||||
prefixColor: '#C35831',
|
||||
env: {}
|
||||
};
|
||||
|
||||
if (DASH_DASH_ARGS.includes('ghost')) {
|
||||
commands = [COMMAND_GHOST, COMMAND_TYPESCRIPT];
|
||||
} else if (DASH_DASH_ARGS.includes('admin')) {
|
||||
commands = [COMMAND_ADMIN];
|
||||
commands = [COMMAND_ADMIN, COMMAND_ADMINX];
|
||||
} else {
|
||||
commands = [COMMAND_GHOST, COMMAND_TYPESCRIPT, COMMAND_ADMIN];
|
||||
}
|
||||
|
||||
if (DASH_DASH_ARGS.includes('admin-x') || DASH_DASH_ARGS.includes('adminx') || DASH_DASH_ARGS.includes('adminX') || DASH_DASH_ARGS.includes('all')) {
|
||||
commands.push({
|
||||
name: 'adminX',
|
||||
command: 'yarn dev',
|
||||
cwd: path.resolve(__dirname, '../../apps/admin-x-settings'),
|
||||
prefixColor: '#C35831',
|
||||
env: {}
|
||||
});
|
||||
commands = [COMMAND_GHOST, COMMAND_TYPESCRIPT, COMMAND_ADMIN, COMMAND_ADMINX];
|
||||
}
|
||||
|
||||
if (DASH_DASH_ARGS.includes('portal') || DASH_DASH_ARGS.includes('all')) {
|
||||
|
|
Loading…
Reference in a new issue