Skip to content
This repository was archived by the owner on Mar 10, 2023. It is now read-only.

Commit b97ba11

Browse files
committed
Move default pages back into the gatsby generator package
1 parent 1b50cae commit b97ba11

File tree

23 files changed

+57
-43
lines changed

23 files changed

+57
-43
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ scratchings.js
2424
/packages/gatsby-generator/static/favicon.ico
2525
/packages/gatsby-generator/typings
2626

27+
/packages/pipeline-stages/data
28+
2729
/packages/**/bundles
2830
/packages/gatsby-generator/public
2931
/packages/**/**/yarn.lock

packages/file-viewer/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
],
1111
"author": "Peter Yu",
1212
"license": "MIT",
13-
"files": ["dist"],
13+
"files": [
14+
"dist"
15+
],
1416
"peerDependencies": {
1517
"react": "16.10.2",
1618
"react-dom": "^16.8.4"

packages/gatsby-generator/src/pipeline/buildPagesPipeline.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ import {
77
import allPaths from './getAllPaths';
88

99
const buildPipeline = async (configPath?: string) => {
10-
const { rootPath, wrappersPath, pagesPath, pkgRoot, config } = await allPaths(
11-
configPath,
12-
);
10+
const {
11+
rootPath,
12+
wrappersPath,
13+
pagesPath,
14+
pkgRoot,
15+
config,
16+
defaultPagesPath,
17+
} = await allPaths(configPath);
1318

1419
return scanMetadataStage({
1520
rootPath,
@@ -23,6 +28,7 @@ const buildPipeline = async (configPath?: string) => {
2328
generatePagesStage({
2429
wrappersPath,
2530
pagesPath,
31+
defaultPagesPath,
2632
packageRoot: pkgRoot,
2733
...websiteInfo,
2834
...config,

packages/gatsby-generator/src/pipeline/buildPipeline.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@ const buildPipeline = async (
1313
configPath?: string,
1414
gatsbyOptions: string[] = [],
1515
) => {
16-
const { rootPath, wrappersPath, pagesPath, pkgRoot, config } = await allPaths(
17-
configPath,
18-
);
16+
const {
17+
rootPath,
18+
wrappersPath,
19+
pagesPath,
20+
pkgRoot,
21+
config,
22+
defaultPagesPath,
23+
} = await allPaths(configPath);
1924

2025
return scanMetadataStage({
2126
rootPath,
@@ -29,6 +34,7 @@ const buildPipeline = async (
2934
generatePagesStage({
3035
wrappersPath,
3136
pagesPath,
37+
defaultPagesPath,
3238
packageRoot: pkgRoot,
3339
...websiteInfo,
3440
...config,

packages/gatsby-generator/src/pipeline/devPipeline.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ import runGatsby from './stages/run-gatsby';
77
import allPaths from './getAllPaths';
88

99
const devPipeline = async (configPath?: string, gatsbyOptions?: string[]) => {
10-
const { rootPath, wrappersPath, pagesPath, pkgRoot, config } = await allPaths(
11-
configPath,
12-
);
10+
const {
11+
rootPath,
12+
wrappersPath,
13+
pagesPath,
14+
pkgRoot,
15+
config,
16+
defaultPagesPath,
17+
} = await allPaths(configPath);
1318

1419
return scanMetadataStage({
1520
rootPath,
@@ -23,6 +28,7 @@ const devPipeline = async (configPath?: string, gatsbyOptions?: string[]) => {
2328
generatePagesStage({
2429
wrappersPath,
2530
pagesPath,
31+
defaultPagesPath,
2632
packageRoot: pkgRoot,
2733
...websiteInfo,
2834
...config,

0 commit comments

Comments
 (0)