8000 GitHub - AndiKod/nuxt4starter: Use this template to create new Nuxt repo' with v4 compatibility flag activated.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use this template to create new Nuxt repo' with v4 compatibility flag activated.

Notifications You must be signed in to change notification settings

AndiKod/nuxt4starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuxt4 Minimal Starter

This barebones starter simply integrates the Testing Nuxt 4 upgrade guide.

Check also A.Lichter's video on how to already use Nuxt 4.

Look at the Nuxt documentation to learn more.

New folders structure

The v4 will introduce a new folders structure:

.output/
.nuxt/
app/
  assets/
  components/
  composables/
  layouts/
  middleware/
  pages/
  plugins/
  utils/
  app.config.ts
  app.vue
  router.options.ts
content/
layers/
modules/
node_modules/
public/
server/
  api/
  middleware/
  plugins/
  routes/
  utils/
nuxt.config.ts

All that this starter does, is addind by default the future section to the nuxt.config.ts.

future: {
  compatibilityVersion: 4,
}

With that in place, we can use the new folders structure and more. Read the NuxtDocs for up to date information.

The intent of this starter is to be a simple template for new Nuxt4 projects.

--- The rest of the README is unchanged ---

The base of that repo was simply a nuxi call, with the v4 flag on-top.

Setup

Make sure to install dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

# pnpm
pnpm dev

# yarn
yarn dev

# bun
bun run dev

Production

Build the application for production:

# npm
npm run build

# pnpm
pnpm build

# yarn
yarn build

# bun
bun run build

Locally preview production build:

# npm
npm run preview

# pnpm
pnpm preview

# yarn
yarn preview

# bun
bun run preview

About

Use this template to create new Nuxt repo' with v4 compatibility flag activated.

Topics

Resources

Stars

Watchers

Forks

0