File tree Expand file tree Collapse file tree
plugins/generate-shared-code Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -603,21 +603,29 @@ if (existsSync(rootLanguageDirectory)) {
603603 }
604604}
605605
606+ const patterns : string [ ] = [
607+ // default patterns
608+ '**/*.md' ,
609+ '!.vuepress' ,
610+ '!node_modules' ,
611+ // exclude pages that start with _ and end with .md
612+ '!**/_*.md' ,
613+ ] ;
614+
615+ if ( process . env . NODE_ENV === "development" ) {
616+ console . log ( "Development mode: Excluding all language files" ) ;
617+ // in development, we want to include all language files
618+ patterns . push ( '!**/lang/**/*.md' ) ;
619+ }
620+
606621
607622export default defineUserConfig ( {
608623 base : _base ,
609624 lang : 'en-US' ,
610625 title : _title ,
611626 dest : "dist" ,
612627 description : _description ,
613- pagePatterns : [
614- // default patterns
615- '**/*.md' ,
616- '!.vuepress' ,
617- '!node_modules' ,
618- // exclude pages that start with _ and end with .md
619- '!**/_*.md' ,
620- ] ,
628+ pagePatterns : patterns ,
621629 locales : siteLocaleOptions ,
622630 plugins : [
623631 // searchPlugin({
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export const generateSharedCode = (config) => {
2222 return {
2323 name : 'generate-shared-code' ,
2424 async onInitialized ( app ) {
25+ console . log ( "Generating shared code contributions" ) ;
2526 await getSharedCode ( ) ;
2627 console . log ( "Adding contribution pages" ) ;
2728 await generateContributionPages ( app , config ) ;
You can’t perform that action at this time.
0 commit comments