Closed Skiyee closed 6 months ago
The recent updates enhance the handling of subdirectories in a web development framework, introducing a method to fetch subdirectories and refining the logic for scanning sub-pages. Additionally, new test configurations and Vue.js templates for various directory pages have been added to demonstrate and validate the updated functionalities.
File Path | Change Summary |
---|---|
packages/core/src/context.ts |
Updated scanSubPages method to use getSubPageDirs for handling subdirectories. |
packages/core/src/files.ts |
Added getSubPageDirs function to retrieve subdirectories using fg.sync . |
test/generate.spec.ts |
Updated imports and test cases to accommodate changes in sub-package scanning logic. |
.../pages-sub-more/home/pages/about/index.vue .../pages-sub-more/home/pages/index.vue .../pages-sub-more/user/pages/index.vue |
Added new Vue.js templates with simple greeting messages in respective directories. |
🐇✨
In the digital burrow, beneath the code tree,
A rabbit hopped by, crafting changes with glee.
Subdirectories mapped, with logic so neat,
"Hello, dear pages," they cheerfully greet.
With each line of code, the web garden grows,
Where the data streams flow and the clean syntax shows. 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
让分包路径支持glob匹配
路径:
配置:
生成:
Summary by CodeRabbit
New Features
Bug Fixes
Tests