File tree 2 files changed +12
-13
lines changed
packages/gatsby/src/services
2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ export async function createPages({
21
21
activity . start ( )
22
22
const timestamp = Date . now ( )
23
23
const currentPages = new Map < string , IGatsbyPage > ( store . getState ( ) . pages )
24
-
25
24
await apiRunnerNode (
26
25
`createPages` ,
27
26
{
@@ -33,13 +32,21 @@ export async function createPages({
33
32
} ,
34
33
{ activity }
35
34
)
35
+
36
+ reporter . info (
37
+ `Total nodes: ${ store . getState ( ) . nodes . size } , SitePage nodes: ${
38
+ store . getState ( ) . nodesByType ?. get ( `SitePage` ) ?. size
39
+ } (use --verbose for breakdown)`
40
+ )
41
+
36
42
reporter . verbose (
37
- `Now have ${ store . getState ( ) . nodes . size } nodes with ${
43
+ `Number of node types: ${
38
44
store . getState ( ) . nodesByType . size
39
- } types, and ${
40
- store . getState ( ) . nodesByType ?. get ( `SitePage` ) ? .size
41
- } SitePage nodes `
45
+ } . Nodes per type: ${ [ ... store . getState ( ) . nodesByType . entries ( ) ]
46
+ . map ( ( [ type , nodes ] ) => type + `: ` + nodes . size )
47
+ . join ( `, ` ) } `
42
48
)
49
+
43
50
activity . end ( )
44
51
45
52
reporter . verbose ( `Checking for deleted pages` )
Original file line number Diff line number Diff line change @@ -27,14 +27,6 @@ export async function sourceNodes({
27
27
webhookBody,
28
28
} )
29
29
30
- reporter . verbose (
31
- `Now have ${ store . getState ( ) . nodes . size } nodes with ${
32
- store . getState ( ) . nodesByType . size
33
- } types: [${ [ ...store . getState ( ) . nodesByType . entries ( ) ]
34
- . map ( ( [ type , nodes ] ) => type + `:` + nodes . size )
35
- . join ( `, ` ) } ]`
36
- )
37
-
38
30
reporter . verbose ( `Checking for deleted pages` )
39
31
40
32
const tim = reporter . activityTimer ( `Checking for changed pages` )
You can’t perform that action at this time.
0 commit comments