Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): nested components and pages #46

Merged
merged 3 commits into from
Sep 30, 2022

Conversation

ojvribeiro
Copy link
Owner

@ojvribeiro ojvribeiro commented Sep 30, 2022

Resolves #22.

Nested components

Create components based on nested directories.

eg:

components/Foo/Bar/Baz.vue

Will create the following component...

<FooBarBaz />

Or, in a real world example...

components/Section/Home/Header.vue

Will create the following component...

<SectionHomeHeader />

Nested pages

Create pages based on nested directories.

eg:

pages/foo/bar/baz.vue

Will create the following route...

/foo/bar/baz

Or, in a real world example...

pages/settings/account.vue

Will create the following route...

/settings/account

Nested index.vue

Creating a nested index.vue file will result in a route with the last parent directory name:

pages/settings/index.vue

Will create:

/settings

Checklist

  • Nested components
  • Nested pages

@ojvribeiro ojvribeiro added enhancement New feature or request 🍰 nice-to-have labels Sep 30, 2022
@ojvribeiro ojvribeiro self-assigned this Sep 30, 2022
@vercel
Copy link

vercel bot commented Sep 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
vulmix ✅ Ready (Inspect) Visit Preview Sep 30, 2022 at 8:28AM (UTC)

@ojvribeiro ojvribeiro marked this pull request as ready for review September 30, 2022 08:37
@ojvribeiro ojvribeiro merged commit 7a3d7a9 into main Sep 30, 2022
@ojvribeiro ojvribeiro deleted the feat-nested-components-and-pages branch September 30, 2022 09:05
@ojvribeiro ojvribeiro changed the title feat(core): created nested components and pages feat(core): nested components and pages Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🍰 nice-to-have
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nested components and pages
1 participant