mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05: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:
parent
e9595d9a4b
commit
eee5eed6e2
1 changed files with 10 additions and 0 deletions
10
.github/dev.js
vendored
10
.github/dev.js
vendored
|
@ -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')) {
|
if (DASH_DASH_ARGS.includes('admin-x') || DASH_DASH_ARGS.includes('adminx') || DASH_DASH_ARGS.includes('adminX') || DASH_DASH_ARGS.includes('all')) {
|
||||||
commands.push({
|
commands.push({
|
||||||
name: 'adminX',
|
name: 'adminX',
|
||||||
|
|
Loading…
Add table
Reference in a new issue