From c9c31cd04a09030f6d61d91f4e163402094459ba Mon Sep 17 00:00:00 2001 From: atanasster Date: Thu, 13 May 2021 11:22:42 +0300 Subject: [PATCH] feat: enable testing and design ages by default --- core/core/src/configuration.ts | 4 +++- examples/gatsby/.config/buildtime.ts | 5 ----- examples/nextjs/.config/buildtime.js | 5 ----- examples/react-webpack-5/.config/buildtime.js | 5 ----- examples/react-webpack/.config/buildtime.js | 5 ----- 5 files changed, 3 insertions(+), 21 deletions(-) diff --git a/core/core/src/configuration.ts b/core/core/src/configuration.ts index e7426c98e..a34a19aa2 100644 --- a/core/core/src/configuration.ts +++ b/core/core/src/configuration.ts @@ -393,7 +393,9 @@ export const defaultBuildConfig: BuildConfiguration = { collapseSingle: true, }, tabs: { - page: require.resolve('@component-controls/pages/ClassicPage'), + page: '@component-controls/pages/ClassicPage', + test: '@component-controls/pages/TestingPage', + design: '@component-controls/pages/DesignPage', }, }, blog: { diff --git a/examples/gatsby/.config/buildtime.ts b/examples/gatsby/.config/buildtime.ts index 8df97ebc8..aed445af2 100644 --- a/examples/gatsby/.config/buildtime.ts +++ b/examples/gatsby/.config/buildtime.ts @@ -45,11 +45,6 @@ const config: BuildConfiguration = { pages: { story: { basePath: 'api/', - tabs: { - page: '@component-controls/pages/ClassicPage', - test: '@component-controls/pages/TestingPage', - design: '@component-controls/pages/DesignPage', - }, }, tutorial: { basePath: 'tutorial/', diff --git a/examples/nextjs/.config/buildtime.js b/examples/nextjs/.config/buildtime.js index 0d4f31952..c556102be 100644 --- a/examples/nextjs/.config/buildtime.js +++ b/examples/nextjs/.config/buildtime.js @@ -44,11 +44,6 @@ module.exports = { pages: { story: { basePath: 'api/', - tabs: { - page: '@component-controls/pages/ClassicPage', - test: '@component-controls/pages/TestingPage', - design: '@component-controls/pages/DesignPage', - }, }, tutorial: { basePath: 'tutorial/', diff --git a/examples/react-webpack-5/.config/buildtime.js b/examples/react-webpack-5/.config/buildtime.js index 79cb3aaab..da6a32c8f 100644 --- a/examples/react-webpack-5/.config/buildtime.js +++ b/examples/react-webpack-5/.config/buildtime.js @@ -44,11 +44,6 @@ module.exports = { pages: { story: { basePath: 'api/', - tabs: { - page: '@component-controls/pages/ClassicPage', - test: '@component-controls/pages/TestingPage', - design: '@component-controls/pages/DesignPage', - }, }, tutorial: { basePath: 'tutorial/', diff --git a/examples/react-webpack/.config/buildtime.js b/examples/react-webpack/.config/buildtime.js index 79cb3aaab..da6a32c8f 100644 --- a/examples/react-webpack/.config/buildtime.js +++ b/examples/react-webpack/.config/buildtime.js @@ -44,11 +44,6 @@ module.exports = { pages: { story: { basePath: 'api/', - tabs: { - page: '@component-controls/pages/ClassicPage', - test: '@component-controls/pages/TestingPage', - design: '@component-controls/pages/DesignPage', - }, }, tutorial: { basePath: 'tutorial/',