2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Improved DX when working with collections

This was missing from the initial package creation, adding the command here
means that `yarn dev` in the top level will watch and build collections
This commit is contained in:
Fabien "egg" O'Carroll 2023-06-16 10:06:23 +02:00 committed by Fabien 'egg' O'Carroll
parent e9595d9a4b
commit eee5eed6e2

10
.github/dev.js vendored
View file

@ -67,6 +67,16 @@ if (DASH_DASH_ARGS.includes('in-memory-repository') || DASH_DASH_ARGS.includes('
});
}
if (DASH_DASH_ARGS.includes('collections') || DASH_DASH_ARGS.includes('all')) {
commands.push({
name: 'collections',
command: 'yarn dev',
cwd: path.resolve(__dirname, '../ghost/collections'),
prefixColor: 'pink',
env: {}
});
}
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',